Java.lang.OutOfMemoryError
From Resin 3.0
(Difference between revisions)
m (OutOfMemoryException moved to OutOfMemoryError) |
Revision as of 16:59, 6 December 2005
Types of Memory
- Normal heap. Use -J-verbosegc to debug this
- Permanent heap. Configured with -XX:MaxPermSize. The default is generally too small
- malloc() memory. Used by JNI and in small parts by the JVM.
- mmap memory. On Unix, .jar files are mmapped taking up virtual memory.
- Thread stacks. Each thread has preallocated stack memory. The default is 8m.