• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Number of files open for a regular server?

tkalfaoglu

Silver Pleskian
Server operating system version
AlmaLinux
Plesk version and microupdate number
Obsidian
Hi.. A server had been having over 50k open files recently. I wrote a small code that checks it and warns me if it's over 50k, so I got some emails like that.
This is the server that crashed a few times from too many open files (not crashed, but apps couldn't open new files) in the past.

I checked it, and it's currently much less:
# cat /proc/sys/fs/file-nr
25312 0 2000000

but what is the "normal" open files for a server with ~250 hostings?
Many thanks, -t
 
Rule of thumb: 90 files per domain. But it strongly depends on what is done on the server and what these domains are. By a typical ratio of 3 domains per user where 2 domains are redirects and 1 is a website.

However, this is only a typical value. Nothing speaks against setting a high number of allowed file handles, like 100,000 for your installation. You always need a lush headroom, because you never know in advance what users will be up to.
 
Many thanks Peter, in that case my 22k files is correct. No idea why it went up to 50k some time in the night. Maybe the backup processes or something.. Regards, -turgut
 
Maybe the backup processes or something..
Might be. The files are just opened and closed sequentially during the backup, but if your users have lots of databases and tables, the sql server will try to keep them open, and those can be several thousand, depending on how you tuned mysqld.
 
Does anyone have a recommended limits.conf file they could share? I think I made mine too generous, and one runaway process can take the server down..
Thanks!
-t
 
Back
Top