Ask a Question related to FreeBSD, Design and Development.
-
Brian John #1
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
Brian John Guest
-
Running Java applications with CF applications
Is anyone out there running both Java and CF apps on their CFMX 7 J2EE Enterprise Server? I was going to migrate the Java apps to CF7 to avoid a... -
web applications versus. web portal applications
I came across a new term "web portal applications." Anyone can tell me what's the differences between web portal applications versus traditional... -
#19327 [Fbk->NoF]: java.lang.UnsatisfiedLinkError: no php_java in java.library.path
ID: 19327 Updated by: sniper@php.net Reported By: chregu@php.net -Status: Feedback +Status: No... -
default fonts for java applications?
I'm running ImageJ (http://rsb.info.nih.gov/ij/) using Sun's J2SE v 1.4.2, installed from j2sdk-1.4.2-nb-3.5-bin-linux.bin. When I start the... -
Difference in module_eval taking block vs. taking string (1.8 bug?)
The following code: class Klass end p Klass.instance_methods(false) Klass.module_eval do def hello puts 'hello' end end -
Ted Mittelstaedt #2
RE: java applications taking up too much memory
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]owner-freebsd-questions@freebsd.org[/email]
> [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Brian John
> Sent: Tuesday, February 22, 2005 5:47 PM
> To: [email]freebsd-questions@freebsd.org[/email]
> 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
> _______________________________________________
> [email]freebsd-questions@freebsd.org[/email] mailing list
> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"
>Ted Mittelstaedt Guest



Reply With Quote

