Cannot set 'soft limits' for 'maximum stack size' for a standard user


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Cannot set 'soft limits' for 'maximum stack size' for a standard user
# 1  
Old 02-16-2019
Cannot set 'soft limits' for 'maximum stack size' for a standard user

Hi Guys,

I'm trying to install Oracle Database on to Oracle Linux 7.6 but when
the database install package checks the OS set-up, it keeps on failing
on the soft limits for the stack. It's default value is 8192 but I'm trying
to set it to 10240.

This is what I added to /etc/sysctl.d/50-oracle-sysctl.conf
==========================================
Code:
fs.file-max                =6815744
 net.core.rmem_default    =262144
net.core.rmem_max        =4194304
net.core.wmem_default    =262144
net.core.wmem_max        =1048576

which works without issuing any warnings or errors.

This is what I copied from: Oracle Database 12c Preinstall Steps for Oracle Linux Simplified | Oracle Linux Blog
and placed into the config file at /etc/security/limits.d/50-oracle-limits.conf
because I was having problems and thought the parameters from the oracle
blog may have a better outcome. No change unfortunately.
======================================================
Code:
oracle soft nofile  1024
oracle hard nofile  65536
oracle soft nproc  16384
oracle hard nproc  16384
oracle soft stack  10240
oracle hard stack  32768
oracle hard memlock  134217728
oracle soft memlock 134217728

On restart the soft stack limit for user oracle is as good as ignored with still the default value of 8192.
Oracle database installer requires 10240 to proceed with the installation.

If I set the soft limit on the command line using ulimit -s 10240 the system accepts it.
Also tried adding this session required pam_limits.so to /etc/pam.d/su as described here
linux - how do i set hard and soft file limits for a non-root user at boot? - Server Fault but it
may not be having the required consequences.

The funny thing is, just adding the above lines to the config files under Oracle Linux 7.5
worked without any problems. Can only speculate that Oracle has added or changed
something that now works differently.

I'd like to apply the limits in a proper fashion without having to add commands to by
bash profile. Any ideas would be greatly appreciated. Thanks in advance.


SYSTEM
=======
Code:
Oracle Database 12.2.0.1.0
Oracle Linux 7.6
  Dell Optiplex 3060 (RAM8GB/SWAP32GiB/SYS256GB/DATA256GB)





Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 02-16-2019 at 02:35 PM.. Reason: Added CODE tags.
# 2  
Old 02-25-2019
Are there any other files within /etc/security/limits.d that have this setting that could be overriding your new one?

Is there a duplicate in the one you edited perhaps?

Code:
grep -r oracle /etc/security/limits.d | grep soft | grep stack

I've written it out as three piped commands to ignore any differences in the delimiters.



Kind regards,
Robin
# 3  
Old 02-25-2019
Also, changing the file does not change the limits of a running program, or even an existing login. The service may need restarting.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Soft and hard limits for nproc value in /etc/security/limits.conf file (Linux )

OS version : RHEL 6.5 Below is an excerpt from /etc/security/limits.conf file for OS User named appusr in our server appusr soft nproc 2047 appusr hard nproc 16384 What will happen if appusr has already spawned 2047 processes and wants to spawn 2048th process ? I just want to know... (3 Replies)
Discussion started by: kraljic
3 Replies

2. UNIX for Dummies Questions & Answers

Set maximum memory for user

Hi, I have as Solaris 10 (x86) system. I want to set the maximum memory for the user But the following comaand is valid only till next reboot.Pls let me know how to make it permanenent. prctl -n project.max-shm-memory -r -v 4G -i project 3 (6 Replies)
Discussion started by: Rossdba
6 Replies

3. Solaris

How to increase soft stack limit?

:wall:Dear Solaris 10 Specialists, I am having difficulty trying to increase the soft stack limit to 16384 for user george on this Solaris 10 SunFire Sparc server as follows: $ uname -a SunOS galactica 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5220 % id -p ... (3 Replies)
Discussion started by: gjackson123
3 Replies

4. Shell Programming and Scripting

How to delete some of the files in the directory, if the directory size limits the specified size

To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies

5. UNIX for Dummies Questions & Answers

Kernel Stack vs User Mode Stack

Hi, I am new to the linux kernel development area. I want to know what is the difference between kernel mode stack and user mode stack? Does each process has a user mode stack and a kernel mode stack?? Or Each process has a user mode stack and there is only one kernel mode stack that is shared by... (4 Replies)
Discussion started by: saurabhkoar
4 Replies

6. HP-UX

HP-UX 10.20 file size limits?

Hi, I'm running HP-UX 10.20. Is there a 2GB file size limit? if so, can i change it? (3 Replies)
Discussion started by: gabriel.560
3 Replies

7. UNIX for Advanced & Expert Users

How to identify maximum stack size?

Hi All, I have set max stack size as 4KB for my thread, but it always using very less. So I like to know what is the maximum stack size is used by my thread. I tried with gcc -fstack-usage command line option, but its not supported by mips. Kindly suggest me the way to find the max stack... (6 Replies)
Discussion started by: rajamohan
6 Replies

8. Programming

How to read max stack size -Xss that is set/default for a java program?

I need to know what is the maximum stack size i.e. -Xss my java program is running with. Is there a way to find that out from inside my java program code and outside of it. What i am looking for is to read whatever the current set max limit -Xss (stack sie) is for a particular JVM(not... (3 Replies)
Discussion started by: mohtashims
3 Replies

9. UNIX Desktop Questions & Answers

File size limits

I want to increase the file size, I am trying to store the output but it's not storing the whole output in to the file (7 Replies)
Discussion started by: navintsm
7 Replies

10. Solaris

How to set stack for Oracle's user?

Hi all! I've got a problem. Primary: Sun Sparc V890, 64bit Standby: HP-Proliant ML 350, 64bit In the machine that I've got configured physical standby database, the alert_log_file point me one error: Sat Feb 28 00:40:08 2009 ORA-00202: control file:... (5 Replies)
Discussion started by: trantuananh24hg
5 Replies
Login or Register to Ask a Question