Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running tomcat on a ubuntu 10.4 VPS with 512MB of RAM (1024 burstable). I'm using it for development, so performance isn't an issue, but memory is.

Tomcat is currently using about 250MB without any apps installed (I compared memory usage with tomcat stopped and running), and I also need to run lighttpd and mysql.

Is there any way to get that number down? I don't need it to be able to handle a large number of requests at once.

share|improve this question
    
Try looking in your config files, there might be a setting buried in there somewhere. –  samoz Jun 8 '10 at 11:54

1 Answer 1

up vote 1 down vote accepted

You can try tuning the following parameters on your tomcat startup

-Xms128m -Xmx128m

Also it would be worth you checking on what Garbage collection options you have enabled on tomcat, having GC tuned correctly will help keep your memory usage down.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.