Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Stelikas's avatar

CPU Health Check audit best practices

I've recently noticed that my app has CPU spikes sometimes from 5% CPU usage to 80% or even 100%, which causes the app to go down to reset.

That might be caused because of a loop which I haven't found out where it gets triggered, the app has thousands of users and I've been honestly hitting my head to find why and where this is happening.

Can you guys give me any tips on how to hunt/find and fix this kind of issues?

Thanks and regards.

0 likes
3 replies
mzahirr's avatar

Hi you can use monitoring tools.

Monitoring and Profiling As a first step, you'll need to monitor your application and gather performance data to understand why CPU usage is spiking.

Server Monitoring Tools: Utilize tools like New Relic or Datadog to monitor your server's performance. They can help you pinpoint when and why CPU usage spikes occur.

Laravel Profiling Tools: Laravel offers useful tools for profiling and debugging your application. Packages like Laravel Debugbar or Telescope can provide insights into your application's behavior.

Please or to participate in this conversation.