How to solve Java.lang.OutOfMemoryError: Java heap spac

Tutorials Shared by the Internet Community

Advertisements


Synopsis

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

Statistics

  • Total Hits - 17580

  • Total Votes - 96 votes

  • Vote Up - 41 votes

  • Vote Down - 55 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2011-09-04 10:24:59

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. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements