Skip to main content



      Home
Home » Archived » Memory Analyzer (MAT) » error in instructions: no way to get HPROF from Sun JVM 1.5
error in instructions: no way to get HPROF from Sun JVM 1.5 [message #7209] Wed, 19 November 2008 19:27 Go to next message
Eclipse UserFriend
WinXP; Eclipse 3.3

The instructions say to use the JVM parameter "-XX:+HeapDumpOnCtrlBreak"

I tried that with the Sun JVM whose version is immediately below:
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)

And got this fatal error:
Unrecognized VM option '+HeapDumpOnCtrlBreak'

Is there any other way to do it?

-Paul
Re: error in instructions: no way to get HPROF from Sun JVM 1.5 [message #7551 is a reply to message #7209] Thu, 20 November 2008 06:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi Paul,

getting a heap dump really depends on VM version and OS platform. If you
running a 1.5er Sun VM on Windows, the only reliable way to get a heap
dump is using the HeapDumpOnOutOfMemoryError flag. The HeapDumpOnCtrlBreak
flag works only with the 1.4er VMs.

I usually do it this way: run the 1.6er VM, connect via JConsole and hall
dumpHeap from the HotSpotDiagnostics MBean.


Andreas.
Re: error in instructions: no way to get HPROF from Sun JVM 1.5 [message #7797 is a reply to message #7551] Tue, 25 November 2008 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi Andreas,

HeapDumpOnCtrlBreak works on Sun 1.5 VM as well, but only starting from
1.5 update 14.

There's still a bug in the Sun VM implementation caused by erroneously
parsed source control comments. It's possible to work around that
easily, however.

See here for more details:
http://forums.sun.com/thread.jspa?threadID=5179031

-tt
Re: error in instructions: no way to get HPROF from Sun JVM 1.5 [message #7817 is a reply to message #7797] Tue, 25 November 2008 17:02 Go to previous message
Eclipse UserFriend
Sweet. I didn't know this. We are running a patched version of the 1.5er
HotSpot VM which supported the option all the time. I'll update the WIKI
accordingly. Thanks! Andreas.
Previous Topic:jextract error => DTLJ failure?
Next Topic:help interpret results - finalize() making memory leak worse?
Goto Forum:
  


Current Time: Fri Apr 25 06:20:52 EDT 2025

Powered by FUDForum. Page generated in 0.03995 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top