Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Aug 16, 2007 4:21 AM by
memory usage in jvmti
Aug 16, 2007 4:21 AM
I'm writing a profiler using Jvmti on windows that does not seem to free all the memory when I make repeated calls to getallthreads. I have reduced the code to the following:
jvmtiError err = jvmti_env->GetAllThreads(&count,&thread_list_ptr);
err = jvmti_env->Deallocate((unsigned char *)thread_list_ptr);
It look like the java heap memory is being gc but the mem of the java process itself keep rising.
if I remove the calls to GetAllthreads and Deallocate the mem usage of the java process stays constant.
This content has been marked as final.
Show 0 replies