tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Vombach <andreas.vomb...@psi.ch>
Subject Re: Why is tomcat (java) so memory intensive?
Date Tue, 21 Dec 2004 15:20:59 GMT
I would also be interested in some memory/performance tuning 
possibilities. Ok, if you do not run it standalone but with Apache the 
web response times should be faster, my profiling gives me the following:

CPU SAMPLES BEGIN (total = 8628) Tue Dec 21 16:10:18 2004
rank   self  accum   count trace method
   1 33.68% 33.68%    2906 300647 java.net.SocketInputStream.socketRead0
   2 20.70% 54.38%    1786 300557 java.net.PlainSocketImpl.socketAccept
   3 20.17% 74.55%    1740 300542 java.net.PlainSocketImpl.socketAccept
   4 20.12% 94.67%    1736 300551 java.net.PlainSocketImpl.socketAccept
   5  1.36% 96.02%     117 300669 java.net.SocketInputStream.socketRead0

I think everybody can reproduce profiling with e.g.
set JAVA_OPTS=-server -Xms500M -Xmx1000M 
-Xrunhprof:cpu=samples,interval=20,dept=5

in startup.bat /sh

I run tapestry and castor with my web-apps and would assume that they 
eat most cpu, not the http transfer. You see I give enough memory to 
avoid Out of memory Exceptions ...

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