memory leak jconsole

P

Philipp Kraus

Hello,

i try to debug my java codes with JNI calls for memory leaks. I have
written a short main program that calls the JNI functions
but the JNI call runs very fast. I start jconsole or Java Visual VM and
run my testprogram but the test program finishes and
jconsole can't find the PID. On each run I get another PID. How can I
debug my testprogram with the tools?

Thanks

Phil
 
D

Daniel Pitts

Hello,

i try to debug my java codes with JNI calls for memory leaks. I have
written a short main program that calls the JNI functions
but the JNI call runs very fast. I start jconsole or Java Visual VM and
run my testprogram but the test program finishes and
jconsole can't find the PID. On each run I get another PID. How can I
debug my testprogram with the tools?

Thanks

Phil
Perhaps put a loop your test program. Reading a line from the console
might also help. See System.in.
 
P

Philipp Kraus

Perhaps put a loop your test program. Reading a line from the console
might also help. See System.in.

thanks, I need a "sleep" command in my testprogram the tools can't
handle the calls?

Do anybody try to use valgrind's memcheck to determine memory leaks? I
have tested it, but memcheck
lists leak in the Java libraries

Thanks

Phil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Problem with JConsole 4
JNDI memory leak 3
Memory "leak"? 4
Memory leak 16
Memory leak 8
memory leak 3
Memory Leak 1
Invocation Problems (memory leak) 5

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top