Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #8602

Re: memory leak jconsole

From Philipp Kraus <philipp.kraus@flashpixx.de>
Newsgroups comp.lang.java.programmer
Subject Re: memory leak jconsole
Date 2011-10-06 20:33 +0200
Organization 1&1 Internet AG
Message-ID <j6ks99$fc7$1@online.de> (permalink)
References <j6kp8r$ch4$1@online.de> <xZljq.177$ma7.66@newsfe19.iad>

Show all headers | View raw


On 2011-10-06 19:56:45 +0200, Daniel Pitts said:

> On 10/6/11 10:41 AM, Philipp Kraus wrote:
>> 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.

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

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

memory leak jconsole Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-06 19:41 +0200
  Re: memory leak jconsole Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-10-06 10:56 -0700
    Re: memory leak jconsole Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-06 20:33 +0200

csiph-web