tkalfaoglu
Silver Pleskian
- Server operating system version
- Alma Linux 8.8
- Plesk version and microupdate number
- Obsidian
I wrote a little chron thing that warns me when there are too many open files (which can be fatal on the server)..
I got a warning at 4 AM..
The open files number comes from /proc/sys/fs/file-nr, the 42 thousand..
Apparently my script that lists the open files doesn't work as well as I hoped -- it's missing lots of things as it only found ~15K files.
Anyway, what could be the cause of too many open files?
Many thanks,
-t
It says:
3 Jun 2023 04:05:02 current open files at 42016
108 (sd-pam)
130 /usr/libexec/postfix/master
142 smtpd
202 dovecot/imap-login
240 /opt/plesk/php/8.0/bin/php-cgi
244 /usr/sbin/dovecot
252 Passenger
267 dovecot/imap
267 dovecot/imap
386 php-fpm:
408 /opt/plesk/php/7.4/bin/php-cgi
423 /usr/lib/systemd/systemd
1983 /usr/libexec/mysqld
3217 /usr/sbin/httpd
4856 nginx:
TOTAL: 14968
I got a warning at 4 AM..
The open files number comes from /proc/sys/fs/file-nr, the 42 thousand..
Apparently my script that lists the open files doesn't work as well as I hoped -- it's missing lots of things as it only found ~15K files.
Anyway, what could be the cause of too many open files?
Many thanks,
-t
It says:
3 Jun 2023 04:05:02 current open files at 42016
108 (sd-pam)
130 /usr/libexec/postfix/master
142 smtpd
202 dovecot/imap-login
240 /opt/plesk/php/8.0/bin/php-cgi
244 /usr/sbin/dovecot
252 Passenger
267 dovecot/imap
267 dovecot/imap
386 php-fpm:
408 /opt/plesk/php/7.4/bin/php-cgi
423 /usr/lib/systemd/systemd
1983 /usr/libexec/mysqld
3217 /usr/sbin/httpd
4856 nginx:
TOTAL: 14968