This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat 7 heap config vs hardware Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7 heap config vs hardware" Watch "Tomcat 7 heap config vs hardware" New topic
Author

Tomcat 7 heap config vs hardware

John Beaulaurier
Greenhorn

Joined: Sep 06, 2013
Posts: 1
hello,

Is there a ratio or some formula for a initial heap configuration agaist the CPU / memory the JVM is going to run on?

Thanks
-John
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15665
    
  15

Welcome to the JavaRanch, John!

I haven't checked recently, but last time I looked, Tomcat ran using default JVM memory settings. Which for the Sun JVM was 128MB. I recommend starting with 256MB in most cases, though.

The standard memory management rules are sufficient except for PermGen space, which may need to be overridden if you are working with ORM-based apps such as Hibernate.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 7 heap config vs hardware
 
Similar Threads
static block
Tomcat and Optimizeit throwing Out of memory error
static variables in multithreading
xsl - sorting multiple fields
WA #1.....word association