RE: Solaris Kernel settings and process limits.

From: Alistair McKeown (Alistair.McKeown@jacobsrimell.com)
Date: Fri Dec 29 2006 - 06:54:35 EST


I think I've found it now there seems to be a manual setting in the
commEnv.sh for weblogic which over-rides what is put into the
/etc/system file.

# limit the number of open file descriptors
resetFd() {
  if [ ! -n "`uname -s |grep -i cygwin || uname -s |grep -i windows_nt`"
]
  then

  if [ ! -n "`uname -s |grep -i cygwin || uname -s |grep -i windows_nt`"
]
  then
    maxfiles=`ulimit -H -n`
    if [ "$?" = "0" -a "${maxfiles}" != 1024 ]; then
      if [ "${maxfiles}" = "unlimited" ]; then
        maxfiles=1025
      fi
      if [ "${maxfiles}" -lt 1024 ]; then
        ulimit -n ${maxfiles}
      else
        ulimit -n 1024
      fi
    fi
  fi
}

-----Original Message-----
From: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Alistair
McKeown
Sent: 29 December 2006 11:11
To: sunmanagers@sunmanagers.org
Subject: Solaris Kernel settings and process limits.

Hi there,

        I'm currently an administrator for our companies J2EE
application which sits on Weblogic and Solaris. BEA recommend certain
kernel settings to be change, one of which is the rlimit for the file
descriptors. Trouble im getting conflicting stats when I look at a
running production box at the moment.

In /etc/system its configured :

set rlim_fd_cur=8192
set rlim_fd_max=8192

Which is BEA's recommendation. Which is fine. Also when I run the
"ulimit -a" command it comes out the same 8192:

-bash-3.00$ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 8192
pipe size (512 bytes, -p) 10
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 29995
virtual memory (kbytes, -v) unlimited

Yet if I see what the actual java process is doing for weblogic it still
saying 1024

I find the java process :

-bash-3.00$ /usr/ucb/ps -auxwww|grep java|grep serverid
weblogic 16488 0.4 18.520360321510608 ? S Dec 14 304:54
/u01/appl/bea/jdk142_05/bin/java -Xms1536m -Xmx1536m
-XX:MaxPermSize=384m -XX:NewSize=512m -XX:MaxNewSize=512m
-XX:SurvivorRatio=8 -Djr.serverid=viepapssk10
-Djr.bootstrap.configuration=file:/u01/appl/bea/aps/products/cspire/conf
ig/bootstrap.xml -Dcom.sun.jndi.ldap.connect.pool.maxsize=20
-Dcom.sun.jndi.ldap.connect.pool.prefsize=20
-Dcom.sun.jndi.ldap.connect.pool.timeout=100000
-Dweblogic.management.server=http://10.146.116.52:7001 -classpath
/u01/appl/bea/jdk142_05/lib/tools.jar:/u01/appl/bea/weblogic81/server/li
b/weblogic_sp.jar:/u01/appl/bea/weblogic81/server/lib/weblogic.jar:/u01/
appl/bea/aps/products/cspire/lib/jrauth.jar::/u01/appl/bea
-Djava.security.policy==/u01/appl/bea/weblogic81/server/lib/weblogic.pol
icy -Dweblogic.Name=viepapssk10
-Dweblogic.system.BootIdentityFile=/u01/appl/bea/weblogic81/common/nodem
anager/NodeManagerLogs/NodeManagerInternal/bootFile_cspiresk_viepapssk10
-Dweblogic.system.NodeManagerBoot=true
-Dweblogic.system.NodeManagerAddress=null::5555
-Dweblogic.nodemanager.ServerStartTime=1166054433704
-Dweblogic.security.SSL.ignoreHostnameVerification=false
-Dweblogic.ReverseDNSAllowed=false weblogic.Server

Then look at its current limits using the "plimit" command :

-bash-3.00$ plimit -m 16488
16488: /u01/appl/bea/jdk142_05/bin/java -Xms1536m -Xmx1536m
-XX:MaxPermSize=3
   resource current maximum
  time(seconds) unlimited unlimited
  file(mbytes) unlimited unlimited
  data(mbytes) unlimited unlimited
  stack(mbytes) 8 unlimited
  coredump(mbytes) unlimited unlimited
  nofiles(descriptors) 1024 1024
  vmemory(mbytes) unlimited unlimited

It still says 1024. And the box was rebooted. Is there an explanation
for this? Or am I looking at the wrongly? Why doesn't it display 8192
like in ulimit -a Any help appreciated.

Regards,

Alistair.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:24 EDT