makiavelli1527 Posted March 29, 2015 Report Share Posted March 29, 2015 Есть сайт на WP. Работает очень медленно. Есть сжатие и кэш, но всё равно медленно, особенно раздел КонтактыКак можно ускорить работу WP'са ?Добавлено позже:Стоят минимум плагинов Quote Link to comment Share on other sites More sharing options...
gadz Posted March 30, 2015 Report Share Posted March 30, 2015 трудно сказать без логов Quote Link to comment Share on other sites More sharing options...
as_lan Posted March 30, 2015 Report Share Posted March 30, 2015 если используется apache+mod_php то сменить на nginx + php_fpm Stark 1 Quote Link to comment Share on other sites More sharing options...
bionix Posted April 1, 2015 Report Share Posted April 1, 2015 а сервер какой? какова нагрузка на сервер? Мониторинг производительности делал? Quote Link to comment Share on other sites More sharing options...
makiavelli1527 Posted April 1, 2015 Author Report Share Posted April 1, 2015 http://www.webpagetest.org/result/150401_ED_15DA/http://pic.opticatelecom.ru/image.php?di=JUBKСорри на недостаток инфы. Сайт просто не мой. Quote Link to comment Share on other sites More sharing options...
bionix Posted April 1, 2015 Report Share Posted April 1, 2015 @makiavelli1527,а статистика производительности системы нет? интересует - какая ОС стоит, каков нагрузка CPU, дисков, iowait. Какая СУБД используется, каковы данные производительности СУБД.Сбор данных не проводится чтоли? Quote Link to comment Share on other sites More sharing options...
bionix Posted April 1, 2015 Report Share Posted April 1, 2015 посмотрел твою стату, там сайт норм открывается, вот тормозят куча сервисов Quote Link to comment Share on other sites More sharing options...
makiavelli1527 Posted April 1, 2015 Author Report Share Posted April 1, 2015 Если в footer группы соц сетей убрать разница небольшая. К примеру в работе с новостями (wp-admin) тоже долго обрабатывает запросТам ещё меня волнует вот этот процессhttp://pic.opticatelecom.ru/image.php?di=5DCYСлишком много времени он занимает мне кажется. Quote Link to comment Share on other sites More sharing options...
bionix Posted April 1, 2015 Report Share Posted April 1, 2015 @makiavelli1527, тогда надо смотреть нагрузку что выше написал, чтоб понять , где узкое место. Quote Link to comment Share on other sites More sharing options...
DAGpro Posted April 1, 2015 Report Share Posted April 1, 2015 В этой части надо смотреть проблемы, какие сторонние ресурсы долго грузят сайт.https://yadi.sk/i/u5Z9B_LvfgkC3Да и 1 байт поступает только через 3 секунды. Quote Link to comment Share on other sites More sharing options...
makiavelli1527 Posted April 1, 2015 Author Report Share Posted April 1, 2015 @bionix, если нужно, могу список плагинов предоставить Quote Link to comment Share on other sites More sharing options...
bionix Posted April 1, 2015 Report Share Posted April 1, 2015 @makiavelli1527, Какая ОС и СУБД используется там? Quote Link to comment Share on other sites More sharing options...
DAGpro Posted April 1, 2015 Report Share Posted April 1, 2015 Если в footer группы соц сетей убрать разница небольшая. К примеру в работе с новостями (wp-admin) тоже долго обрабатывает запросТам ещё меня волнует вот этот процессhttp://pic.opticatelecom.ru/image.php?di=5DCYСлишком много времени он занимает мне кажется. В этом случае надо смотреть возможности по оптимизации скриптов и запросов к базе данных makiavelli1527 1 Quote Link to comment Share on other sites More sharing options...
makiavelli1527 Posted April 1, 2015 Author Report Share Posted April 1, 2015 @bionix,ubuntu 12, mysqlДобавлено позже:thehost.com.ua хостинг Quote Link to comment Share on other sites More sharing options...
bionix Posted April 1, 2015 Report Share Posted April 1, 2015 @makiavelli1527,а анализ медленных запросов в БД делал? Quote Link to comment Share on other sites More sharing options...
bionix Posted April 1, 2015 Report Share Posted April 1, 2015 а что показывает: cat /proc/cpuinfo | grep 'model name'| uniq free -m nproc Quote Link to comment Share on other sites More sharing options...
makiavelli1527 Posted April 1, 2015 Author Report Share Posted April 1, 2015 а что показывает: cat /proc/cpuinfo | grep 'model name'| uniq free -m nproc Это писать в SSH ? Quote Link to comment Share on other sites More sharing options...
bionix Posted April 1, 2015 Report Share Posted April 1, 2015 @makiavelli1527, да, и вывод сюда Quote Link to comment Share on other sites More sharing options...
makiavelli1527 Posted April 1, 2015 Author Report Share Posted April 1, 2015 @bionix,Не получится :/ This XML file does not appear to have any style information associated with it. The document tree is shown below. <doc> <error>Bad HTTP_REFERER</error> </doc> Quote Link to comment Share on other sites More sharing options...
bionix Posted April 1, 2015 Report Share Posted April 1, 2015 @makiavelli1527, ты это куда вводишь? доступ к терминалу ОС нету чтоли? Quote Link to comment Share on other sites More sharing options...
makiavelli1527 Posted April 1, 2015 Author Report Share Posted April 1, 2015 Нет. ISPmanager Quote Link to comment Share on other sites More sharing options...
bionix Posted April 1, 2015 Report Share Posted April 1, 2015 @makiavelli1527, ssh через putty нельзя сделать? Quote Link to comment Share on other sites More sharing options...
makiavelli1527 Posted April 1, 2015 Author Report Share Posted April 1, 2015 @bionix,сейчас... Quote Link to comment Share on other sites More sharing options...
makiavelli1527 Posted April 1, 2015 Author Report Share Posted April 1, 2015 @bionix, Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-69-generic x86_64) * Documentation: https://help.ubuntu.com/ System information disabled due to load higher than 8.0 New release '14.04.1 LTS' available.Run 'do-release-upgrade' to upgrade to it. *** System restart required ***Last login: Thu Apr 2 00:29:44 2015 from 91.234.35.228@s11:~$ cat /proc/cpuinfo | grep 'model name'| uniqmodel name : Intel® Xeon® CPU E3-1230 V2 @ 3.30GHz@s11:~$ free -m total used free shared buffers cachedMem: 16004 15312 692 0 730 11001-/+ buffers/cache: 3580 12424Swap: 15240 170 15070 @s11:~$ nproc8 @s11:~$ Quote Link to comment Share on other sites More sharing options...
bionix Posted April 1, 2015 Report Share Posted April 1, 2015 сервер норм, значит надо смотреть дисковую подсистему ну и саму базу на предмет медленных запросов. В MySQL не силен, так как не использую на практике, но суть скорее всего возможно придется потюнить MySQL, если запросы медленные есть: оптимизировать SQL запросы, увеличить кэш для СУБД. Важно также оценить параметр CPU iowait, но это нужно уже собирать статистику за некоторый промежуток времени, например пиковые нагрузки. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.