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 » IBM MQ Java / JMS » MQ Java App Running on Win2003 Hangs

Post new topic  Reply to topic
 MQ Java App Running on Win2003 Hangs « View previous topic :: View next topic » 
Author Message
kriersd
PostPosted: Tue Oct 19, 2004 6:51 am    Post subject: MQ Java App Running on Win2003 Hangs Reply with quote

Master

Joined: 22 Jul 2002
Posts: 209
Location: IA, USA

Hello Folks,

I have a major problem that I just can't seem to figure out. We just upgraded our OS to Windows 2003 server and I have a java application that is having problems ever since the upgrade. It seems strange that the application starts up and runs just fine for hours and then all of the sudden it just stops responding. The CPU and memory are not showing any problems at the time it stops responding. The application is so locked up that I can't even get a (ctl + break) java dump. We placed some additional logging in the application just to see what line of code it's stuck on. The logging always indicates that it is in the MQSeries API waiting for a message to arrive on the queue. Has anyone had a problem like this before.

This java application is polling for a new message every 5 seconds, just in case that makes any difference.

Version information
MQ 5.3 CSD 7
Windows 2003 Enterprise Edition
IBM JDK 1.3
_________________
Dave Krier

IBM WebSphere MQ Workflow V3.4 Solution Designer
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Tue Oct 19, 2004 9:55 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

When it is 'hung', what happens to the app if you put a message on the queue it is reading? Does it read it? Are you sure it is not doing a get with wait-forever?

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
kriersd
PostPosted: Tue Oct 19, 2004 11:37 am    Post subject: Reply with quote

Master

Joined: 22 Jul 2002
Posts: 209
Location: IA, USA

Hi RogerLacroix,

Yeah, I am sure it's not in a "Get With Wait". For one if it was in a get with wait then I should be able to get a java core dump. The wierd thing is that when it happens the swing gui won't even display. I end up having to end the java process, thus killing the application.

It's funny because I can't recreate the problem at will. I have to let it happen and then try to debug it. This makes it much worse to debug.

Strange but real problem.
Dave
_________________
Dave Krier

IBM WebSphere MQ Workflow V3.4 Solution Designer
Back to top
View user's profile Send private message
JLRowe
PostPosted: Tue Oct 19, 2004 12:16 pm    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

Try a newer JRE, 1.3.0 is getting quite old now.... Try the sun one also, 1.4.2, don't use 5 yet...
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Tue Oct 19, 2004 1:05 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

If you go to:

http://www-306.ibm.com/software/integration/mqfamily/platforms/supported/wsmq_for_winnt2000_5_3.html

you can get a list of the java's that are supported with WMQ 5.3 on Windows.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
RogerLacroix
PostPosted: Tue Oct 19, 2004 2:17 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

The Swing compnent ONLY has 1 event queue (this has nothing to do with MQ). Therefore, your application and Swing components will run as within ONE thread unless you multi-thread your application.

You should be running AT LEAST 2 threads and NEVER do get wait-forever when you are coding GUI applications.

I have done extensive coding and testing with Java / Swing / MQ and this smells like you are either doing a get wait-forever or you blew up Swing.

Run your applications from a command prompt with 'java' and not 'javaw' and see if Swing spews the exception stack when it blows up.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
kriersd
PostPosted: Wed Oct 20, 2004 11:21 am    Post subject: Reply with quote

Master

Joined: 22 Jul 2002
Posts: 209
Location: IA, USA

Well, I do know for sure that we are not doing a get with wait for ever, but I don't know for sure if the swing gui took an error. The java councel didn't show any errors, but that may not mean much. The strange thing is that this applicatioin has ran for years without the same problem on the NT platform. It sure is strange that it is happening on the Windows 2003 server. The only thing we changed ouside of the platform is the queue manager. We upgraded to version 5.3 at the same time we migrated to the new Windows 2003 server.

We have changed the JDK to SUN's version 1.4, and so far the error has yet to show up.

I'll keep you posted.
_________________
Dave Krier

IBM WebSphere MQ Workflow V3.4 Solution Designer
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 » IBM MQ Java / JMS » MQ Java App Running on Win2003 Hangs
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.