Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I set some values in /etc/security/limits.conf as below:

*   hard    stack   204800
*   hard    nofile  8192

Then rebooted the server. Also I have removed the file /etc/security/limits.d/90-nproc.conf

However, the ulimit command still lists some old/default values:

# ulimit -s
# ulimit -n

I running RHEL 6.2 64-bit

What is wrong here? Is my syntax in limits.conf wrong? Why after server reboot it does not honor limits.conf values?

BTW, I had posted this question earlier on superuser but failed to get the hits, so trying my luck on serverfault.

share|improve this question
Arghhhhhhhhhhhhhh... Man..just kill me... wtf.... many thanks. please add it as an answer. – slayedbylucifer Nov 22 '13 at 5:24
So it means, Whatever iwas doing was absolutely corect but my validation was wrong... ulimit -H is he way to go...seriously, I am ashamed have committed this blunder. – slayedbylucifer Nov 22 '13 at 5:27
up vote 7 down vote accepted

You are changing hard limit values and querying soft limit values. Everything is working fine. Use ulimit -H to view hard limits.

share|improve this answer

limmits are loaded upon logon. change


...... logout and log back in.

share|improve this answer
I had rebooted the server. still the old/default values. – slayedbylucifer Nov 22 '13 at 3:56
more details please... * hard stack 204800 * hard nofile 8192 <=== not right – nandoP Nov 22 '13 at 4:00
try upping nproc !!! – nandoP Nov 22 '13 at 4:04
Sorry, i didn't udnerstand. What is not right ? – slayedbylucifer Nov 22 '13 at 4:15
try upping allowed number of processes... nproc – nandoP Nov 22 '13 at 4:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.