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


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

Re: memory leak jconsole

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 <philipp.kraus@flashpixx.de>
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 <j6ks99$fc7$1@online.de> (permalink)
References <j6kp8r$ch4$1@online.de> <xZljq.177$ma7.66@newsfe19.iad>
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

Show key headers only | 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