Title
"Exception in thread" "java.lang.OutOfMemoryError: PermGen space" when starting up OC4J_SOA

Date
2009-11-30

Summary
If the OC4J_SOA does not start up, the following may be observed in the OPMN OC4J log:
    09/11/30 12:08:33 Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
    09/11/30 12:08:46 Exception in thread "WorkExecutorWorkerThread-6" java.lang.OutOfMemoryError: PermGen space
    09/11/30 12:08:55 Exception in thread "WorkExecutorWorkerThread-7" java.lang.OutOfMemoryError: PermGen space
    09/11/30 12:09:24 Exception in thread "Timer-0" java.lang.OutOfMemoryError: PermGen space
    09/11/30 12:09:31 Exception in thread "WorkExecutorWorkerThread-9" java.lang.OutOfMemoryError: PermGen space
    09/11/30 12:10:03 Exception in thread "WorkExecutorWorkerThread-8" java.lang.OutOfMemoryError: PermGen space
    09/11/30 12:10:04 Exception in thread "WorkExecutorWorkerThread-10" java.lang.OutOfMemoryError: PermGen space
    09/11/30 12:10:39 Exception in thread "BPELPMRamScheduler_Worker-6" java.lang.OutOfMemoryError: PermGen space
    09/11/30 12:13:11 java.lang.OutOfMemoryError: PermGen space
    09/11/30 12:14:23 Exception in thread "TimeScheduler.Thread" java.lang.OutOfMemoryError: PermGen space
    09/11/30 12:14:49 java.lang.OutOfMemoryError: PermGen space
    09/11/30 12:15:50 Exception in thread "WorkExecutorWorkerThread-3" java.lang.OutOfMemoryError: PermGen space
Details
1. Edit opmn.xml and add -XX:PermSize=256M and -XX:MaxPermSize=512M in the OC4J_SOA container.

From the Sun documentation, a description of this value is as follows:
    -XX:MaxPermSize:
    Size of the Permanent Generation. [5.0 and newer: 64 bit VMs are scaled 30% larger; 1.4 amd64: 96m; 1.3.1 -client: 32m.]
Applicable Versions
Oracle SOA Suite 10g (10.1.3)

References
http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp
http://www.velocityreviews.com/forums/t638220-xx-permsize-and-maxpermsize.html
http://www.unixville.com/~moazam/stories/2004/05/17/maxpermsizeAndHowItRelatesToTheOverallHeap.html
Ahmed Aboulnaga

.com .com