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.

Comments