tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "B. Balakrishna Rao" <balakrishna_...@persistent.co.in>
Subject RE: Memory leak in using SSL with Tomcat 6.0.18
Date Wed, 04 Aug 2010 14:06:39 GMT
Hi Mark,

I have implemented your suggestion. I have deployed my application in Tomcat 6.0.29 version
under the same environment as Tomcat 6.0.18(test environment).

After performing the similar operations on both tomcat versions one after another, I have
taken the heap dumps from both versions.
What I observed is: Number of com.sun.net.ssl.internal.ssl.SSLSocketImpl objects are 10 in
tomcat 6.0.18 and 7 in tomcat 6.0.29.
I can't able to say that the issue is fixed :(

Well I am attaching my original mail on this issue for your reference.

We are using Tomcat 6.0.18 on Linux environment(Red hat Linux) for our production. 
We have enabled SSL by deploying SSL certificates. We observed that, over a period of time,
the memory consumption is increasing and we are facing serious performance issues. 
I have taken a heap dump and analyzed it using Eclipse Memory analyzer. What I found was,
com.sun.net.ssl.internal.ssl.SSLSocketImpl objects are never Garbage collected. 
The leak report by Memory analyzer is as follows: 
2,996 instances of com.sun.net.ssl.internal.ssl.SSLSocketImpl", loaded by "<system class
loader>" occupy 219,843,760 (62.76%) bytes 
Upon drilling down, these objects are being held by finalizer method of GC. 
I have got the following similar link: 
http://forums.sun.com/thread.jspa?threadID=5266266 

Can anybody tell me if there is any memory leak issues exists with Tomcat 6.0.18? I read somewhere
that, the memory leak issue with SSL was fixed on 6.0.20.

Balakrishna Rao | Senior Software Engineer | Persistent Systems
balakrishna_rao@persistent.co.in  | Cell: +91 9704373579 | Tel: +91 (40) 30875030
Innovation in software product design, development and delivery- www.persistentsys.com

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Wednesday, August 04, 2010 6:19 PM
To: Tomcat Users List
Subject: Re: Memory leak in using SSL with Tomcat 6.0.18

On 04/08/2010 13:40, B. Balakrishna Rao wrote:
> Hi Mark,
> 
> I am trying to apply the patch that is available for the fix below:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=47744#c2

Why? What makes you think that is the problem you are seeing?

> However, after giving the below command, putty simply hangs.
> 
> patch sslsession-memory-fix.patch

Impossible to comment given the lack of context information provided.

> I am using Red hat Linux with Apache Tomcat 6.0.18. 
> Another issue: Do I need to update the tomcat-coyote.jar along with this patch?
> Please refer the below text from the above link:
> " If you apply the patch, update tomcat-coyote.jar.."
> 
> Can you help me on this please?

Given your difficulties in applying patch, I suspect you will have
difficulties building the source too. Assuming this patch fixes the
issue you are seeing (and I have yet to see any evidence that it will)
why not just use a binary that already includes the fix?

Mark



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


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent
Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed.
If you are not the intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in error, please notify
the sender and delete all copies of this message. Persistent Systems Ltd. does not accept
any liability for virus infected mails.

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


Mime
View raw message