Solved

weblogic : OutOfMemoryError: PermGen space

Posted on 2012-03-28
4
1,474 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

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 article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

751 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