ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Java Process hangs by using MQM 6.0

Post new topic  Reply to topic
 Java Process hangs by using MQM 6.0 « View previous topic :: View next topic » 
Author Message
frankzwo
PostPosted: Thu Dec 22, 2005 1:38 am    Post subject: Java Process hangs by using MQM 6.0 Reply with quote

Newbie

Joined: 22 Dec 2005
Posts: 6

Hello,

i have a problem with my mqm java program. I have wrote a Java-Class to read out Messages from queue-Manager.

I use MQ 6.0 with the IBM JDB 1.4.2 under Debian Sarge.

I have imported the following files

import com.ibm.mq.*;
import com.ibm.mq.MQException;

to use some MQ Classes

The construktor of the class, i wrote , do nothing.

I call the java program every minute per cronjob in a php script like
exec("cd /home/user/mq/; java -cp /usr/share/java/com.ibm.mq.jar de.company.team.server.class)

Sometime (in 2-3 hours one time) the process hangs, if the constructor of my Class is called. the java-program does not continues

Have you any solutions for this problem.

Thanks, and sorry for my bad english

Frank
Back to top
View user's profile Send private message
jsware
PostPosted: Thu Dec 22, 2005 4:56 am    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

Some of these links are for MQ 5.3 and not on Debian Linux, but they might be appropriate to MQ V6 too.

The following link http://www-1.ibm.com/support/docview.wss?rs=171&context=SSFKSJ&q1=Java+hangs&uid=swg21109644&loc=en_US&cs=utf-8&lang=en suggests switching off the JIT compiler.

The following link http://www-1.ibm.com/support/docview.wss?rs=171&context=SSFKSJ&q1=Java+hangs&uid=swg21175023&loc=en_US&cs=utf-8&lang=en suggests exporting AMQ_NO_SIGWAIT_SIGTRAP=1 to stop WMQ blocking the SIGWAIT/SIGTRAP signals which the JVM on AIX uses when loading libraries. This link http://www-1.ibm.com/support/docview.wss?uid=swg1IY43961 includes an APAR about the same thing.

If these don't help, you could try search IBM's support section at http://www-306.ibm.com/software/integration/wmq/support/ which is where I found the above links when searching for "Java Hangs"
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
frankzwo
PostPosted: Thu Dec 22, 2005 5:34 am    Post subject: Reply with quote

Newbie

Joined: 22 Dec 2005
Posts: 6

thank you very much for your help.
i`ll try this out . If it works, i will be very happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Java Process hangs by using MQM 6.0
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.