Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP Fpm consuming more resources

Discussion in 'Workarounds and Optimization' started by myilraj, Mar 15, 2018.

Tags:
  1. myilraj

    myilraj Registered

    Joined:
    Jan 14, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Today I am receiving many emails from my server as follows:

    Time: Thu Mar 15 11:32:18 2018 +0000
    Resource: Process Time
    Exceeded: 28948 > 3600 (seconds)
    Executable: /opt/cpanel/ea-php71/root/usr/sbin/php-fpm
    Command Line: php-fpm: pool onlineincome_in
    PID: 30723 (Parent PID:22782)
    Killed: No


    Time: Thu Mar 15 11:48:21 2018 +0000
    Resource: Process Time
    Exceeded: 29410 > 3600 (seconds)
    Executable: /opt/cpanel/ea-php71/root/usr/sbin/php-fpm
    Command Line: php-fpm: pool onlineincome_in
    PID: 31472 (Parent PID:22782)
    Killed: No


    How to find and solve this issue? Hosting people says it was not a problem? But the site experiencing loss of traffic.
    Kindly anyone support me.

    Regards,
    Myilraj G
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,740
    Likes Received:
    1,796
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    That message comes from the third-party CSF/LFD application and indicates a PHP-FPM process was running longer than the maximum time configured for the CSF/LFD detection period. It shows the process was not killed, thus you should not have traffic loss. Can you provide more information about how you are detecting traffic loss?

    Also, here are a couple of existing threads on this topic:

    SOLVED - LFD Excessive Resource Usage - Normal for PHP-FPM?
    Memory Usage PHP-FPM

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. myilraj

    myilraj Registered

    Joined:
    Jan 14, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello Michael,

    I am always monitoring the real traffic in Google Analytics. Normally the site gets more than 50+ real visitors throughout IST.
    Let's take an average of One-hour. Suddenly the real-time traffic goes down to 15 and my email inbox will be flooded with LFD emails.
    This happens for about 1 - 3 minutes, then the email stops and the real-time visits again raise to 50+.
    What to do in this situation?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,740
    Likes Received:
    1,796
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    First, check the PHP-FPM error log for the account in-question to see if you notice any particular error messages. It's located at:

    /home/$username/logs/domain_tld.php.error.log

    Are there any particular messages that appear at the times references in the email alert?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. myilraj

    myilraj Registered

    Joined:
    Jan 14, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    I am copying here some errors on cPanel Error Logs.
    Kindly look into it and provide me a solution please.
    Code:
    [Fri Mar 16 14:28:28.248424 2018] [autoindex:error] [pid 29238:tid 139650240861952] [client 162.158.182.214:14135] AH01276: Cannot serve directory /home/mydomain/public_html/wp-includes/Text/: No matching DirectoryIndex (index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive
    
    [Wed Mar 14 13:28:04.678703 2018] [autoindex:error] [pid 29216:tid 140335729649408] [client 141.101.77.182:17105] AH01276: Cannot serve directory /home/mydomain/public_html/wp-content/uploads/: No matching DirectoryIndex (index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive, referer: https://www.mydomain.in/wp-content/uploads
    
    [Mon Mar 12 11:45:55.057915 2018] [autoindex:error] [pid 20557:tid 140335640475392] [client 162.158.74.237:10303] AH01276: Cannot serve directory /home/mydomain/public_html/wp-content/plugins/onesignal-free-web-push-notifications/: No matching DirectoryIndex (index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive, referer: Google
    
    [Mon Mar 12 11:44:43.783880 2018] [autoindex:error] [pid 20622:tid 140335481014016] [client 162.158.50.136:12155] AH01276: Cannot serve directory /home/mydomain/public_html/wp-content/plugins/onesignal-free-web-push-notifications/views/: No matching DirectoryIndex (index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive, referer: Google Search Console
    
    [Mon Mar 12 11:44:22.447936 2018] [autoindex:error] [pid 20492:tid 140335481014016] [client 162.158.50.136:17723] AH01276: Cannot serve directory /home/mydomain/public_html/wp-content/plugins/onesignal-free-web-push-notifications/views/css/: No matching DirectoryIndex (index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive, referer: Google Search Console
    
    [Mon Mar 12 11:44:19.139504 2018] [autoindex:error] [pid 20687:tid 140335481014016] [client 162.158.74.147:27675] AH01276: Cannot serve directory /home/mydomain/public_html/wp-content/plugins/onesignal-free-web-push-notifications/views/css/: No matching DirectoryIndex (index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive, referer: Google
    
    [Mon Mar 12 10:13:59.212138 2018] [autoindex:error] [pid 11506:tid 140335481014016] [client 162.158.75.238:16833] AH01276: Cannot serve directory /home/mydomain/public_html/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/: No matching DirectoryIndex (index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive, referer: Google
    
    [Mon Mar 12 02:06:39.678581 2018] [autoindex:error] [pid 5280:tid 140335640475392] [client 108.162.246.83:13197] AH01276: Cannot serve directory /home/mydomain/public_html/wp-content/plugins/onesignal-free-web-push-notifications/views/images/settings/: No matching DirectoryIndex (index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive
    
    
     
  6. myilraj

    myilraj Registered

    Joined:
    Jan 14, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello Michael,

    Today also am experiencing same issues. Whenever I am getting LFD notifications, the real-time traffic is going down. Then again after 2 - 3 minutes, the traffic reaches the peak (50+ concurrent users).

    This process is repeatedly occurring more than 3 - 5 times in an hour.

    Particular PID: 2562 / 30014 / 30015
    Parent PID: 22782

    Kindly anyone help me out to fix this issue!
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,740
    Likes Received:
    1,796
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice