How to solve Java.lang.OutOfMemoryError: Java heap spac
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 8906
Total Votes: 89 votes
Category: JAVA/Core JAVA
Submitted on: 2011-09-04 10:24:59
Submitted By: Javin Paul
Description:If you are familiar with different generations on heap and How garbage collection works in java and aware of new, old and permanent generation of heap space then you would have easily figured out this OutOfMemoryError in Java. Permanent generation of heap is used to store String pool and various Meta data required by JVM related to Class, method and other java primitives. Since in most of JVM default size of Perm Space is around "64MB" you can easily ran out of memory if you have too many classes or huge number of Strings in your project. More detail...