C
coltrane
I am trying to implement and run the ObjectCreation monitoring app
defined in the beginning of the Java Performance Tuning book. I have
created the monitoring code and the test app. I have also created a jar
with a modified Object class. When I try to run the test I get during
the initialization of the VM.
This is the command line and the error output:
java
-Xbootclasspath/p:.\ObjectHack.jar;\opt\java\j2sdk1.4.2_12/jre/lib/rt.jar
com.jprok.performancetuning.ObjectCreationMonitoring -t
com.jprok.performancetuning.ProfileTest
Error occurred during initialization of VM
java.lang.StackOverflowError
If I remove the HackObject.jar from the bootclasspath setting the test
app runs with out the monitoring which is what should happen.
The text does include the jar i18n.jar but I do not have that jar
installed on my system. I have java 1.4 j2se.
I added the following to the new java.lang.Object class:
(*note my package is com.jprok.performancetuning)
public Object(){
this(true);
if(com.jprok.performancetuning.ObjectCreationMonitoringFlag.monitoring)
com.jprok.performancetuning.ObjectCreationMonitoring.monitor(this);
}
public Object(boolean b)
{
}
thanks for your help with this
john
defined in the beginning of the Java Performance Tuning book. I have
created the monitoring code and the test app. I have also created a jar
with a modified Object class. When I try to run the test I get during
the initialization of the VM.
This is the command line and the error output:
java
-Xbootclasspath/p:.\ObjectHack.jar;\opt\java\j2sdk1.4.2_12/jre/lib/rt.jar
com.jprok.performancetuning.ObjectCreationMonitoring -t
com.jprok.performancetuning.ProfileTest
Error occurred during initialization of VM
java.lang.StackOverflowError
If I remove the HackObject.jar from the bootclasspath setting the test
app runs with out the monitoring which is what should happen.
The text does include the jar i18n.jar but I do not have that jar
installed on my system. I have java 1.4 j2se.
I added the following to the new java.lang.Object class:
(*note my package is com.jprok.performancetuning)
public Object(){
this(true);
if(com.jprok.performancetuning.ObjectCreationMonitoringFlag.monitoring)
com.jprok.performancetuning.ObjectCreationMonitoring.monitor(this);
}
public Object(boolean b)
{
}
thanks for your help with this
john