|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Windows 2000 Advanced Server Java Multithreading Issue |
« View previous topic :: View next topic » |
Author |
Message
|
Veloscot |
Posted: Wed Dec 04, 2002 6:20 am Post subject: Windows 2000 Advanced Server Java Multithreading Issue |
|
|
 Newbie
Joined: 04 Dec 2002 Posts: 2 Location: Des Moines, IA
|
I'm having trouble with a multithreaded Java app running as a service on Windows 2000 Advanced Server. The service runs fine on Windows NT 4.0 and Windows 2000 Professional.
When I try to connect to a queue manager, I'm getting a 2019 error. When I try to use 5 threads, one of the threads errors out. 10 threads, 4 or so will error out. 50 threads, 15 or so will error. I've considered that maybe the connections are getting created too quickly causing some type of contention, but that doesn't seem to be the case. I also thought maybe this is a security issue, but why would most connect with no problem, while others don't? Has anyone heard of this Windows 2000 Server vs. NT issue?
code:
Code: |
MQEnvironment.hostname = getSourceHost();
System.out.println(MQEnvironment.hostname);
MQEnvironment.port = getSourcePort();
System.out.println(MQEnvironment.port);
MQEnvironment.channel = getSourceChannel();
System.out.println(MQEnvironment.channel);
setMqQM(new MQQueueManager(getSourceQM())); |
|
|
Back to top |
|
 |
bower5932 |
Posted: Wed Dec 04, 2002 10:25 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I found a hit on an internal database that looks identical to this problem. It was solved in February 2001. The problem ended up being related to a mismatch between various components of MQ on the system. Is it possible that you are running a version of MA88 that is different from the base MQ code? |
|
Back to top |
|
 |
Veloscot |
Posted: Wed Dec 04, 2002 10:28 am Post subject: |
|
|
 Newbie
Joined: 04 Dec 2002 Posts: 2 Location: Des Moines, IA
|
I just got this figured out. The difference in the NT to 2000 environment was throwing me. I just synchronized the connection method and it seemed to solve it. I'm not sure why the same JVM performs differently on NT than on 2000, but it seems to. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|