Symptoms
-
Cannot open the website hosted in Plesk:
508 Resource limit is reached
-
/var/www/vhosts/system/example.com/logs/error_log
contains the following entries:mod_hostinglimits: Error on LVE enter: LVE(10598) HANDLER(fcgid-script)
Cause
Subscription hit entry processes limit.
Entry processes limit restricts the number of concurrent connections to dynamic (PHP & CGI) scripts for the subscription user.
Resolution
Adjust the limits for system user.
- Login to Plesk > Subscriptions > example.com and determine system user for the subscription:
-
Connect to the server via SSH as root;
- Determine the USER_ID:
# cat /etc/passwd | grep johndoe
johndoe:x:10008:1003::/var/www/vhosts/example.com:/bin/falseNote: johndoe is the system user from step 1
-
Increase entry processes limit by running:
# lvectl set USER_ID –maxEntryProcs NEW_LIMIT –save
Where:
USER_ID – uid of the subscription user;
NEW_LIMIT – new maximum number of connections. Default value is 20.For example:
# lvectl set 10008 –maxEntryProcs=50 -save
OR
Remove the limits for the user, if increasing does not help:
# lvectl set 10008 –unlimited