Re: setting ulimits

  • From: mhthomas <qnxodba@xxxxxxxxx>
  • To: cemail_219@xxxxxxxxxxx
  • Date: Tue, 12 Apr 2005 15:58:58 -0400

Hi,

On Apr 12, 2005 10:49 AM, J. Dex <cemail_219@xxxxxxxxxxx> wrote:
> When running the pre-install check for Oracle10g on RHEL 3.4, it is telling
> me that ulimits is not set.  However, I set up the appropriate information
> in /etc/security/limits as specified by the install guide.  Does ulimits
> also need to be set somewhere else and what does it need to say?
> 
> Thanks.

There are a few different ways to address this problem. It used to be
called an RHEL bug, but not any more. The approach I use now is
derived from the lastest info on Bugzilla and elsewhere. Change two
files:

-- ## OS parameters
vi /etc/init.d/sshd
{after variable declaration, e.g. prog="sshd", add following...}
ulimit -n 65536
ulimit -u 16384
ulimit -s 32768

-- ## OS parameters
vi /etc/security/limits.conf
*               soft    nproc           16384
*               hard    nproc           16384
*               soft    nofile          65536
*               hard    nofile          65536
*               hard    stack           32768
*               soft    stack           32768

I believe this does not agree with many 'Oracle' flavored install
documents. Rather than one being right or wrong, there are many ways
to solve the same problem. The solution you see above is to give
*everyone* a big default value in 'sshd' file, and
then restrict individual users with 'limits.conf'. If you notice my
'limits.conf' does not mention individual users, e.g. oracle soft
nproc 16384, so the 'limits.conf' is unrestricted, e.g. *. You may
want to modify your limits.conf to restrict per user.

The alternative to the above approach causes numerous other problems.
Some where there is no valid hack, so I have long ago decided on the
above approach.

HTH

Regards,

Mike Thomas
--
//www.freelists.org/webpage/oracle-l

Other related posts: