blue-sky
blue-sky

Reputation: 53826

Configure Tomcat to use disk memory

I use Tomcat 6.0 and frequently receive out of memory exceptions.

I've set memory to -xmX1024m . I'm unable to allocate more memory to Tomcat due to memory restrictions of my machine. Is there a configuration or VM parameter that allows to increase this memory setting, but use disk memory augmented with RAM memory ?

Upvotes: 0

Views: 901

Answers (1)

No. This is what virtual memory of the operating system is for.

Note that the garbage collector in the JVM may search through all the memory allocated to the JVM looking for live objects meaning that performance may be very badly influenced if too much memory is swapped to disk.

Add additional swap space, but be very careful.

You may also want to consider using a web server with a smaller footprint, or investigate if your web app uses more memory than you expect it to.

Upvotes: 2

Related Questions