Can’t debug in Eclipse / Can't allocate jvmti memory

In Eclipse the debugger would refuse to launch. I tried many-many times to debug my application with no luck. Couple of times, I saw the following error message:

JDWP exit error JVMTI_ERROR_WRONG_PHASE(112): on getting class status [../../../src/share/back/util.c:1265]
JDWP exit error JVMTI_ERROR_INVALID_ENVIRONMENT(116): Can't allocate jvmti memory [../../../src/share/back/util.c:1779]
ERROR: JDWP unable to dispose of JVMTI environment: JVMTI_ERROR_INVALID_ENVIRONMENT(116)

Increasing the memory with –Xms and –Xmx (when launching the unit test, in this case) helped and I am able to launch the debugger in Eclipse.

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments
  • No comments exist for this post.
Leave a comment

Submitted comments are subject to moderation before being displayed.

 Name (required)

 Email (will not be published) (required)

 Website

Your comment is 0 characters limited to 3000 characters.