tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik \(lists\)" <devli...@hanik.com>
Subject RE: Memory Leak
Date Thu, 15 Apr 2004 15:28:20 GMT
you're classes might not take a lot of memory, but the classes that your
classes reference,
such as byte[] char[] String etc will.

so if the leak is in your code, you need a profile to track it down.

Filip

-----Original Message-----
From: Chanan Braunstein [mailto:cbraunstein@knovel.com]
Sent: Thursday, April 15, 2004 10:20 AM
To: 'Tomcat Users List'
Subject: RE: Memory Leak


I am not sure I understand, "my classes" i.e. stuff I created under
com.knovel.* take up almost nothing of the heap, I have the view sorted by
size in memory and they are way down there. Most of the heap is taken up by
char[]. Byte[], String, Object[], int[] and StringBuffer. The biggest class
I have is taking 100k - it never grows, it is created in a singleton at
startup and is only read from, I checked it is always at 100k - never
growing bigger (as expected).


Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com


-----Original Message-----
From: Allistair Crossley [mailto:Allistair.Crossley@QAS.com]
Sent: Thursday, April 15, 2004 11:10 AM
To: Tomcat Users List
Subject: RE: Memory Leak

In your profiler rather than looking at the type of object taking the memory
look at the accumulated memory consumed by your classes. This will show you
which classes are taking up the most memory and if you have a leak you might
expect this accumulated value to be a high percentage of the overall heap
being used.. look for a percetage of memory used.


-----Original Message-----
From: Chanan Braunstein [mailto:cbraunstein@knovel.com]
Sent: 15 April 2004 15:27
To: 'Tomcat Users List'
Subject: Memory Leak


Hello,
    I am having a problem with Tomcat 5.0.19 on windows with JDK 1.4.2_02.
The memory that java.exe is using keeps growing till the point that tomcat
stops responding.
    Using a profiler, doesn't seem to give me any clues. I can see the
memory being used by certain classes go up (mainly char[]) and even reach
all the way to the point that used java heap equals to the java heap, but
then GC kicks in and drops down back to where it was when I started the
test. However, the memory in the task manager keeps going up. For example
right now it is at 717,000 K, even though the heap used is at about 200,000
K. What am I missing here?
    My current params are -server -Xrs -Xms356M -Xmx356M - I tried all kinds
of different sizes for the memory but that doesn't really help. Any
suggestions as to where (how) to look to find my memory leak?


Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com




<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE>
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com">www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message