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 44237] New: - Memory consumption is More in Tomcat 5.0 than Tomcat 6.1.4.Memory release is not happening successfully.
Date Tue, 15 Jan 2008 05:32:49 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=44237>.
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=44237

           Summary: Memory consumption is More in Tomcat 5.0 than Tomcat
                    6.1.4.Memory release is not happening successfully.
           Product: Tomcat 5
           Version: 5.0.0
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tapas.adhikary@gmail.com
                CC: tapas.adhikary@gmail.com


Hi,
   I am using Tomcat 5.0.0 to deploy my web application.As soon as I run tomcat
, it start memory consumption and after I login to my application the memory
usage increases.I have taken care of the Threads using in my application so that
once logout from the application,they will not be in alive state to hold the
memory unnecessarily.But After logout also I found the memory consumption is not
reduced.
the scenario was like this,
Event                                   %Mem        %CPU
-------------                          -------     -------
Before login                            3.3          1   
After Login                             3.4          4 
After Logout                            3.4          3
Login Again                             3.6          4
Navigating to Browse View               4.2          7          
After Logout                            4.2          2

But when I deployed my application in Tomcat 6.1.4 I found a better performance
than earlier,like,
Event                                   %Mem        %CPU
------------                            ----        ----
Before login                            3.3          1   
After Login                             3.4          4 
After Logout                            3.3          1 (0 after few seconds).
Login Back                              3.4          4
Browse View                             4.6          12
Configure View                          5.2          24
logout                                  4.2          2 (0 after few seconds)
login in                                4.4          4
logout                                  4.2          1
login                                   4.3          3
logout                                  4.2          1
login                                   4.4          3
logout                                  4.4          1 (Here Memory didn't    
decrease,reason is unknown to me)     
login                                   4.6          5
logout                                  4.5          1 (decreased again)

I have some doubt to ask along with this.In Tomcat 5.0.0 , server.xml contains a
entry for connector where we can specify the number of connector Threads to be
executed by Tomcat.For my case the number is 25.As soon as I run tomcat 25
Threads start running and I got a trace of those as,
Thread [http-28080-Processor1](Running)  where 28080 is the port number
Thread [http-28080-Processor2](Running)  Tomcat is using. 
.
.
Thread [http-28080-Processor25](Running)
When I am login to my application(Sending my request to Tomcat), one thread(say,
Thread [http-28080-Processor24]) created by connector, start processing the
request and occupied memory increased along with the used CPU cycles. In case
of logout again the thread become active, process the request and application
logged out. Here no decrement of the memory usage and a small decrement of the
used CPU cycle .Now if I suspend(not terminate) the thread which processed the
last request,occupied memory is getting released. In this whole process, I ran
jConsole utility which has a mechanism to make the object applicable for garbage
collection if they are not in use. I used the mechanism but occupied memory
never get released till I suspend the connector thread explicitly(Neither
terminating the thread nor terminating/restarting the Tomcat).Otherwise memory
usage is just keep increasing.
I am surprise to see Tomcat 6.1.4 is managing the memory is effective than the
earlier version.

-Tapas

-- 
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