Question
Is there a command-line utility to check Apache PHP-FPM utilization on my cPanel server?
Answer
The 'get_fpm_count_and_utilization' whmapi1 call can be used for this purpose. The number of sites currently using PHP-FPM, resource usage estimates, and other data is output by the API call.
whmapi1 get_fpm_count_and_utilization
Example output:
# whmapi1 get_fpm_count_and_utilization
---
data:
domains_to_be_enabled: 0
domains_using_fpm: 2
memory_needed: 0
number_of_new_fpm_accounts_we_can_handle: 33
show_warning: 0
total_domains: 2
Please see our documentation on the API call for further information:
WHM API 1 Functions - get_fpm_count_and_utilization
Comments
0 comments
Article is closed for comments.