-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter,

On 6/10/2009 3:10 AM, Peter Crowther wrote:
>> From: William Biggs [mailto:kc8...@gmail.com]
>> I'm looking at a new web hosting they give Private JVM Heap
>> Size what is the min jvm heap size would you go with ?
> 
> It depends entirely on your application. Some apps can handle fairly
> high loads with under 100 Mbytes of heap;

Definitely. We have a lean and mean application that, until recently,
ran in a 64MiB heap just fine. We had to expand that heap once our user
load increased beyond what 64Mib could handle.

We don't have much in the way of caching in our app, so loads of memory
is not necessary.

If you can observe your existing application in production, take maybe a
week's worth of GC data (either enable verbose GC or write a
stupid-simply JSP that dumps heap info) and then graph it to see what
your memory needs actually look like. You should see that, for your
given load, a certain memory band looks like it will suffice. Shoot for
somewhere 10-20% /over/ that figure to give yourself some breathing room
and continue to watch your memory usage relative to your user load.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkowI1QACgkQ9CaO5/Lv0PCcTwCfXmL9PVoUWWEA0sS8/DPmaMw/
gGEAoJrNgZg48Nx44yUDRvgDsMpvMbAo
=Tm4X
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to