Fully featured low overhead profiler for Java EE and Java SE platforms.
Performance monitoring and profiling of Jenkins, TeamCity, Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Error: JVMTI_ERROR_WRONG_PHASE when program finishes

Moderators: Vladimir Kondratyev, Anton Katilin

Error: JVMTI_ERROR_WRONG_PHASE when program finishes

Postby JGutenberg » Fri Apr 22, 2005 11:51 pm

I get the error in my JVM console (1.5): JVMTI_ERROR_WRONG_PHASE
when my application finishes. Because of this I cannot take snapshots from the yourKit profiler application (Says 'connection reset').

Has anyone else had this error? I believe it has something to do with a synchronization issue in the main application (see Sun's webiste: http://java.sun.com/developer/technical ... ransition/ )...

I have tried it first with terminating the program w/ System.exit(0)
I have since commented that out but it didn't change the error.

The full error is below:

[YourKit Java Profiler 4.0.8] Using JVMTI
[YourKit Java Profiler 4.0.8] Listening on port 1235...
Enter Test Number: <-- my console output
[YourKit Java Profiler 4.0.8] Request from 127.0.0.1: Garbage collected. Size of objects in heap: before=942480 bytes, after=398392 bytes
[YourKit Java Profiler 4.0.8] Request from 127.0.0.1: Allocation recording is started
[YourKit Java Profiler 4.0.8] Request from 127.0.0.1: CPU tracing is started
2 <-- my console output
Done. <-- my console output. program is done.
ERROR: JVMTI error err=112(JVMTI_ERROR_WRONG_PHASE) in Allocations.cpp:54
ERROR: JVMTI error err=112(JVMTI_ERROR_WRONG_PHASE) in Allocations.cpp:54
ERROR: JVMTI error err=112(JVMTI_ERROR_WRONG_PHASE) in Allocations.cpp:54
Picked up JAVA_TOOL_OPTIONS: -agentlib:yjpagent=sessionname=YJPQUOTED50617273657254657374657220286c61756e636865642066726f6d2045636c6970736529


Thanks ahead of time for your help - it's very much appreciated

-JG
JGutenberg
 
Posts: 3
Joined: Wed Apr 20, 2005 10:38 pm

Postby Anton Katilin » Tue Apr 26, 2005 9:22 am

Hi,

Sorry for the delayed answer.

We are investigation the issue, and will publish a fix as soon as it is ready.

As a workaround, could you please before termination of the program (before e.g. System.exit()) stop allocation recording via the profiler API.

Best regards,
Anton
Anton Katilin
 
Posts: 5966
Joined: Wed Aug 11, 2004 8:37 am

Postby Anton Katilin » Mon May 09, 2005 9:17 am

The bug is fixed in upcoming 4.0.11, as well as in 4.5 early access that will be available on May 12.

Best regards,
Anton
Anton Katilin
 
Posts: 5966
Joined: Wed Aug 11, 2004 8:37 am

Postby Anton Katilin » Thu May 12, 2005 9:34 am

The bug is fixed in 4.0.11 (http://www.yourkit.com/download )
Anton Katilin
 
Posts: 5966
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.