tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38107] New: - memory leak when using https
Date Tue, 03 Jan 2006 15:59:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38107>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38107

           Summary: memory leak when using https
           Product: Tomcat 5
           Version: 5.5.12
          Platform: Other
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: arno.diekmann@ixos.de


There is a small memory leak when the ssl connector is used:
I've configured a connector for a https port:
<Connector port="18090" maxHttpHeaderSize="8192"
		maxThreads="75" minSpareThreads="25" maxSpareThreads="50"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" scheme="https" secure="true"
               keystoreFile="D:\tomcat/keystore"
               clientAuth="false" />
and have written a small program that fetches the tomcat root page 10000 times 
(using a commons-httpclient-wrapper):
String url = "https://tomcathost:18090/";
for(int i = 0; i < count; i++){
HttpURLConnection con = handler.sendGetRequest(url, null);
handler.endRequest(con, con.getInputStream());
if((i % 100) == 0){
	int percent = (i * 100) / count;
	System.out.println(percent + "% done");
   }
}
The result is a permanent increasing memory usage watched in windows task 
manager for the tomcat5 process (10000 requests causes a growth of 2036 KB). 
There is no memory leak using the http connector (without ssl). I've tried the 
tomcat versions 5.5.9 and 5.5.12 with the same result.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message