Follow Us on Twitter

Setting the Java memory arguments in OFM

by Laurens van der Starre on March 23, 2012 · 4 comments

In Fusion Middleware 11g you’d normally set your Java memory arguments by specifying the USER_MEM_ARGS variable (in the <DOMAIN_HOME>/bin/ for example). The effect of this is that whatever magic happens in the scripts like, in the end the memory settings will be set like you’ve set in USER_MEM_ARGS.

Is it just me, or does this not work anymore in a SOA Suite PS5 install? (Or didn’t I pay attention in the older versions? :)) The script <DOMAIN_HOME>/bin/ reaves havoc regarding the USER_MEM_ARGS by simply overwriting it.

I was fed up with this, and hacked the If you want the USER_MEM_ARGS to be the one and only memory setting, change the following:

Add in the beginning

if [ -n "${USER_MEM_ARGS}" ] ; then

to store any set USER_MEM_ARGS into a new variable SAVED_MEM_ARGS. Then the script will start doing all kinds of magic with all kind of settings.

Then add at the end, for example line 220 the following:

if [ -n "${SAVED_MEM_ARGS}" ] ; then

to restore the USER_MEM_ARGS.


Setting the Java memory arguments in OFM, 4.0 out of 5 based on 1 rating
VN:F [1.9.22_1171]
Rating: 4.0/5 (1 vote cast)

{ 4 comments… read them below or add one }

Peter Paul van de Beek March 26, 2012 at 2:03 pm
Laurens van der Starre March 26, 2012 at 2:08 pm

Indeed looks like the same issue. IMHO is just ..weird… 😉


Brett October 14, 2012 at 2:05 am

This is really a pian in :(


Firas November 19, 2015 at 11:08 am

Hi Laurens

i have problem in starting weblogic form 10.3.6 but the admin start successfully
they advise me to increase memory argument in startweblogic

I want your help please



Leave a Comment


Previous post:

Next post:

About Whitehorses
Company profile

Whitehorses website

Home page

Follow us
Blog post RSS
Comment RSS