Author |
Message
|
achocks |
Posted: Thu Jul 05, 2012 7:29 am Post subject: JVM Heap Size Question |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
I don't use any Java Compute Node or Java intensively in my flows.
I want to handle large messages in my flow. I am confused with the JVM heap size.
Do I need to increase the Heap Size or decrease that JVM Heap Size to give more capacity to a message flow.
Also please let me know if you have any advice on increasing the througput and handling big messages.
So far I have done the following.
STOPPED THE TRACES. (My thougtput has increased a little. Still looking for ways to improve)
Thanks in advance! |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Jul 05, 2012 7:33 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
What version of WMB are you using? What is the "effective level" of the runtime?
In general, no change from the default values is required. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jul 05, 2012 7:38 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If you want to understand how the performance of Broker is measured and managed, you need to read the performance reports on Broker. |
|
Back to top |
|
 |
achocks |
Posted: Thu Jul 05, 2012 7:55 am Post subject: JVM Heap Size Question |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
Broker we use is WMB 7.0 and the default Heap memory is 512 MB. |
|
Back to top |
|
 |
achocks |
Posted: Thu Jul 05, 2012 7:58 am Post subject: JVM Heap Size Question |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
Thanks MqJeff..Will read some usage reports. Can you please tell me whether I should increase the 512 MB to 2 GB or something to handle big messages?
Thanks in advance! |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jul 05, 2012 8:00 am Post subject: Re: JVM Heap Size Question |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
achocks wrote: |
Can you please tell me whether I should increase the 512 MB to 2 GB or something to handle big messages? |
Can you tell us how big these big messages are & what transport protocol they arrive on (file, WMQ, web service, etc, etc)? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
achocks |
Posted: Thu Jul 05, 2012 8:01 am Post subject: JVM Heap Size Question |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
When I mean big messages ...it is around 10MB. We will be using HTTP protocol.
Thanks! |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jul 05, 2012 8:13 am Post subject: Re: JVM Heap Size Question |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
achocks wrote: |
When I mean big messages ...it is around 10MB. We will be using HTTP protocol. |
Depending on the effective level of your broker (which I'm surprised my associate hasn't pulled you up on - WMBv7.0 has a number of levels by now) I'd not consider 10Mb "big" or that any changes would be needed.
Unless you've tried a message & hit a problem. In which case:
- what problem?
- why not look at the usage reports for tuning oppertunities including but not limited to heap size?
- have you reviewed your code to ensure it's efficiently handling the non-trivial message _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Jul 05, 2012 8:52 am Post subject: Re: JVM Heap Size Question |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
achocks wrote: |
Broker we use is WMB 7.0 and the default Heap memory is 512 MB. |
WMB version numbers have four digits, not two. And you didnt answer my question about effective level. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jul 05, 2012 9:01 am Post subject: Re: JVM Heap Size Question |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
lancelotlinc wrote: |
achocks wrote: |
Broker we use is WMB 7.0 and the default Heap memory is 512 MB. |
WMB version numbers have four digits, not two. And you didnt answer my question about effective level. |
There he is.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kimbert |
Posted: Thu Jul 05, 2012 2:33 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
So you're using HTTP. But you still don't know whether the JVM heap size will make any difference to your message flow. That will depend on the domain that your message flow is using. Some parsers make use of Java, some do not.
If you are expecting to receive 'big' messages then increasing heap size, stack size or JVM heap size are all rather blunt instruments. If ( when? ) your messages get even bigger then you may eventually be forced to redesign the message flows. It might be better to design the message flows to use memory efficiently - there are some well-documented techniques for doing that ( e.g. http://www.ibm.com/developerworks/websphere/library/techarticles/0505_storey/0505_storey.html ). |
|
Back to top |
|
 |
|