WHat does 'thr'mean in htop

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.

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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