cpu usage for lsphp process too high
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. faizal karim
  2. Monday, 29 June 2015
  3.  Subscribe via email
Hi Guys,

Looking forward for your help. i have some problem with one of our server.

16 CPU
32GB RAM

We have disabled csf and optimum cache in the server, but still we can see the utilization for lsphp process is high sometime 100%. so far i can see, my server can only handle up to 100 connections only. if more then that, the web access become slow as cpu idle process goes to 0%. Please advise, how to troubleshoot this.

Thanks,
Rate this post:
  1. 29.06.2015 11:06:19
  2. # 1
faizal karim Accepted Answer
Posts: 8
Joined: 02.05.2013
0
Votes
Undo
after did some troubleshooting and server reboot. the utilization become normal again, however, we notice when we enable csf, web access become slow. and sometime, the utilization become higher. temporarily we disable csf and seems like the webserver perform very well. looking forward how to enable back csf. but scare if it affect web performance again.
  1. 30.06.2015 05:06:22
  2. # 2
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Hi,

Well, it\'s really strange, we had no reports that csf could cause such performance issues, especially for lsapi. We would like to investigate this on your server, please create a support ticket at https://helpdesk.cloudlinux.com/
  1. 30.06.2015 06:06:30
  2. # 3
Tommy K Accepted Answer
Posts: 14
Joined: 03.07.2013
0
Votes
Undo
Hi Faizal,

How many iptables rules/blocked ips are you having? Iptables is not good for more than a couple of hundred blocked IPs.

/Tommy
  1. 30.06.2015 10:06:01
  2. # 4
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
I also saw high CPU usage when there were ~4K rules in iptables.
  1. 30.06.2015 18:06:51
  2. # 5
faizal karim Accepted Answer
Posts: 8
Joined: 02.05.2013
0
Votes
Undo
i\'m not sure how much currently as i disabled csf. i just notice that when csf is enabled, access speed to the website become slower. will open a support case.

thanks.
  1. 01.07.2015 01:07:05
  2. # 6
Tommy K Accepted Answer
Posts: 14
Joined: 03.07.2013
0
Votes
Undo
You should consider using ipset for larger blocklists instead of iptables. CSF is working great with ipset and I have ~40K IPs blocked without any significant performance impact.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.
By submitting the response, you agree with Cloudlinux Privacy Policy