Wednesday, July 23, 2008

'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space"

You will get to see this kind of exception, when you run Oracle BPELPM on weblogic server.

Entire line of the exception is as below.
Exception in thread "[ACTIVE] ExecuteThread: '19' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space

If you get this exception from your log file (oracleBPELServer.out) under your domain. Then do the following to fix this issue.

1. Navigate to the Weblogic Admin console.
2. Click on the server tab on your left side.
3. Click on your instance - domain
4. Click on the Server start, you can see this tab when the Configuration link is selected.
5. Please set values for those empty fields.
a. Java_home
b. Java Vendor:
c. Bea Home:
d. Root Directory: root directory of the bpel domain.
6. Then in the "Arguments:" field you have to add the following. prefix the entry with the below value and add a space after adding the string.

-XX:MaxPermSize=512m

7. Then restart the oracleBPELServer using the admin console.

Note: When i had a talk with the expert team who is working on this, they said this exception occurs when the weblogic uses the SUN JDK, This exception was not there when they use weblogic JRocket JDK.
You will come to know which JDK the weblogic is using by looking at the top entry of the "oracleBPELServer.out" log file, which is available under the following location.
"C:\bea\user_projects\domains\BPELDomain\servers\oracleBPELServer\logs"

In my guess i think, when you run the build file to create oracleBPELServer, we will be configuring the java_home attribute, i think this is set for this domain to use the java_home mentioned while creating the domain.

If my entry is wrong, please put your comment.

3 comments:

  1. Anonymous5:09 PM

    vijay the workaround works thanks

    ReplyDelete
  2. Anonymous4:54 PM

    Thank you very very much... Your note address my issue. Thank you once again for disclosing

    Explictly use weblogic JRocket JDK

    Regards,
    MukeshKoshym

    ReplyDelete
  3. Hi i am getting out of memory. You suggested me to start admin consloe. with out admin server how can i start console???? suggest me

    ReplyDelete