I've been getting into
Java lately and everything I've done has been on my own computer. Yesterday I decided it was about time I got a
servlet container installed and running on one of my spare IPs on my VDS.
Before I installed tomcat5 on my little Etch server which has just 128MB RAM and a slice of a 3GHz CPU I was running with plenty of spare memory and 0.00 load average. That's for Exim4, Dovecot, Apache2/PHP5, MySQL5.
I already had these pimped to run as best I could make them run on low end hardware.
Now when I installed tomcat5 I never though much of it until this morning I SSH'd to my VDS and OMG it was slow. Looking at what was running in "top", the load average was at 0.9 and memory was basically running from swap space
I've had a read around but haven't found a great deal of information on dealing with this so I made some educated guesses modifying server.xml. I brought down min-proccessors and max-processors to values between 2 and 8 as opposed the their default 5-75 values.
I also disabled lookups. Now my load average is back at 0.00 (ish) and I can hammer the server with requests no problem... but my memory is still consumed by the JVM
Does anyone have any tips on getting this down a little bit? 33% of my entire memory being used when no requests are even being made to the servlet container is, well, just a waste really
Eek! I'd better change
tomcat so it's running as root 8O
EDIT | Got rid of GDM, Gnome-***??? WTF, X-whatever blah blah. I only moved to this server a few weeks back and never noticed how much crap comes pre-installed on it! It's supposed to be a basic debian etch server... not desktop. Grrr!!
[ August 24, 2007: Message edited by: Chris Corbyn ]
[ August 24, 2007: Message edited by: Chris Corbyn ]
[ August 24, 2007: Message edited by: Chris Corbyn ]
[ August 24, 2007: Message edited by: Chris Corbyn ]