Check process weblogic server
Using Oracle Solaris operating system for your server? Then, every time wanna check for the process running on your server, it return below output:
bash-3.2$ ps -aef | grep weblogic
ps: illegal option -- f
usage: ps [ -aceglnrSuUvwx ] [ -t term ] [ num ]
Okay, its weird. But wait, let we check the path for “
ps
“.-bash-3.2$ which ps
/usr/ucb/ps
Oooo..the path suppose to be
/usr/bin/ps
and not /usr/ucb/ps
Now, try to modify “
.profile
” file and add /usr/bin
in the PATH
variable as per below-bash-3.2$ vi .profile
...
...
...
PATH=/usr/bin:/usr/openwin/bin:/usr/X11/bin:/usr/ccs/bin:/usr/ucb:$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$ORACLE_INSTANCE/bin:$WLS_SERVER/bin:$JAVA_HOME/bin:/usr/local/bin:$PATH; export PATH
...
...
Next, update the environment using the
.profile
file that we modified before:bash-3.2$ . .profile
Check the path for “
ps
” again, and now it show the correct path to “ps
” binary:bash-3.2$ which ps
/usr/bin/ps
Finally, try to use
ps
to check process:bash-3.2$ ps -aef | grep weblogic
oracle 3142 744 0 14:37:04 pts/2 0:00 grep weblogic
oracle 591 589 0 12:07:59 ? 2:20 /u03/app/oracle/Middleware/as_1/bin/rwserver server=RptSvr_weblogic2_asinst_1 b
root 28696 28285 0 11:16:31 ? 0:00 /usr/lib/dmi/snmpXdmid -s weblogic2
No comments:
Post a Comment