Author |
Message
|
Rahul999 |
Posted: Mon Nov 24, 2008 12:32 am Post subject: How to check JVM Heap size for Execution Group |
|
|
 Centurion
Joined: 14 Mar 2007 Posts: 134
|
Hi All,
Is there any way I can check the JVM min and max heap size for a particular execution group ?
Regards,
Rahul |
|
Back to top |
|
 |
madhuthetom@yahoo.com |
Posted: Fri Apr 24, 2009 6:03 am Post subject: |
|
|
Newbie
Joined: 05 Jan 2009 Posts: 5
|
Raghul
If u use CMP API you can use it , here is the sample code
public HashMap getExecutionGroupParameters(ExecutionGroupProxy aEgProxyObj) {
String minJvmHeapSize=null;
String maxJvmHeapSize=null;
String debugPort = null;
HashMap<String, String> executionGroupParameter = new HashMap<String, String>();
try {
maxJvmHeapSize = aEgProxyObj.getRuntimeProperty("ComIbmJVMManager/jvmMaxHeapSize");
executionGroupParameter.put("maxJvmHeapSize", maxJvmHeapSize);
minJvmHeapSize = aEgProxyObj.getRuntimeProperty("ComIbmJVMManager/jvmMinHeapSize");
executionGroupParameter.put("minJvmHeapSize", minJvmHeapSize);
debugPort = aEgProxyObj.getRuntimeProperty("ComIbmJVMManager/jvmDebugPort");
executionGroupParameter.put("debugPort", debugPort);
}
catch (ConfigManagerProxyPropertyNotInitializedException e) {
e.printStackTrace();
}
return executionGroupParameter;
} |
|
Back to top |
|
 |
sknrt1 |
Posted: Tue Apr 28, 2009 9:12 am Post subject: |
|
|
Apprentice
Joined: 22 Jan 2003 Posts: 39 Location: USA
|
Hi Rahul999,
need a clarification on the question?
Are you looking to report the jvm (min /max) parameters being set for an exgrp?
This can be obtained by mqsireportproperties command as follows:
mqsireportproperties BrokerName -e ExgrpName -o ComIbmJVMManager -a
Also, as suggested by "madhuthetom", you can use CMP API.
(OR)
Are you looking to check the value of heap size occupied by exgrp jvm at a given point (while exgrp is in running state)?
There may not be any broker commands or API to provide the information of jvm size occupied by an exgrp at a given point.
option1) set the following in broker profile or so...
export MQSIJVERBOSE=-verbose:gc
This way, broker publishes an xml msg with details of exgrp jvm.
We have seen that, it only publishes, when the exgrp starts up, not after that (ie: not periodically or so..)
option2) Probably you can explore on topic "JVM profiling"
There may be tools (or app), which can connect to JVMDebugPort of an exgrp to query jvm value at a given point. _________________ ------------------------------------------
sk
MQ User since 2001
Message Broker User since 2001
IBM Certified
Solution Designer - WebSphere MQ
Solution Developer - Message Broker |
|
Back to top |
|
 |
madhuthetom@yahoo.com |
Posted: Fri May 01, 2009 12:17 pm Post subject: |
|
|
Newbie
Joined: 05 Jan 2009 Posts: 5
|
Hey did u try doing the JVM profiling, I am trying to do it, Any help or inputs>? |
|
Back to top |
|
 |
Rahul999 |
Posted: Wed May 06, 2009 10:05 pm Post subject: |
|
|
 Centurion
Joined: 14 Mar 2007 Posts: 134
|
Quote: |
Are you looking to report the jvm (min /max) parameters being set for an exgrp?
This can be obtained by mqsireportproperties command as follows:
mqsireportproperties BrokerName -e ExgrpName -o ComIbmJVMManager -a |
Thanks SKNRT1, above command worked!  |
|
Back to top |
|
 |
ovasquez |
Posted: Wed May 06, 2009 10:34 pm Post subject: |
|
|
 Centurion
Joined: 09 Dec 2005 Posts: 141 Location: Lima, Peru
|
OR..use GUI CMP Excercise. _________________ Oscar Vásquez Flores |
|
Back to top |
|
 |
manojsu |
Posted: Mon Jun 22, 2009 2:59 am Post subject: |
|
|
Centurion
Joined: 19 Jul 2006 Posts: 147 Location: Bangalore
|
where does the garbage collection data be outputted to???
location of the file |
|
Back to top |
|
 |
|