Java PermGen : OutOfMemory

Faced a problem with Java going out of memory:permgen (Young/Tenured/Perm)

The deployment to Jboss succeeded, but when the system would start the app was going out of memory. This happened primarily because the app while initializing was invoking a JDBC call, and the drivers of JDBC were being loaded when a call was invoked – which primarily required more memory as class files related to JDBC drivers came into memory.

Permanent generation holds meta-data describing classes which are not part of JRE. for example classes and methods – applications with large code bases can quickly fill up this segment of heap which causes OutOfMemoryError.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s