www-data using 100% cpu

Hi. I have a problem in my Ubuntu server. The user www-data is using 100% of the CPU, I tried stopping nginx, but it is still using all the cpu.

I used the “top” command to see what was happening, and I found this.

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 12718 www-data 39 19 307388 269144 4124 S 99.9 26.7 16:09.42 7

I don’t really know what command “7” is. If I use “htop” the command is shown as “sbin: root@policykit -1/7”

I’m thinking that it is something to do with permissions but I don’t know how to find what it is trying to do.

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.

Have you checked your mysql.log? I wonder if something is going on with a query being hung.

Also, run ps-axl and see.