Follow Us on Twitter

Setting the Java memory arguments in OFM

by Laurens van der Starre on March 23, 2012 · 3 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)

3 comments on “Setting the Java memory arguments in OFM

    • Laurens van der Starre on said:

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

      VA:F [1.9.22_1171]
      Rating: 0 (from 0 votes)
  1. This is really a pian in :(

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

Leave a Reply

Your email address will not be published. Required fields are marked *


* Copy This Password *

* Type Or Paste Password Here *

59,546 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


Previous post:

Next post:

About Whitehorses
Company profile

Whitehorses website

Home page

Follow us
Blog post RSS
Comment RSS