I am new to weblogic. After starting the server when i see administrator console and get log-in it throws below exception.
Root cause of ServletException.
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:335)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:288)
Truncated. see log file for complete stacktrace
I did lot of google and found some solution to initialize JAVA_OPTIONS
like -XX:xmx
and etc.
I tried to set this in startdomainenv.cmd
file but with no luck.
Please help. Any pointers will be highly appreciated.
Thanks.
To set PermGen size you can use e.g. -XX:PermSize=512m -XX:MaxPermSize=512m
.
Regarding Weblogic, set the JAVA_OPTIONS and see if these options are properly passed in as parameters into your Java process. You can also directly set these parameters in the startWeblogic.cmd
script.
To check that your JAVA_OPTIONS
are set properly, add echo %JAVA_OPTIONS%
into the startWeblogic.cmd
script and see the output. Also, you can use e.g. jConsole, jstat, or jmap to monitor Heap usage of the Weblogic process at runtime. This will show you the sizes and occupation of the PermGen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With