• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting heap dump.

 
vanlalhmangaiha khiangte
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am trying to use Eclipse MAT
For this to work i need heap dumps .

My java version is java 1.4.2_05-b04.
I thought i will be able to get the heap dumps by changing the VM parameters
But it seems my java version is not supporting XX:HeapDumpPath XX:-HeapDumpOnOutOfMemoryError and many others

Have been searching a lot and thought that VisualVM and JMAP was another option but again my java version is not supporting

Since i want to collect the heap dump on the production environment ?
Is there ways to do this ?


Thanks in advance,
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XX:HeapDumpPath XX:-HeapDumpOnOutOfMemoryError

Are these just typos or copy/paste errors? The proper invocation would be "-XX:+HeapDumpOnOutOfMemoryError", like the documentation says.
 
vanlalhmangaiha khiangte
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry .. it's copy paste error. forgot the "-" .

-XX:HeapDumpPath=./java_pid<pid>.hprof Path to directory or filename for heap dump. Manageable. (Introduced in
1.4.2 update 12, 5.0 update 7.)

-XX:-HeapDumpOnOutOfMemoryError Dump heap to file when java.lang.OutOfMemoryError is thrown. Manageable. (Introduced in 1.4.2 update 12, 5.0 update 7.)

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!