Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Thu, 20 November 2008 00:27 Go to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
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 11:54 Go to previous messageGo to next message
Andreas Buchen is currently offline Andreas BuchenFriend
Messages: 113
Registered: July 2009
Senior Member
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 17:35 Go to previous messageGo to next message
Taras Tielkes is currently offline Taras TielkesFriend
Messages: 38
Registered: July 2009
Member
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 22:02 Go to previous message
Andreas Buchen is currently offline Andreas BuchenFriend
Messages: 113
Registered: July 2009
Senior Member
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: Sat Nov 22 23:55:42 GMT 2014

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

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