Author Topic: PHP High CPU  (Read 1718 times)

Offline garyfartsalot

  • Newbie
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
PHP High CPU
« on: September 07, 2022, 08:54:41 AM »
Site has slow server response time and after running atop im noticing PHP hogging the CPU. See attached image

Any ideas how to resolve this?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: PHP High CPU
« Reply #1 on: September 08, 2022, 03:00:50 AM »
just install xdebug php-ext and create profile.
See https://xdebug.org/docs/profiler for details.
Then open profile in the KCachegrind or some other profile analizer(for example phpstorm) and check what part of code run slow.

I don't see any other way to check.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod