• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Checking for nginx ULIMIT value 3 domains have been found on server

Azurel

Silver Pleskian
I have a new CentOS 8.2 server with Plesk Obsidian.

I tried extension "repair kit" and found for web & ftp services this warning
Checking for nginx ULIMIT value 3 domains have been found on server. Problem with nginx default limit for open files is possible Please check nginx fails to start/reload on a Plesk server: Too many open files for details

After click on repair it said
Repair Kit fixed all issues it could. If any issues were not fixed, please try fixing them manually or contact Plesk Support.

after click on check again "1 issue(s) detected".

UPDATE:
I have set worker_rlimit_nofile 40000; (above line "http {") in /etc/nginx/nginx.conf and restart nginx. But thats not helped.

# grep 'Max open files' /proc/$(cat /var/run/nginx.pid)/limits
Max open files 1024 262144 files
# ulimit -Hn
262144
# ulimit -Sn
1024
 
Last edited:
Code:
# /usr/local/psa/admin/sbin/websrv_ulimits --get
nginx:-1
apache:-1
Currently limits are not set in plesk

Code:
# grep 'Max open files' /proc/$(cat /var/run/nginx.pid)/limits
Max open files            1024                 262144               files

Find PID with
Code:
#  ps axl | grep nginx:.master
5     0  110248       1  20   0  52868 10456 -      Ss   ?          0:00 nginx: master process /usr/sbin/nginx
0     0  148976  137904  20   0  12240  2372 -      S+   pts/0      0:00 grep --color=auto nginx:.master

Show values
Code:
# cat /proc/110248/limits
Limit                     Soft Limit           Hard Limit           Units
Max cpu time              unlimited            unlimited            seconds
Max file size             unlimited            unlimited            bytes
Max data size             unlimited            unlimited            bytes
Max stack size            8388608              unlimited            bytes
Max core file size        unlimited            unlimited            bytes
Max resident set          unlimited            unlimited            bytes
Max processes             514117               514117               processes
Max open files            1024                 262144               files
Max locked memory         65536                65536                bytes
Max address space         unlimited            unlimited            bytes
Max file locks            unlimited            unlimited            locks
Max pending signals       514117               514117               signals
Max msgqueue size         819200               819200               bytes
Max nice priority         0                    0
Max realtime priority     0                    0
Max realtime timeout      unlimited            unlimited            us

This issue is fixed with
# /usr/local/psa/admin/sbin/websrv_ulimits --set 4096 --no-restart
and restart nginx + apache
 
Last edited:
Back
Top