Deploying BPEL Process Using Ant Script Throws Error: java.lang.OutOfMemoryError: PermGen space

Friday, January 29, 2010

Symptoms
When deploying BPEL processes via 'Ant' throws error:
java.lang.OutOfMemoryError: PermGen space

Cause
When running Ant task, Ant runs on a separate JVM to that of OC4J container. Therefore any tuning performed via opmn.xml file does not come into effect.

Solution
set the environment variable ANT_OPTS as below before running Ant script:

Linux: ANT_OPTS=”-XX:MaxPermSize=128m –Xms64m –Xmx512m”; export ANT_OPTS

Windows: Set ANT_OPTS=”-XX:MaxPermSize=128m –Xms64m –Xmx512m”

  © Blogger templates Newspaper by Ourblogtemplates.com 2008

Back to TOP