Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news-peer.in.tum.de!news.belwue.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Philipp Kraus Newsgroups: comp.lang.java.programmer Subject: Re: memory leak jconsole Date: Thu, 6 Oct 2011 20:33:13 +0200 Organization: 1&1 Internet AG Lines: 30 Message-ID: References: NNTP-Posting-Host: p3ee289fe.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: online.de 1317925993 15751 62.226.137.254 (6 Oct 2011 18:33:13 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Thu, 6 Oct 2011 18:33:13 +0000 (UTC) User-Agent: Unison/2.1.5 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8602 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