Solved

weblogic : OutOfMemoryError: PermGen space

Posted on 2012-03-28
4
1,431 Views
Last Modified: 2012-04-30
hi guys

When i am starting my application using weblogic applications server 10.x
i get this error on my colsole.

Caused by: java.lang.OutOfMemoryError: PermGen space
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:335)
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:288)
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)


any idea how i can fix this?  I mean how can i fix this in application server?

thanks.
0
Comment
Question by:royjayd
  • 2
4 Comments
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 37780518
Increase your JVM memeory !
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 37826446
Your outofmemory issue is related to the size of special pool of JVM memory Permanent Generation. You can read more about it on https://blogs.oracle.com/jonthecollector/entry/presenting_the_permanent_generation. In general it contains some objects related to the classes that are used in your JVM. And on application server number of that classes is quite big and doesn't fit into the default size of that permanent generation space.
You can increase memory which is used by that part of JVM heap by adding -XX:MaxPermSize=512M
Do not forget to increase heap size also -Xmx1024M
I would recommend adidng following in the startup options of your server:
-Xmx512M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=512M
0
 

Author Comment

by:royjayd
ID: 37829308
What i observed is if i increase the MaxPermSize to 512M it really slows down the system.
I have 3 gb ram.

thx
0
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
ID: 37829734
Try to use -Xmx2048m
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now