java applications taking up too much memory

Brian John brianjohn at fusemail.com
Wed Feb 23 01:47:06 GMT 2005


Hello,
It seems that my java applications are taking up a ton of memory.  Even 
one small jar that I start at startup takes up almost 200 MB!

I start it like this:
java -Xms4m -Xmx8m -jar /home/brian/serverWatcher/serverwatcher.jar &
and it looks like this in top:
76750 brian     20    0   159M 10840K kserel   0:03  0.00%  0.00% java

I start Azureus like this:
azureus -Xmx128m
and it looks like this in top:
59636 brian     20    0   503M   228M kserel   2:37  0.00%  0.00% java

I only have 512M of memory on this machine.  Does anyone have any idea 
how I can make these apps take up less memory?

Thanks

/Brian


More information about the freebsd-questions mailing list