LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-18-2017, 02:38 PM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 719

Rep: Reputation: 47
Question How do I adjust the amount of open files allowed?


I'm trying to run a small dedicated server for the game 7 Days to Die (zombie game) on my dedicated linux box. Server specs in my signature.

I got this error just now which happens if more than just myself is connected to the server, this causes the game server to crash.

Code:
*** Error in `./7DaysToDie Server.x86_64': free(): invalid pointer: 0x00007fa5140 72588 ***
From some searching, it appears as though this happens if the open file limit of the OS is too low. I followed some steps listed via here: https://7daystodie.com/forums/showth...Random-Crashes but the commands don't seem to work (perhaps the user is on a different OS).

From some other searching on how to raise the open file limit, I'm confused as to whether or not I should raise the hard or soft limit of open files, I don't understand what the difference is or why this even exists in the first place.

Any tips?
 
Old 07-18-2017, 04:31 PM   #2
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
Hard limit is maximum allowed limit. Soft limit can be raised only up to a hard limit. Every user can raise his soft limit, but only root user ( privileged user ) can set hard limits. It can be changed in /etc/security/limits.conf. That file is pretty much self explanatory, at least in Debian. To check your hard and soft limits:

Code:
prlimit -n
Prlimit command can also change limits. As to why it exists, mostly for security reasons and to limit memory consumption, I guess.

Last edited by dejank; 07-18-2017 at 04:36 PM.
 
1 members found this post helpful.
Old 07-20-2017, 05:45 PM   #3
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 719

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by dejank View Post
Hard limit is maximum allowed limit. Soft limit can be raised only up to a hard limit. Every user can raise his soft limit, but only root user ( privileged user ) can set hard limits. It can be changed in /etc/security/limits.conf. That file is pretty much self explanatory, at least in Debian. To check your hard and soft limits:

Code:
prlimit -n
Prlimit command can also change limits. As to why it exists, mostly for security reasons and to limit memory consumption, I guess.
Ahh thank you!
 
  


Reply


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
[SOLVED] awk question - read in txt files, offset data by given amount, output new txt files pomico Programming 19 09-17-2012 11:43 AM
[SOLVED] remove huge amount of files thetiger2003 Linux - Newbie 4 09-16-2012 06:19 AM
renaming a large amount of files kaplan71 Linux - General 5 09-20-2011 08:08 PM
Is it possible to adjust NAT settings so one external address is allowed onto LAN NetGuru Linux - Networking 5 03-06-2009 11:00 AM
adjust css to fit variable sized data in a fixed amount of space with php frieza Programming 1 02-20-2009 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:35 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