Friday, June 23, 2017

RHEL 7.3 update to kernel 3.10.0-514.21.2.el7 makes EM12c agent not to start with ./emctl: line 286: /usr/bin/uname: Argument list too long

After updating the RHEL 7.3 to kernel 3.10.0-514.21.2.el7  EM12c agent did not start due to :

./emctl: line 286: /usr/bin/uname: Argument list too long
./emctl: line 287: /usr/bin/uname: Argument list too long
./emctl: line 466: /oracle/agent12c/core/12.1.0.5.0/perl/bin/perl: Argument list too long

The issue is coming from the [EM_AGENT_HOME]/bin/commonenv, which is called through [EM_AGENT_HOME]/bin/emctl, and sets EM_THREAD_STACK_SIZE for the agent to 3072.

Apparently a BUG introduced with kernel 3.10.0-514.21.2.el7 [BUG 1463241] makes every Linux command (like uname) to fail execute:

$ ulimit -S -s 3072 
$ uname 
-bash: /usr/bin/uname: Argument list too long

In order to bypass this issue you have to set the value more than 4200 

$ ulimit -S -s 4200
[oracleas@s-eacea-wlgui01-d bin]$ uname

Linux

In order to resolve the agent startup issue issue you edit the [EM_AGENT_HOME]/bin/commonenv and change the value of 3072 to any value higher than 4200

e.g

....
if [ "$EM_THREAD_STACK_SIZE" = "" ] ; then
        #EM_THREAD_STACK_SIZE=3072 # Default value
        EM_THREAD_STACK_SIZE=5000 # New value
    fi
    ulimit -S -s $EM_THREAD_STACK_SIZE
....

REFERENCES:
https://bugzilla.redhat.com/show_bug.cgi?id=1463241






No comments:

Post a Comment