Hi Brian, First you should ask on the freebsd java mailing list, not here.
Second, 200MB of ram isn't that big anymore these days for a server, you might consider your system needs more? Java isn't know for small programs. Java's strength is it's write-once, run-anywhere feature, and as a result it's going to be much more resource consumptive than a compiled C program. Last, most of this will probably be swapped out, so what you want to pay attention to in top is the Swap: line. When your app starts, you should see swap loaded up - what you should be concerned with is if you see a lot of in-and-out on the ram allocated, also you might try running systat -vmstat you will get a better idea of what your system is doing that way rather than just looking at top's output. Ted > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Brian John > Sent: Tuesday, February 22, 2005 5:47 PM > To: freebsd-questions@freebsd.org > Subject: java applications taking up too much memory > > > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"