users@glassfish.java.net

Re: Glassfish in Memory Constrained Environments

From: Dick Davies <rasputnik_at_gmail.com>
Date: Thu, 7 Jun 2007 14:49:19 +0100

Hi Ben

I've got v2 running happily under a physical ram cap of 666Mb on SXCE b61
(swap isn't capped though).

prstat -Z looks like:

ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE
     0 37 49M 57M 5.7% 1:29:32 0.5% global
    13 19 311M 324M 32% 0:03:00 8.1% goldfish
     7 25 77M 78M 7.7% 0:03:58 5.7% elephantom

elephantom is a postgresql backend, goldfish is glassfish b33 running
Roller 3.0 (and nothing else other than ssh etc).

Other posters have mentioned 512Mb being a bit of a squeeze.

Have you seen HK2 yet (the new glassfish v3 kernel)?

Glassfish v3 looks like being a lot more modular (I just want
a servlet engine/javamail/jdbc pool and maybe clustering,
so I'd trim the JBI/EJB/JMS bits).

I have no idea how production ready it is, but it looks great:

  http://blogs.sun.com/alexismp/resource/glassfishv3-1.html


A lot of the rails/jruby support seems to be feeding into v3, so it might be
worth a closer look (I'm assuming this is for Joyent).

More linkage at

  http://blogs.sun.com/theaquarium/entry/the_hundred_kb_kernel_hk2

On 07/06/07, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org> wrote:
> I've been trying to use Glassfish (v1 and v2) in Solaris Zones with memory resource controls (rcap). So far I've been unable to start Glassfish if I give a Zone 512MB or less of memory. If I give it 1GB everything is fine.
>
> I've tried to turn down memory usage in the domains (domain.xml: <jvm-options>-Xmx64m</jvm-options>) but I still get errors in a Zone with a memory cap of 256MB (swap capped at 512MB).
>
> By contrast, Geronimo run without a hitch with -Xmx64m. This makes me think there is some tunable I'm unaware of and should tweek.
>
> Any suggestions are appreciated.
> [Message sent by forum member 'benr' (benr)]
>
> http://forums.java.net/jive/thread.jspa?messageID=220889
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>


-- 
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/