JVM Virtual Heap Size

Hi there,

Can anybody give me some advice on specifying the Java Virtual Heap size? I'm putting together an order for some systems, and I've been asked to specify the virtual heap size. Should this just be as large as possible given that the server is going to run both Tomcat and Apache HTTPD?

The servers have 4GB of RAM each - is this like some versions of Linux where they can't use too much RAM efficiently? or can Java have as much RAM as I want to give it?

Any advice would be greatly appreciated!!

[534 byte] By [mwjones182a] at [2007-10-2 5:49:43]
# 1
java -Xmx
aniseeda at 2007-7-16 1:59:10 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
> java -XmxThank you for the reply, but I wanted to know the best amount of memory to allocate...
mwjones182a at 2007-7-16 1:59:10 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
You don't need to create the largest heap possible, but instead you should see how much memory your application needs and create heaps based on that.Check out: http://java.sun.com/docs/hotspot/gc1.4.2/That should help
ajivaa at 2007-7-16 1:59:10 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
http://blogs.sun.com/roller/page/dagastine?entry=java_heap_sizing_how_do
sundararajan.aa at 2007-7-16 1:59:10 > top of Java-index,Java HotSpot Virtual Machine,Specifications...