Господа, прошу не углублятся в обсирание Джумлы, и помочь разобраться в моей проблеме. Итак имею два стандартных хостинга у хостера www.hc.ru На каждом висит по три сайта, и вот одна группа сталан нагружать сервак -а я не могу понять причин. Вот статистика по использованию скриптов, установленной системе и посещаемости. Сайт 1. 2 /components/com_artforms/assets/captcha/includes/alikon/showcode.php 3 /components/com_chronocontact/chrono_verification.php 13 /administrator/index2.php 19 /index.php 24 /administrator/index.php Джумла 1,5 Посещаемость 450 хостов Сайт 2. 2 /upload/market.php 4 /components/com_chronocontact/chrono_verification.php 4 /index.php 8 /administrator/index2.php 21 /administrator/index.php Джумла 1,5 Посещаемость 500 хостов Сайт 3. 13 /index.php Джумла 1,5 Посещаемость 25 хостов Нагрузка этой группы следующая: Использование ресурсов Процессор Суммарное потребление ресурсов процессора за прошедшие 7 суток для всего хостинга, мин 497.99 из 500 Вот тут проблема! Запросы к БД Суммарное время выполнения длительных запросов к БД для всего хостинга за сутки, с 371 из 50000 Ввод-вывод Количество операций ввода/вывода за прошедшие 7 суток для всего хостинга, шт. 266346 из 400000 __________________________________________________________________________ Сайт 1. 3 /index.php Джумла 1,5 Посещаемость 5 хостов Сайт 2. 1 /links/links.php 2 /admin/users/tov.php 2 /administrator/index.php 6 /index.php 7 /administrator/index2.php Джумла 1,0 Посещаемость 25 хостов Сайт 3. 1 /bookhotels/index.php 1 /component/option,com_fireboard/Itemid,78/func,latest/index.php 2 /administrator/index.php 4 /components/com_fireboard/template/default/plugin/captcha/randomImage.php 5 /send.php 6 /index2.php 7 /index.php 16 /administrator/index2.php 19 /obl_send.php Джумла 1,0 Посещаемость 3500 хостов Использование ресурсов Процессор Суммарное потребление ресурсов процессора за прошедшие 7 суток для всего хостинга, мин 177.54 из 500 Запросы к БД Суммарное время выполнения длительных запросов к БД для всего хостинга за сутки, с 276 из 50000 Ввод-вывод Количество операций ввода/вывода за прошедшие 7 суток для всего хостинга, шт. 222591 из 400000
500 минут за неделю? То есть 5% - не так и много, стоит проверить компоненты, модули и кэширование.. а вообще судя по всему ботов довольно много.. может стоит оптимизировать каптчу?
если я правильно понял то больше всего "посещаемость" именно ботами для файлов /administrator/index.php ну так закройте админку через .htaccess или с помощью http://extensions.joomla.org/extensions/access-a-security/site-security/5809 ?
не стал создавать новую тему Помогите разобраться с дебагом, возможно что-то лишнее. Сайт bigbang-fun.ru Код (PHP): Информация о профиле Application afterLoad: 0.000 seconds, 0.25 MB Application afterInitialise: 0.075 seconds, 5.22 MB Application afterRoute: 0.116 seconds, 5.61 MB Application afterDispatch: 0.218 seconds, 9.85 MB Application afterRender: 0.354 seconds, 15.23 MB Использование памяти 16025200 Зарегистрировано запросов: 42 1. SELECT * FROM jos_session WHERE session_id = '3m1441rvc0ekseb0tjh12en5r3' 2. DELETE FROM jos_session WHERE ( time < '1314440436' ) 3. SELECT * FROM jos_session WHERE session_id = '3m1441rvc0ekseb0tjh12en5r3' 4. UPDATE `jos_session` SET `time`='1314442236',`userid`='62',`usertype`='Super Administrator',`username`='admin',`gid`='25',`guest`='0',`client_id`='0',`data`='__default|a:8:{s:15:\"session.counter\";i:385;s:19:\"session.timer.start\";i:1314437894;s:18:\"session.timer.last\";i:1314442233;s:17:\"session.timer.now\";i:1314442234;s:22:\"session.client.browser\";s:122:\"Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.20) Gecko/20110803 Firefox/3.6.20 sputnik 2.5.0.142 WebMoney Advisor\";s:8:\"registry\";O:9:\"JRegistry\":3:{s:17:\"_defaultNameSpace\";s:7:\"session\";s:9:\"_registry\";a:1:{s:7:\"session\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:4:\"user\";O:5:\"JUser\":19:{s:2:\"id\";s:2:\"62\";s:4:\"name\";s:13:\"Administrator\";s:8:\"username\";s:5:\"admin\";s:5:\"email\";s:19:\"bigbang-fun@mail.ru\";s:8:\"password\";s:65:\"ef0ee419ef759b7c7b2f1eff775fa208:GBGBWvGayXgAe1SeESz8MnG7JvdI5QFo\";s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";s:19:\"Super Administrator\";s:5:\"block\";s:1:\"0\";s:9:\"sendEmail\";s:1:\"1\";s:3:\"gid\";s:2:\"25\";s:12:\"registerDate\";s:19:\"2010-07-17 12:53:14\";s:13:\"lastvisitDate\";s:19:\"2011-08-27 09:43:55\";s:10:\"activation\";s:0:\"\";s:6:\"params\";s:56:\"admin_language=\nlanguage=\neditor=\nhelpsite=\ntimezone=5\n\n\";s:3:\"aid\";i:2;s:5:\"guest\";i:0;s:7:\"_params\";O:10:\"JParameter\":7:{s:4:\"_raw\";s:0:\"\";s:4:\"_xml\";N;s:9:\"_elements\";a:0:{}s:12:\"_elementPath\";a:1:{i:0;s:70:\"/home/b/bigbangfun/public_html/libraries/joomla/html/parameter/element\";}s:17:\"_defaultNameSpace\";s:8:\"_default\";s:9:\"_registry\";a:1:{s:8:\"_default\";a:1:{s:4:\"data\";O:8:\"stdClass\":5:{s:14:\"admin_language\";s:0:\"\";s:8:\"language\";s:0:\"\";s:6:\"editor\";s:0:\"\";s:8:\"helpsite\";s:0:\"\";s:8:\"timezone\";s:1:\"5\";}}}s:7:\"_errors\";a:0:{}}s:9:\"_errorMsg\";N;s:7:\"_errors\";a:0:{}}s:13:\"session.token\";s:32:\"701bb25229e90948a03a5117a37c7803\";}' WHERE session_id='3m1441rvc0ekseb0tjh12en5r3' 5. SELECT * FROM jos_components WHERE parent = 0 6. SELECT folder AS type, element AS name, params FROM jos_plugins WHERE published >= 1 AND access <= 2 ORDER BY ordering 7. SELECT `a`.`vars`, `u`.`sefurl` FROM `jos_sefaliases` AS `a` INNER JOIN `jos_sefurls` AS `u` ON `u`.`id` = `a`.`url` WHERE `a`.`alias` = '' AND `u`.`trashed` = '0' 8. SELECT `id` FROM `jos_plugins` WHERE `element` = 'joomsef' AND `folder` = 'system' AND `published` = '1' 9. SELECT * FROM `jos_sefurls` WHERE (`sefurl` = '' OR `sefurl` = 'index.php') AND `trashed` = '0' LIMIT 1 10. SELECT `file`, `params` FROM `jos_sefexts` 11. SELECT template FROM jos_templates_menu WHERE client_id = 0 AND (menuid = 0 OR menuid = 1) ORDER BY menuid DESC LIMIT 0, 1 12. SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email AS author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering FROM jos_content AS a INNER JOIN jos_content_frontpage AS f ON f.content_id = a.id LEFT JOIN jos_categories AS cc ON cc.id = a.catid LEFT JOIN jos_sections AS s ON s.id = a.sectionid LEFT JOIN jos_users AS u ON u.id = a.created_by LEFT JOIN jos_groups AS g ON a.access = g.id WHERE 1 AND a.access <= 2 AND a.state >= 0 ORDER BY f.ordering LIMIT 0, 9 13. SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email AS author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering FROM jos_content AS a INNER JOIN jos_content_frontpage AS f ON f.content_id = a.id LEFT JOIN jos_categories AS cc ON cc.id = a.catid LEFT JOIN jos_sections AS s ON s.id = a.sectionid LEFT JOIN jos_users AS u ON u.id = a.created_by LEFT JOIN jos_groups AS g ON a.access = g.id WHERE 1 AND a.access <= 2 AND a.state >= 0 ORDER BY f.ordering 14. SELECT created_by, sectionid, catid FROM jos_content WHERE id='383' 15. SELECT count(*) FROM jos_attachments WHERE article_id='383' AND published='1' 16. SELECT count(*) FROM jos_jcomments WHERE object_id = 383 AND object_group = 'com_content' 17. SELECT `catid` FROM `jos_content` WHERE `id` = '383' 18. SELECT * FROM `jos_sefurls` WHERE `origurl` = 'index.php?option=com_content&catid=13&id=383&ret=aHR0cDovL2JpZ2JhbmctZnVuLnJ1Lw==&task=edit&view=article' AND (`trashed` = '0') LIMIT 2 19. SELECT created_by, sectionid, catid FROM jos_content WHERE id='14' 20. SELECT count(*) FROM jos_attachments WHERE article_id='14' AND published='1' 21. SELECT count(*) FROM jos_jcomments WHERE object_id = 14 AND object_group = 'com_content' 22. SELECT `catid` FROM `jos_content` WHERE `id` = '14' 23. SELECT `catid` FROM `jos_content` WHERE `id` = '14' 24. SELECT * FROM `jos_sefurls` WHERE `origurl` = 'index.php?option=com_content&id=14&ret=aHR0cDovL2JpZ2JhbmctZnVuLnJ1Lw==&task=edit&view=article' AND (`trashed` = '0') LIMIT 2 25. SELECT id, title, module, position, content, showtitle, control, params FROM jos_modules AS m LEFT JOIN jos_modules_menu AS mm ON mm.moduleid = m.id WHERE m.published = 1 AND m.access <= 2 AND m.client_id = 0 AND ( mm.menuid = 1 OR mm.menuid = 0 ) ORDER BY position, ordering 26. SELECT id FROM jos_menu WHERE link = 'index.php?option=com_comprofiler' AND published=1 AND access <= 2 27. SELECT id FROM jos_menu WHERE link = 'index.php?option=com_comprofiler&task=usersList' AND published=1 AND access <= 2 28. SELECT banned FROM jos_comprofiler WHERE id = 62 29. SELECT gid FROM jos_users WHERE id = 62 30. SELECT g1.id AS group_id, g1.name FROM jos_core_acl_aro_groups g1 LEFT JOIN jos_core_acl_aro_groups g2 ON g2.lft <= g1.lft WHERE g2.id =23 ORDER BY g1.name 31. SELECT count(*) FROM jos_comprofiler WHERE avatarapproved=0 AND approved=1 AND confirmed=1 AND banned=0 32. SELECT count(*) FROM jos_comprofiler_userreports WHERE reportedstatus=0 33. SELECT count(*) FROM jos_comprofiler WHERE banned=2 AND approved=1 AND confirmed=1 34. SELECT count(*) FROM jos_comprofiler WHERE approved=0 AND confirmed=1 35. SELECT COUNT(*) FROM jos_comprofiler_members AS m LEFT JOIN jos_comprofiler AS c ON m.referenceid=c.id LEFT JOIN jos_users AS u ON m.referenceid=u.id WHERE m.memberid=62 AND m.pending=1 AND c.approved=1 AND c.confirmed=1 AND c.banned=0 AND u.block=0 36. SELECT * FROM jos_users AS u LEFT JOIN jos_comprofiler AS c ON c.id = u.id WHERE u.id = 62 37. SELECT id, folder, element, published, type, params, CONCAT_WS('/',folder,element) AS lookup, name FROM jos_comprofiler_plugin WHERE published = 1 AND access <= 2 AND type = 'user' ORDER BY ordering 38. CREATE TABLE IF NOT EXISTS `jos_achat` (`msg_id` int(11) NOT NULL AUTO_INCREMENT, `nick` varchar(64) NOT NULL DEFAULT '', `msg` text NOT NULL, `msgtime` text NOT NULL, PRIMARY KEY (`msg_id`)); 39. SELECT MAX(msg_id) FROM jos_achat 40. SELECT * FROM `jos_sefurls` WHERE `origurl` = 'index.php?option=com_content&catid=13&id=383&ret=aHR0cDovL2JpZ2JhbmctZnVuLnJ1Lw==&task=edit&view=article' AND (`trashed` = '0') LIMIT 2 41. SELECT `catid` FROM `jos_content` WHERE `id` = '14' 42. SELECT * FROM `jos_sefurls` WHERE `origurl` = 'index.php?option=com_content&id=14&ret=aHR0cDovL2JpZ2JhbmctZnVuLnJ1Lw==&task=edit&view=article' AND (`trashed` = '0') LIMIT 2