1

When I add to the jvm parameters following one

-XX:+HeapDumpOnCtrlBreak

I'm getting an error that JVM couldn't be started.

Could not create Java virtual machine

Java version I'm using is 1.6.0_21.

What I'm doing wrong? Do I need to set up any others parameters?

aaronman
  • 18,343
  • 7
  • 63
  • 78
Łukasz Rzeszotarski
  • 5,791
  • 6
  • 37
  • 68
  • This usually means that the heap size was too small, or there wasn't enough resources. It could also be a bug. I would try update 45 which has many bug fixed compared with update 21 – Peter Lawrey Jul 30 '13 at 06:46
  • 1
    According to this link http://docs.oracle.com/cd/E15289_01/doc.40/e15062/optionxx.htm the -XX options apply only to the Oracle JRockit JVM ... and indeed on my JVM it says unrecognized option ... – Gregor Ophey Jul 30 '13 at 06:46

1 Answers1

3

i think it is not supported by JDK 1.6 , did you try with JDK 1.5.

For more you can refer this question.

You can achieve the same thing by using jmap introduced in JDK 1.6

Thanks

Community
  • 1
  • 1
saurav
  • 3,424
  • 1
  • 22
  • 33