Yes, the heap dump action is enabled in javamelody only if heap dump is considered enabled. And heap dump is considered enabled by javamelody only if jdk is 1.6 or more and if vendor is just Sun or Oracle. This is here: http://code.google.com/p/javamelody/source/browse/trunk/javamelody-co...
Anyway, if you want to test a heap dump using javamelody, I think that you can launch your server with the command line parameter "-Djava.vendor=Oracle". The IBM JDK and javamelody should certainly think that it is an Oracle JDK and so you can try. If it does not work with code like this, how to take a heap dump with an IBM JDK?
> I'm on the latest javamelody release - and system actions are enabled > with -Djavamelody.system-actions-enabled=true. > I have these options exposed:
Doesn't seem like any MBeans are available for it, however: "See Chapter 22, “Using dump agents,” on page 231 for more detailed information about generating dumps based on specific events. Heapdumps can also be generated programmatically by use of the com.ibm.jvm.Dump.HeapDump() method from inside the application code. "
> Yes, the heap dump action is enabled in javamelody only if heap dump is > considered enabled. > And heap dump is considered enabled by javamelody only if jdk is 1.6 or > more and if vendor is just Sun or Oracle. > This is here:
> Anyway, if you want to test a heap dump using javamelody, I think that you > can launch your server with the command line parameter > "-Djava.vendor=Oracle". > The IBM JDK and javamelody should certainly think that it is an Oracle JDK > and so you can try. > If it does not work with code like this, how to take a heap dump with an > IBM JDK?
> bye, > Emeric
> Le 27/09/2011 16:48, David Karlsen a écrit :
> Hi.
> I'm on the latest javamelody release - and system actions are enabled with > -Djavamelody.system-actions-enabled=true. > I have these options exposed:
What dø you think about this approach? Den 27. sep. 2011 22:41 skrev "David Karlsen" <davidkarl...@gmail.com> følgende:
> Doesn't seem like any MBeans are available for it, however: > "See Chapter 22, “Using dump agents,” on page 231 for more detailed > information > about generating dumps based on specific events. Heapdumps can also be > generated programmatically by use of the com.ibm.jvm.Dump.HeapDump() > method from inside the application code. > "
>> Yes, the heap dump action is enabled in javamelody only if heap dump is >> considered enabled. >> And heap dump is considered enabled by javamelody only if jdk is 1.6 or >> more and if vendor is just Sun or Oracle. >> This is here:
>> For example, can we take a heap dump using jvisualvm on an IBM JDK? >> (jvisualvm probably uses the same java class)
>> Anyway, if you want to test a heap dump using javamelody, I think that you >> can launch your server with the command line parameter >> "-Djava.vendor=Oracle". >> The IBM JDK and javamelody should certainly think that it is an Oracle JDK >> and so you can try. >> If it does not work with code like this, how to take a heap dump with an >> IBM JDK?
>> bye, >> Emeric
>> Le 27/09/2011 16:48, David Karlsen a écrit :
>> Hi.
>> I'm on the latest javamelody release - and system actions are enabled with >> -Djavamelody.system-actions-enabled=true. >> I have these options exposed:
>> [image: Execute the garbage collector] Execute the garbage collector<
> Den 27. sep. 2011 22:41 skrev "David Karlsen" <davidkarl...@gmail.com > <mailto:davidkarl...@gmail.com>> f�lgende: > > Doesn't seem like any MBeans are available for it, however: > > "See Chapter 22, �Using dump agents,� on page 231 for more detailed > > information > > about generating dumps based on specific events. Heapdumps can also be > > generated programmatically by use of the com.ibm.jvm.Dump.HeapDump() > > method from inside the application code. > > "
> >> Yes, the heap dump action is enabled in javamelody only if heap dump is > >> considered enabled. > >> And heap dump is considered enabled by javamelody only if jdk is 1.6 or > >> more and if vendor is just Sun or Oracle. > >> This is here:
> >> Anyway, if you want to test a heap dump using javamelody, I think > that you > >> can launch your server with the command line parameter > >> "-Djava.vendor=Oracle". > >> The IBM JDK and javamelody should certainly think that it is an > Oracle JDK > >> and so you can try. > >> If it does not work with code like this, how to take a heap dump > with an > >> IBM JDK?
> >> bye, > >> Emeric
> >> Le 27/09/2011 16:48, David Karlsen a �crit :
> >> Hi.
> >> I'm on the latest javamelody release - and system actions are > enabled with > >> -Djavamelody.system-actions-enabled=true. > >> I have these options exposed:
> If it works with an IBM jdk, I am ok with this using reflection in case of > java.vendor IBM.
> It seems that we do not specify a file for this method in IBM jdk and so > the current code and message should be adapted.
> Would you write a patch and test that?
> bye, > Emeric
> Le 02/10/2011 10:21, David Karlsen a écrit :
> What dø you think about this approach? > Den 27. sep. 2011 22:41 skrev "David Karlsen" <davidkarl...@gmail.com> > følgende: > > Doesn't seem like any MBeans are available for it, however: > > "See Chapter 22, “Using dump agents,” on page 231 for more detailed > > information > > about generating dumps based on specific events. Heapdumps can also be > > generated programmatically by use of the com.ibm.jvm.Dump.HeapDump() > > method from inside the application code. > > "
> >> Yes, the heap dump action is enabled in javamelody only if heap dump is > >> considered enabled. > >> And heap dump is considered enabled by javamelody only if jdk is 1.6 or > >> more and if vendor is just Sun or Oracle. > >> This is here:
> >> Anyway, if you want to test a heap dump using javamelody, I think that > you > >> can launch your server with the command line parameter > >> "-Djava.vendor=Oracle". > >> The IBM JDK and javamelody should certainly think that it is an Oracle > JDK > >> and so you can try. > >> If it does not work with code like this, how to take a heap dump with an > >> IBM JDK?
> >> bye, > >> Emeric
> >> Le 27/09/2011 16:48, David Karlsen a écrit :
> >> Hi.
> >> I'm on the latest javamelody release - and system actions are enabled > with > >> -Djavamelody.system-actions-enabled=true. > >> I have these options exposed:
>> If it works with an IBM jdk, I am ok with this using reflection in case >> of java.vendor IBM.
>> It seems that we do not specify a file for this method in IBM jdk and so >> the current code and message should be adapted.
>> Would you write a patch and test that?
>> bye, >> Emeric
>> Le 02/10/2011 10:21, David Karlsen a écrit :
>> What dø you think about this approach? >> Den 27. sep. 2011 22:41 skrev "David Karlsen" <davidkarl...@gmail.com> >> følgende: >> > Doesn't seem like any MBeans are available for it, however: >> > "See Chapter 22, “Using dump agents,” on page 231 for more detailed >> > information >> > about generating dumps based on specific events. Heapdumps can also be >> > generated programmatically by use of the com.ibm.jvm.Dump.HeapDump() >> > method from inside the application code. >> > "
>> >> Yes, the heap dump action is enabled in javamelody only if heap dump is >> >> considered enabled. >> >> And heap dump is considered enabled by javamelody only if jdk is 1.6 or >> >> more and if vendor is just Sun or Oracle. >> >> This is here:
>> >> Anyway, if you want to test a heap dump using javamelody, I think that >> you >> >> can launch your server with the command line parameter >> >> "-Djava.vendor=Oracle". >> >> The IBM JDK and javamelody should certainly think that it is an Oracle >> JDK >> >> and so you can try. >> >> If it does not work with code like this, how to take a heap dump with >> an >> >> IBM JDK?
>> >> bye, >> >> Emeric
>> >> Le 27/09/2011 16:48, David Karlsen a écrit :
>> >> Hi.
>> >> I'm on the latest javamelody release - and system actions are enabled >> with >> >> -Djavamelody.system-actions-enabled=true. >> >> I have these options exposed:
> If it works with an IBM jdk, I am ok with this using > reflection in case of java.vendor IBM.
> It seems that we do not specify a file for this method in IBM > jdk and so the current code and message should be adapted.
> Would you write a patch and test that?
> bye, > Emeric
> Le 02/10/2011 10:21, David Karlsen a écrit :
>> What dø you think about this approach?
>> Den 27. sep. 2011 22:41 skrev "David Karlsen" >> <davidkarl...@gmail.com <mailto:davidkarl...@gmail.com>> >> følgende: >> > Doesn't seem like any MBeans are available for it, however: >> > "See Chapter 22, “Using dump agents,” on page 231 for more >> detailed >> > information >> > about generating dumps based on specific events. Heapdumps >> can also be >> > generated programmatically by use of the >> com.ibm.jvm.Dump.HeapDump() >> > method from inside the application code. >> > "
>> >> Yes, the heap dump action is enabled in javamelody only if >> heap dump is >> >> considered enabled. >> >> And heap dump is considered enabled by javamelody only if >> jdk is 1.6 or >> >> more and if vendor is just Sun or Oracle. >> >> This is here:
>> >> Anyway, if you want to test a heap dump using javamelody, >> I think that you >> >> can launch your server with the command line parameter >> >> "-Djava.vendor=Oracle". >> >> The IBM JDK and javamelody should certainly think that it >> is an Oracle JDK >> >> and so you can try. >> >> If it does not work with code like this, how to take a >> heap dump with an >> >> IBM JDK?
>> >> bye, >> >> Emeric
>> >> Le 27/09/2011 16:48, David Karlsen a écrit :
>> >> Hi.
>> >> I'm on the latest javamelody release - and system actions >> are enabled with >> >> -Djavamelody.system-actions-enabled=true. >> >> I have these options exposed:
>>> If it works with an IBM jdk, I am ok with this using reflection in case >>> of java.vendor IBM.
>>> It seems that we do not specify a file for this method in IBM jdk and so >>> the current code and message should be adapted.
>>> Would you write a patch and test that?
>>> bye, >>> Emeric
>>> Le 02/10/2011 10:21, David Karlsen a écrit :
>>> What dø you think about this approach? >>> Den 27. sep. 2011 22:41 skrev "David Karlsen" <davidkarl...@gmail.com> >>> følgende: >>> > Doesn't seem like any MBeans are available for it, however: >>> > "See Chapter 22, “Using dump agents,” on page 231 for more detailed >>> > information >>> > about generating dumps based on specific events. Heapdumps can also be >>> > generated programmatically by use of the com.ibm.jvm.Dump.HeapDump() >>> > method from inside the application code. >>> > "
>>> >> Yes, the heap dump action is enabled in javamelody only if heap dump >>> is >>> >> considered enabled. >>> >> And heap dump is considered enabled by javamelody only if jdk is 1.6 >>> or >>> >> more and if vendor is just Sun or Oracle. >>> >> This is here:
>>> >> Anyway, if you want to test a heap dump using javamelody, I think that >>> you >>> >> can launch your server with the command line parameter >>> >> "-Djava.vendor=Oracle". >>> >> The IBM JDK and javamelody should certainly think that it is an Oracle >>> JDK >>> >> and so you can try. >>> >> If it does not work with code like this, how to take a heap dump with >>> an >>> >> IBM JDK?
>>> >> bye, >>> >> Emeric
>>> >> Le 27/09/2011 16:48, David Karlsen a écrit :
>>> >> Hi.
>>> >> I'm on the latest javamelody release - and system actions are enabled >>> with >>> >> -Djavamelody.system-actions-enabled=true. >>> >> I have these options exposed:
>> If it works with an IBM jdk, I am ok with this using >> reflection in case of java.vendor IBM.
>> It seems that we do not specify a file for this method in >> IBM jdk and so the current code and message should be >> adapted.
>> Would you write a patch and test that?
>> bye, >> Emeric
>> Le 02/10/2011 10:21, David Karlsen a �crit :
>>> What d� you think about this approach?
>>> Den 27. sep. 2011 22:41 skrev "David Karlsen" >>> <davidkarl...@gmail.com <mailto:davidkarl...@gmail.com>> >>> f�lgende: >>> > Doesn't seem like any MBeans are available for it, >>> however: >>> > "See Chapter 22, �Using dump agents,� on page 231 for >>> more detailed >>> > information >>> > about generating dumps based on specific events. >>> Heapdumps can also be >>> > generated programmatically by use of the >>> com.ibm.jvm.Dump.HeapDump() >>> > method from inside the application code. >>> > "
>>> >> Yes, the heap dump action is enabled in javamelody >>> only if heap dump is >>> >> considered enabled. >>> >> And heap dump is considered enabled by javamelody >>> only if jdk is 1.6 or >>> >> more and if vendor is just Sun or Oracle. >>> >> This is here:
>>> >> Anyway, if you want to test a heap dump using >>> javamelody, I think that you >>> >> can launch your server with the command line parameter >>> >> "-Djava.vendor=Oracle". >>> >> The IBM JDK and javamelody should certainly think >>> that it is an Oracle JDK >>> >> and so you can try. >>> >> If it does not work with code like this, how to take >>> a heap dump with an >>> >> IBM JDK?
>>> >> bye, >>> >> Emeric
>>> >> Le 27/09/2011 16:48, David Karlsen a �crit :
>>> >> Hi.
>>> >> I'm on the latest javamelody release - and system >>> actions are enabled with >>> >> -Djavamelody.system-actions-enabled=true. >>> >> I have these options exposed: