When exiting my native C++ application I make a JNI call to DestroyJavaVM() and it hangs… eventually the application will close (about 10 – 15 minutes) once Java realizes the resources are no longer in use. Not sure why it’s hanging but I’m assuming there are objects that have not released memory on the JVM side. Any way to force garbage collection on the JNI side of things?
Share
From the relevant part of the JNI Specification: