Ok,my server is crashing down a lot(500% CPU usage) and whenever it does I opened up the putty and use the htop to observer any abnormal behavior,So one thing I noticed is whenever my CPU spike in the ‘Tasks’ row the second column which is for ‘thr’ goes to the maximum.Now if I increase the pm.max_children more the ‘thr’ value even goes higher but the CPU consumption is still 500%+.
So I want to know what does this ‘thr’ means and how to avoid letting it go to some maximum values.Also if anyone can explain the terms shown in the Tasks row I will be grateful.An instance of Tasks observable values for my server is.
Tasks : 91 , 109 thr, 96 kthr,: 6 running
Thank you.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello friend!
In this case “thr” means threads. The “kthr” means kernel threads. It sounds like your PHP application is being flooded with requests. I would examine your web server access logs for unusual, abusive patterns. This might help you to block specific requests, optimize those requests better, or block bad actors.
Kind Regards, Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.