Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-19-2017, 01:20 PM   #1
Senior Member
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
persistent changes not holding under limits.conf

The limits that I've setup as root for user oracle are not holding. These are the changes I've made under /etc/security/limits.conf

oracle  soft  nofile  4096
oracle  hard  nofile  65536
oracle  soft  nproc   2047
oracle  hard  nproc  16384
oracle  soft  core   10240
oracle  hard  core   32768

I've run both exec bash and rebooted as oracle user and everything is ok, however for the following:

oracle hard core 32768
ulimit -Hs 
So there is something somewhere that is keeping at unlimited Vs the value that I set it at. I'm not sure where it is. I did find /lib64/security/, however that is a so file, nothing to change there.

I did find the following, however still didn't work.

Old 01-20-2017, 06:22 AM   #2
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I don't know if you are using the same version of ulimit than the manual I read on-line, but -Hs appears to be for the stack, not the core. -Hc appears to be for the core.
Old 01-20-2017, 07:51 AM   #3
Senior Member
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
I don't have a complete understanding of all of the values that can be set under the limits.conf file.

I'm going off of a Oracle 12C Quick Installation Guide .pdf file from here:

...from page 25

Check the soft limit for the stack setting. Ensure that the result is in the
recommended range. For example:

$ ulimit -Ss

$ ulimit -Hs
32768 that I've read thru the doc again I change out core for stack, ran exec bash and logged in as oracle and was able to see those values when testing.

Size of the stack segment of
the process

stack at least 10240 at least 10240, and at
most 32768


Last edited by JockVSJock; 01-20-2017 at 07:59 AM.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
soft and hard limits for nproc value in /etc/security/limits.conf file kraljic Linux - General 3 07-13-2015 08:13 AM
Setting limits in /etc/security/limits.conf vaibhav.vsk Linux - Security 1 09-20-2012 08:22 AM
Limits.conf digitaldude Linux - Server 2 10-27-2011 01:56 AM
resolv.conf not holding saved values allelopath Linux - Networking 3 01-10-2007 01:36 PM
limits are not working (limits.conf) PkerC Red Hat 3 06-22-2006 10:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration