Page execution time was 4661.1 ms. Memory used at: devel_boot()=3.27 MB, devel_shutdown()=65.39 MB, PHP peak=70 MB.
欢迎各位兄弟 发布技术文章
这里的技术是共享的
三 | |
| |||
|
i currently have the devel module on and i'm trying to figure out why my site is slow. I get the following info line: Page execution time was 4661.1 ms. Memory used at: devel_boot()=3.27 MB, devel_shutdown()=65.39 MB, PHP peak=70 MB. Is there a way to view why my page is taking 4661 ms to load? Here's a view of what the page is loading: | ||
5 | Yes you can figure out which function(s) spends more time in the execution by using a profiling module, then you can optimize that particular function(s) Below are the available profiling modules in Drupal 7(AFAIK), Personally I used XHProf and it helped us lot to improve the performance.
In addition to this you can also look into Performance Logging and Monitoring module which was removed from Devel. | ||
2 | You could turn on the devel mysql log to see which queries are taking too long to execute. You can also turn on the mysql slow query log in your mysql I suspect you are using views for this page. If that's the case, check the views filters. Try to add proper filtering on index columns from the node table. Or any other index column. In addition to that, check to see you have mysql cache enabled. | |||
1 | While Drupal supports a number of awesome profiling tools, such as XHProf –which is being used by the Twig team to insure the new theme system is performant– there are also some online graphing tools you use to instantly see what your page load waterfall looks like. Pingdom is one that gives you a visual display of all loaded assets and how long they took to render. For example, here's Pingdom's waterfall graph of the page you are reading now: -- Also, after I posted this answer I couldn't help noticing you are in New York. Come to NYC Camp next month and learn how to performance tune Drupal: http://nyccamp.org | ||||