Nofiles & nproc change on RHEL not taking effect


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Nofiles & nproc change on RHEL not taking effect
# 1  
Old 09-09-2013
Nofiles & nproc change on RHEL not taking effect

I am installing a statistical applicaton and for its web components it is a listed requirement that I have soft limits of files (20480) and no of processes (soft t o 10240). I am on RHEL 6.1.

As root I made the following changes in /etc/security/limits.conf
Code:
* soft nproc 10240
* hard nproc 35000
* soft nofile 20480
* hard nofile 60000

However my deployment keeps failing. On checking I see these values still
Code:
ulimit -a
core file size           (blocks, -c) 0
data seg size            (kbytes, -d) unlimited
scheduling priority      (-e) 0 
file size                (blocks, -f) unlimited 
pending signals          (-i) 62538
max locked memory        (kbytes, -l) 64
max memory size          (kbytes, -m) unlimited
open files               (-n) 20480   
pipe size                (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority       (-r) 0     
stack size               (kbytes, -s) 10240
cpu time                 (seconds, -t) unlimited
max user processes       (-u) 1024            #<---------this one wont chg
virtual memory           (kbytes, -v) unlimited 
file locks               (-x) unlimited

I log out, restart deployment from scratch but so far no good. I am not an admin so I am sure I am missing something.

I searched this forum but did not find much under nproc keyword search.

Thank you in advance,

Last edited by Scott; 09-09-2013 at 02:47 PM.. Reason: Code tags, please...
# 2  
Old 09-09-2013
See this redhat bugzilla links that addresses issues of this nature....
https://bugzilla.redhat.com/show_bug.cgi?id=157294
# 3  
Old 09-09-2013
Nofiles & nproc

Thank you for the answer and your time, I am indeed using ssh to access. I have no way to access the terminal directly...so now further will try to find out how to find if priv separation is indeed enabled and how to disable it. I did run the couple of cmds listed in the bug track:
Code:
ulimit -H -u = 35000 & ulimit -S -u 1024

were my outcomes.

TY again.

---------- Post updated at 01:46 PM ---------- Previous update was at 01:36 PM ----------

Did find /etc/ssh and sshd_config in there, the priv line is commented out...what does that mean?
Code:
#UsePrivilegeSeparation yes

I am afraid this where my any adv knowledge ends and do not want to mess things...if any could suggest what else to check...I would be grateful.

One question I did not ask, normally does one need to reboot server after limits.conf change? I read that it is not needed (RHEL 6.1/6.2)? That change is effective immediately.
# 4  
Old 09-09-2013
You should also have kernel.pid_max = 65535 in /etc/sysctl.conf (higher than the 35000 limit, and lower than 99999 to avoid problems with some tools).
And there are some tools that do not like the 35000 limit: e.g. sshd at least will take a long time to start/fork (time to close all 35000 file handles).

Last edited by MadeInGermany; 09-09-2013 at 04:39 PM..
# 5  
Old 09-09-2013
Thank you MIG, I checked in the file and that value currently is set to 64000.

Appreciate your time.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How can i change the ip address in RHEL 6?

I need to change the ip address in RHEL 6 . Please tell me the files to be edited....complete procedure.......... Don't tell the graphical method ........ Explain everything in CLI ........... Thanks in Advance:b: (3 Replies)
Discussion started by: vamshigvk475
3 Replies

2. UNIX for Dummies Questions & Answers

Change partition name in rhel

Can I change the filesystem in redhat w/o reformating it? For example /dev/sda2 145G 188M 137G 1% /uo1 /dev/sdb1 289G 191M 274G 1% /uo2 /dev/sdb2 289G 191M 274G 1% /uo3 uo1, uo2, uo3 shuld be u01, u02, u03. No one is using the server yet. thanks (1 Reply)
Discussion started by: lhareigh890
1 Replies

3. Red Hat

Right way to change time for a RHEL server

I had the query of what would be the right approach to change the time on the RHEL server. I have the following ways to do that: 1) # date -s "2 OCT 2006 18:00:00" Or # date --set="2 OCT 2006 18:00:00" 2) # date +%Y%m%d -s "20081128" The second option though would only change... (4 Replies)
Discussion started by: RHCE
4 Replies

4. Red Hat

RHEL 6 plain telnet & ftp servers

I am being pushed from AIX onto RHEL 6 and after our first 'chuck it on' install, I have a problem. Where is the old (okay insecure) telnet & ftp server? I know that they are probably regarded as archaic now, but the source servers do not have the SSH tools, so I've got to somehow transfer the... (4 Replies)
Discussion started by: rbatte1
4 Replies

5. Red Hat

cannot ssh (use NFS) on RHEL box, but can mount external & ssh out of RHEL box

Ok, Im trying to get NFS working on my RHEL 5 box, apparently i can use the box as a client, but not as a server. If it helps i cant ssh into the box (server), but as a client ssh works fine. Ive configured server: /etc/hosts.allow: all : all all :all@all setup my /etc/exports file... (4 Replies)
Discussion started by: drs.grid
4 Replies

6. Virtualization and Cloud Computing

virtualization in RHEL 5.3 & Centos 5.3

Hi I would like to know how to do virtualization in Rhel 5.3 and Cent os 5.3, As i am new this Virtualization need guidence how to install and configure guest os in Rhel and Cent Os can some one guide me step by step Regards Solaris8in (1 Reply)
Discussion started by: solaris8in
1 Replies

7. Solaris

effect of change of mpd preferred path settings

Hello All, In the output of the command "mpdcontrol -no xlist", I found that, some of the preferred paths are marked as "err". You can see the output below: # mpdcontrol -noxlist Unit Dev# MPD_ID/Policy DeviceName FC_AL DevMajMin IOcnt State... (0 Replies)
Discussion started by: sundar3350
0 Replies

8. Red Hat

Installing Updates on RHEL 3 & 4

Is there another way to install updates on RHEL besides using the up2date utility? I have some systems that are not accessible to the internet. So, when I look for the updates that are supposed to be for my system, i dont even know where to go to download them? it just keeps bringing me to... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

9. Red Hat

RHEL 3 - how to change the SNMP community strings?

I have edited the snmpd.conf file on RHEL3, I changed: com2sec notConfigUser default public to : com2sec notConfigUser default new_string_name BUT, when my security guy scans the box, is still answers to public, I restarted snmpd. Is there more to this than just changing... (0 Replies)
Discussion started by: BG_JrAdmin
0 Replies
Login or Register to Ask a Question