Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Generate heapdump not showing up?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Karlsen  
View profile  
 More options Sep 27 2011, 10:48 am
From: David Karlsen <davidkarl...@gmail.com>
Date: Tue, 27 Sep 2011 16:48:21 +0200
Local: Tues, Sep 27 2011 10:48 am
Subject: Generate heapdump not showing up?

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<http://153.110.216.206:9091/pays/monitoring?action=gc>
[image: Invalidate http sessions] Invalidate http
sessions<http://153.110.216.206:9091/pays/monitoring?action=invalidate_sessions>
[image: View http sessions] View http
sessions<http://153.110.216.206:9091/pays/monitoring?part=sessions>
     [image: View deployment descriptor] View deployment
descriptor<http://153.110.216.206:9091/pays/monitoring?part=web.xml>
[image: MBeans]
MBeans<http://153.110.216.206:9091/pays/monitoring?part=mbeans>
[image: View OS processes] View OS
processes<http://153.110.216.206:9091/pays/monitoring?part=processes>
[image: JNDI tree] JNDI
tree<http://153.110.216.206:9091/pays/monitoring?part=jndi>
[image: Opened jdbc connections] Opened jdbc
connections<http://153.110.216.206:9091/pays/monitoring?part=connections>
[image: Database]
Database<http://153.110.216.206:9091/pays/monitoring?part=database>

but no generate heapdump?

I'm on Java 6 (IBM JDK).

--
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emeric Vernat  
View profile  
 More options Sep 27 2011, 4:22 pm
From: Emeric Vernat <ever...@free.fr>
Date: Tue, 27 Sep 2011 22:22:28 +0200
Local: Tues, Sep 27 2011 4:22 pm
Subject: Re: [javamelody] Generate heapdump not showing up?

Hi,

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...

In fact, I am not sure that heap dump can be done with an IBM JDK like this:
http://code.google.com/p/javamelody/source/browse/trunk/javamelody-co...
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 :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Karlsen  
View profile  
 More options Sep 27 2011, 4:41 pm
From: David Karlsen <davidkarl...@gmail.com>
Date: Tue, 27 Sep 2011 22:41:23 +0200
Local: Tues, Sep 27 2011 4:41 pm
Subject: Re: [javamelody] Generate heapdump not showing up?

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.
"

From the document
http://download.boulder.ibm.com/ibmdl/pub/software/dw/jdk/diagnosis/d...
from
http://www.ibm.com/developerworks/java/jdk/diagnosis/ .

This could be called with reflection in case of vendor IBM.

2011/9/27 Emeric Vernat <ever...@free.fr>

--
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Karlsen  
View profile  
 More options Oct 2 2011, 4:21 am
From: David Karlsen <davidkarl...@gmail.com>
Date: Sun, 2 Oct 2011 10:21:55 +0200
Local: Sun, Oct 2 2011 4:21 am
Subject: Re: [javamelody] Generate heapdump not showing up?

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.
> "

> From the document

http://download.boulder.ibm.com/ibmdl/pub/software/dw/jdk/diagnosis/d...

http://code.google.com/p/javamelody/source/browse/trunk/javamelody-co...

>> In fact, I am not sure that heap dump can be done with an IBM JDK like
>> this:

http://code.google.com/p/javamelody/source/browse/trunk/javamelody-co...

http://153.110.216.206:9091/pays/monitoring?action=gc>
>> [image: Invalidate http sessions] Invalidate http sessions<

http://153.110.216.206:9091/pays/monitoring?action=invalidate_sessions>
>> [image: View http sessions] View http sessions<

http://153.110.216.206:9091/pays/monitoring?part=sessions>
>> [image: View deployment descriptor] View deployment descriptor<

http://153.110.216.206:9091/pays/monitoring?part=web.xml>
>> [image: MBeans] MBeans<

http://153.110.216.206:9091/pays/monitoring?part=mbeans>
>> [image: View OS processes] View OS processes<

http://153.110.216.206:9091/pays/monitoring?part=processes>
>> [image: JNDI tree] JNDI tree<

http://153.110.216.206:9091/pays/monitoring?part=jndi>
>> [image: Opened jdbc connections] Opened jdbc connections<

http://153.110.216.206:9091/pays/monitoring?part=connections>
>> [image: Database] Database<

http://153.110.216.206:9091/pays/monitoring?part=database>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emeric Vernat  
View profile  
 More options Oct 2 2011, 5:25 am
From: Emeric Vernat <ever...@free.fr>
Date: Sun, 02 Oct 2011 11:25:15 +0200
Local: Sun, Oct 2 2011 5:25 am
Subject: Re: [javamelody] Generate heapdump not showing up?

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 :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Karlsen  
View profile  
 More options Oct 2 2011, 9:18 am
From: David Karlsen <davidkarl...@gmail.com>
Date: Sun, 2 Oct 2011 15:18:07 +0200
Local: Sun, Oct 2 2011 9:18 am
Subject: Re: [javamelody] Generate heapdump not showing up?

Done:
https://github.com/davidkarlsen/javamelody/commit/276bb21bfde96b92310...
Tested and works fine for me.
I can investigate more in the future to see if I'm able to get the path of
the dump - but let's just settle with the current implementation for now?

2011/10/2 Emeric Vernat <ever...@free.fr>

--
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Karlsen  
View profile  
 More options Oct 2 2011, 9:59 am
From: David Karlsen <davidkarl...@gmail.com>
Date: Sun, 2 Oct 2011 15:59:08 +0200
Local: Sun, Oct 2 2011 9:59 am
Subject: Re: [javamelody] Generate heapdump not showing up?

Here it is in patch format if you find that more convenient.

2011/10/2 David Karlsen <davidkarl...@gmail.com>

--
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

  ibmheapdump.patch
5K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emeric Vernat  
View profile  
 More options Oct 2 2011, 11:45 am
From: Emeric Vernat <ever...@free.fr>
Date: Sun, 02 Oct 2011 17:45:19 +0200
Local: Sun, Oct 2 2011 11:45 am
Subject: Re: [javamelody] Generate heapdump not showing up?

Hi,

I have slightly modified your patch and included it in trunk
http://code.google.com/p/javamelody/source/detail?r=2180

It is ready for the next release (1.32)
http://code.google.com/p/javamelody/wiki/ReleaseNotes

I have made a new build from the current trunk and it is available at:
http://javamelody.googlecode.com/files/javamelody-20111002.jar

Thanks for the patch,
Emeric

Le 02/10/2011 15:59, David Karlsen a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Karlsen  
View profile  
 More options Oct 2 2011, 12:14 pm
From: David Karlsen <davidkarl...@gmail.com>
Date: Sun, 2 Oct 2011 18:14:10 +0200
Local: Sun, Oct 2 2011 12:14 pm
Subject: Re: [javamelody] Generate heapdump not showing up?

Great - thanks!
When do you think you'll release?

2011/10/2 Emeric Vernat <ever...@free.fr>

--
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emeric Vernat  
View profile  
 More options Oct 2 2011, 1:01 pm
From: Emeric Vernat <ever...@free.fr>
Date: Sun, 02 Oct 2011 19:01:46 +0200
Local: Sun, Oct 2 2011 1:01 pm
Subject: Re: [javamelody] Generate heapdump not showing up?

I think about a release in 2 weeks or 4 weeks max.

Emeric

Le 02/10/2011 18:14, David Karlsen a �crit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »