Finding a bottleneck while loading a webpage?

UPDATE 1:

After running strace on the server, I found that the mmap process takes 90% of the processing time. I found that 1 of the pages takes a minute to load.

So, I found this link: PHP script continues to do mmap / munmap

Perhaps this is the same problem. However, I don't understand what anwer means by correctly disabling php error handlers?

ORIGINAL QUESTION:

How to check bottle neck on my web server when loading a specific web page served by my server?

For some reason, a few pages on my site have become very slow, and I'm not sure where the slowness occurs.

Screenshot from Chrome Dev Tools:

Click to enlarge : enter image description here

, , , , ? - ?

+5
5

Derick Rethans ( Xdebug) PHP?

, , , .gdbinit, php, .

, script gdb, , .

mmap .

, , script ( ), , undefined -).

(- ?), , , , .

var_dump(ini_get('error_reporting') & E_NOTICE); - , .

error_reporting(E_ALL & ~E_NOTICE); - .

+1

Xdebug: PHP - KCacheGrind , , Advanced PHP debugger apd_set_pprof_trace() pprofp .

+3

Xdebug profiling. , , - .

, . -, , .

MySQL EXPLAIN ( , MySQL), , .

+1

Using an application such as Fiddler or YSlow Firefox addin will help identify slow loading elements on your website. This should make any problems obvious.

http://fiddler2.com/fiddler2/

https://addons.mozilla.org/en-US/firefox/addon/yslow/

Hope this helps

0
source
0
source

All Articles