New limits.conf

3 Antworten [Letzter Beitrag]
sg.germany
Offline
Beigetreten: 09/28/2011

Hi Mates,
I've made a little bit "research" on my linux. My new limits.conf increases my system.

### File ###
## must be placed in /etc/security/ #####
* hard nofile 32768
* soft nofile 32768
* hard stack 32768
* soft stack 32768
### End of File ####

Create a file called limits.conf and copy/paste the contents above into the new file and save it. Then replace the old file with the new limits.conf. After a restart the new values are active. Check with ulimit -n und ulimit -s as sudo or root.

lembas
Offline
Beigetreten: 05/13/2010

What are the pros and cons of doing so?

Legimet
Offline
Beigetreten: 12/10/2013

Seems like it sets limits on resource usage for different users. I guess it's not very useful on a one-user system.

sg.germany
Offline
Beigetreten: 09/28/2011

Correction:

########### File
root hard nofile 32768
root soft nofile 32768
* hard nofile 32768
* soft nofile 32768
root hard stack 65536
root soft stack 65536
* hard stack 65536
* soft stack 65536
######## End