LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-19-2017, 02:20 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,301
Blog Entries: 4

Rep: Reputation: 148Reputation: 148
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

Code:
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:


Code:
oracle hard core 32768
Code:
ulimit -Hs 
unlimited
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/pam_limits.so, however that is a so file, nothing to change there.

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

http://geekswing.com/geek/quickie-tu...ck-hard-stack/

http://www.unixarena.com/2013/12/how...in-redhat.html


thanks
 
Old 01-20-2017, 07:22 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
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, 08:51 AM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,301

Original Poster
Blog Entries: 4

Rep: Reputation: 148Reputation: 148
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:

https://docs.oracle.com/database/121...c.htm#BABFIDJF

...from page 25

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

$ ulimit -Ss
10240

$ ulimit -Hs
32768

...BUT...now 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.

Quote:
Size of the stack segment of
the process

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

thanks!

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


Reply

Tags
ulimits


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 09:13 AM
Setting limits in /etc/security/limits.conf vaibhav.vsk Linux - Security 1 09-20-2012 09:22 AM
Limits.conf digitaldude Linux - Server 2 10-27-2011 02:56 AM
resolv.conf not holding saved values allelopath Linux - Networking 3 01-10-2007 02:36 PM
limits are not working (limits.conf) PkerC Red Hat 3 06-22-2006 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:25 AM.

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