How to enable HotSpot VM in debug mode?

The reason I need HotSpot VM is in debug mode, because I want some JVM options supported, such as

-XX: + PrintCFGFile
.

My current version of the JVM is similar to

java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (suse-3.1-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

Do I need to install any tool / patch to achieve this?

Thank!

+5
source share
2 answers

After some searching, the problem looks clearer.

The reason I cannot use the option

-XX: PrintCFGToFile
, is that the JVM used is a version of the product, not a debug version.

, JVM. : http://download.java.net/jdk6/6u25/promoted/b03/index.html

jdk-6u25-ea-bin-b03-windows-i586-debug-27_feb_2011.jar
. , , , output.cfg Java.

\jdk1.6.0_25\fastdebug>. :

java version "1.6.0_25-ea-fastdebug"
Java(TM) SE Runtime Environment (build 1.6.0_25-ea-fastdebug-b03)
Java HotSpot(TM) Client VM (build 20.0-b10-fastdebug, mixed mode)
+4

jdb:

"VM, jdb, : -agentlib: jdwp = transport = dt_shmem, server = y, suspend = n"

, .

-1

All Articles