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 » Performance problem with MessageProducer.close() > 952 by

Post new topic  Reply to topic
 Performance problem with MessageProducer.close() > 952 by « View previous topic :: View next topic » 
Author Message
jaxzin
PostPosted: Mon Aug 22, 2011 7:58 am    Post subject: Performance problem with MessageProducer.close() > 952 by Reply with quote

Newbie

Joined: 07 Nov 2010
Posts: 3

I'm finding that if my message data length exceed 952 bytes when enqueueing a message to WMQ 7, the performance of javax.jms.MessageProducer.close() suffers. When the length is 952 bytes, the method returns in ~10 ms, but if the length is 953 bytes or greater is takes > 200 ms to return. Anyone have an idea what might be happening?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 22, 2011 8:54 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Do you need to close the producer every time, or can you make use of an anonymous producer?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jaxzin
PostPosted: Mon Aug 22, 2011 9:32 am    Post subject: Reply with quote

Newbie

Joined: 07 Nov 2010
Posts: 3

The usage is within a servlet request (user performs an action that queues a message) so leaving the producer open would result in the resources leaking. Or am I misunderstanding what you mean?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 22, 2011 1:03 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

jaxzin wrote:
The usage is within a servlet request (user performs an action that queues a message) so leaving the producer open would result in the resources leaking. Or am I misunderstanding what you mean?

Not necessarily. You would have to care to release the resource on passivate and reacquire it on activate... and of course release on close, finalize etc....

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sigormley
PostPosted: Tue Sep 13, 2011 7:37 am    Post subject: Reply with quote

Newbie

Joined: 24 Feb 2004
Posts: 6

Unless you're very careful, it's best to close off the JMS resources when you've finished with them, and let the app server cope with making your resource usage efficient.

Make sure you're running a 7.0.1.6 JMS client, there's a fix in it that might help, or try checking your networking parameters to make sure there's no delay when transmitting TCP packets (tcp_nodelayack?) - that 200ms sounds all too familiar...
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 » Performance problem with MessageProducer.close() > 952 by
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.