> From: Stephen Nelson-Smith [mailto:[EMAIL PROTECTED] 
> Subject: Making the most of 8G of RAM
> 
> Given that we only have a 32 bit address space, is it fair to say that
> I can't use more than 2G of RAM for my Java virtual machine?

Most 32-bit Linux systems will give you 3GB of virtual space (not RAM -
don't confuse the two) per process.  Some of this is taken up by various
process and thread structures, along with code and non-heap data.
Consequently, there's considerably less than 3GB available for the heap.

> but so far I've not seen memory usage go over 1G.

There is (or at least was) a bug in the Sun 1.4.2 JVM that didn't do the
arithmetic right when heap sizes were over 2GB due to treating some
unsigned values as signed.  You really should move up to a much more
current JVM.

> What's the best way to make to most of the RAM?

Put in a 64-bit OS and a 64-bit JVM.  While you're at it, try running a
newer Tomcat.

If you must stick with a 32-bit environment, you could run multiple
Tomcats, one for each webapp you have, assuming you have more than one.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to