Free Software Server Environment : ResourceLimits

HomePage :: Categories :: PageIndex :: RecentChanges


Search this site: FSSE.INFO is produced by "osde8info" :

Revision [562]

Most recent edit made on 2008-05-16 16:48:30 by FsseInfo

Additions:
see also
PluggableAuthenticationModule




Revision [555]

Edited on 2008-05-14 13:35:53 by FsseInfo

Additions:
you must enable ulimits for user in security.conf !
myuser hard nproc 16000
myuser soft nproc 2000
myuser hard nofile 65000
myuser soft nofile 1000
if [ $USER = "myuser" ] ; then
ulimit -u 10000


Deletions:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
if [ $USER = "oracle" ] ; then
ulimit -u 16384




Revision [554]

Edited on 2008-05-14 12:08:48 by FsseInfo

Additions:

  1. if you are using SSH to connect to your server you may not even be able to use ulimit at all and might get an error as soon as you connect/login if there is a ulimit command in one of your startup scripts (unless you disable SSH PrivilegeSeparation) !


Deletions:

  1. if you are using SSH to conect to your server you may not even be able to use ulimit at all unless you disable PrivilegeSeparation !




Revision [553]

Edited on 2008-05-14 12:05:20 by FsseInfo

Additions:
resource limits are defined for each shell and its processes there are hard limits and soft limits
ulimit -{H|S}a displays your current resource limits
$ ulimit -Ha
core file size (blocks, -c) unlimited
open files (-n) 500
stack size (kbytes, -s) unlimited
$ ulimit -Sa
open files (-n) 300


Deletions:
resource limits are defined for each shell and its processes
ulimit -a displays your current resource limits
$ ulimit -a
open files (-n) 1024




Revision [550]

Edited on 2008-05-14 11:52:53 by FsseInfo

Additions:
UlimitSwitches




Revision [548]

Edited on 2008-05-14 11:40:20 by FsseInfo

Additions:

  1. you may not be able to use ulimit to INCREASE your resource limits
  2. if you are using SSH to conect to your server you may not even be able to use ulimit at all unless you disable PrivilegeSeparation !
  3. ulimit switches are different in bash and ksh


Deletions:
you may not be able to use ulimit to INCREASE your resource limits and if you are using SSH to conect to your server you may not even be able to use ulimit at all unless you disable PrivilegeSeparation !




Revision [547]

The oldest known version of this page was edited on 2008-05-14 11:38:29 by FsseInfo

Resource Limits

resource limits are defined for each shell and its processes

ulimit
ulimit -a displays your current resource limits
$ ulimit -a

core file size        (blocks, -c) 0
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) 4
max memory size       (kbytes, -m) unlimited
open files                    (-n) 1024
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) 10240
cpu time             (seconds, -t) unlimited
max user processes            (-u) 7168
virtual memory        (kbytes, -v) unlimited


resource limit defined

your resource limits are defined and can be changed in a number of files !

/etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096


/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536


/etc/profile
if [ $USER = "oracle" ] ; then
		ulimit -u 16384
		ulimit -n 65000
fi


.bash_profile
ulimit -n 60000


.bashrc
ulimit -n 50000


/etc/bashrc
ulimit -n 40000


ulimit problems

you may not be able to use ulimit to INCREASE your resource limits and if you are using SSH to conect to your server you may not even be able to use ulimit at all unless you disable PrivilegeSeparation !

trying to increase a ulimit
$ ulimit -n 8000
-bash: ulimit: open files: cannot modify limit: Operation not permitted


/etc/ssh/sshd_config
#UsePrivilegeSeparation yes
UsePrivilegeSeparation no



REFERRERS
HomePage
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1976 seconds