U
U
unet9002017-02-03 15:41:48
linux
unet900, 2017-02-03 15:41:48

How to determine which scripts load the server?

We have a VPS there is an isp manager, it shows now that the processor load on opencart with 5 thousand products is as much as 82% of the processor load. Which is not OK at all. Hence the question of how to find out which scripts load the server. How to do profiling?

Threat also found that the place on the user where the opencart stands is full of 99.9, but the quotas are not configured in the ISP where to dig in which direction.

The server is like this:

Processor Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz 2099.968 Mhz
RAM 647872 / 1009340 kB Disk
space 78823 Mb
Swap file 3145724 kB
Average load (1, 5, 15 min ) 1.66 1.74 1.90 Run
time 66 days 4 hours 40 minutes
Number of processes 233

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Aksentiev, 2017-02-03
@Sanasol

The ISP chart is a complete shambles. Shows the game is complete.
You need to look directly at (h)top on the server.
Also munin.
Look for load from: https://blackfire.io
OpenCart is not a very optimized thing.
And the modules for it are even worse sometimes.

  • Watch/enable php slowlog.
  • Find long pages on the site.
  • Dump xdebug/blackfire.
  • Explore.
  • Correct
  • ...
  • Profit

U
unet900, 2017-02-03
@unet900

58ae69c00cb545988ec61b8d3756fc9b.png
And here is the load schedule constantly jumping, although the attendance is small.

P
Puma Thailand, 2017-02-03
@opium

We put xhprof, we put there to log scripts that run for more than a second and look

E
Egor, 2017-02-03
@egormmm

First, dig towards the top command in Linux to determine which process is loading.
Opencart with 5000 products cannot load the system so much during normal attendance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question