File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes wierd performance in tomcat/java: help consult Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "wierd performance in tomcat/java: help consult" Watch "wierd performance in tomcat/java: help consult" New topic
Author

wierd performance in tomcat/java: help consult

Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 125
hello

after to test my project in tomcat 5.5.23 and jdk 5 update 12
in network(intranet-only until now with 2 clients) i see that this is fast, after of a some time i can see a wonderful exception
related with java heap exception thrown by the tomcat

after to search in google, i found the solution for windows
(server works with windows XP SP2) related to give some values
for memory ram values to the tomcat5w.exe

http://computerlabsolutions.com/supp...hp#performance
i only did the second step

according to this

Click on the Java tab, and enter 128 in the Initial Memory Pool, and 350 or 400 in the Maximum Memory Pool.Leave the other field blank.

so my values are
128 in the Initial Memory Pool
400mb Maximum Memory Pool

the point is that the server is a intel dual core with 3ghz for each , and has DDR2 512 MB of ram

ok, its works, the point is that after to restart the server, the system is fast again,
but then again after of some time the performance go to very slow

if i do ctrl+ alt+ del to see the performance of the pc related with the ram
i taked a picture when start the wierd performance
my ram go to 645MB and swap 46200KB

i thought if i stop to use the system/application(5 minutes),
i can give the chance to the java or tomcat to get and free
some resources

well not the ram go to 640MB and swap to 45276KB

of course if i shutdown my tomcat
i have now these values
RAM 319MB and swap 44564KB

is normal this?,
i dont think so
some important suggestion/advice by our members??

BTW: i am using pool connections related with the db area


thanks so much for advanced


kill your pride, share your knowledge with all
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39529
    
  27
Is the application possibly leaking memory by not making objects eligible for garbage collection?


Ping & DNS - updated with new look and Ping home screen widget
Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 125
hello Ulf

Is the application possibly leaking memory by not making objects eligible for garbage collection?

it could be, but my project is based in spring/hibernate and if i dont bad remember its job is managed by them

any suggestion is appreciate
thanks for your reply


regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wierd performance in tomcat/java: help consult
 
Similar Threads
performance issues on iAS stress/load tests
Netbeans seemingly unresponsive to memory allocation requests
Tomcat as Windows service - I can't set more than 768 Mb of memory
Setting JVM Heap Size in Tomcat 5.5
Tomcat5- how can I get the Initial Memory pool numers set on command line to show up in GUI tool?