sumi
03-27-2010, 12:31 PM
I have few websites who are currently using MyISAM DB engine. They are very buzzy joomla websites and consuming a lot of ram and CPU power way much more than i expected.
I`m planing to change the engine from MyISAM to InnoDB. Will this make any progress ?!
One of the websites was abusing the mysql service so i had to make big changed on the website.
here is one part from mysql log.
408 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 409 | user_dbname | localhost | user_dbname | Query | 14 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 410 | user_dbname | localhost | user_dbname | Query | 19 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 413 | user_dbname | localhost | user_dbname | Query | 19 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 416 | user_dbname | localhost | user_dbname | Query | 18 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 417 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 419 | user_dbname | localhost | user_dbname | Query | 14 | Locked | UPDATE jos_content SET ordering = 22 WHERE id = '3128' |
| 429 | user_dbname | localhost | user_dbname | Query | 18 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 431 | user_dbname | localhost | user_dbname | Query | 19 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 432 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 433 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 435 | user_dbname | localhost | user_dbname | Query | 19 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 437 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug |
| 438 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug |
| 439 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug |
| 441 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 442 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 443 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 444 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 445 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 446 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 448 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 449 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 450 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 451 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 452 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 453 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 454 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 456 | bidizdra_new | localhost | bidizdra_new | Query | 0 | Updating | UPDATE jos_content SET hits = ( hits + 1 ) WHERE id='141' |
| 457 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 458 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 459 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 460 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 462 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 463 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 464 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT cc.title AS category, a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.secti |
| 465 | macedoni_joomla1 | localhost | macedoni_joomla15 | Sleep | 0 | | |
| 466 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 467 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 468 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 469 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 470 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 471 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 472 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 473 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 474 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 475 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 476 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SE
I have change the user and the DB name in the log for security.
The is not always problem , sometimes when there are a lot of visitors on line there is no problem. And sometimes when there are so little visitors on line i have big problems
What do you think can be the problem ?!
I`m planing to change the engine from MyISAM to InnoDB. Will this make any progress ?!
One of the websites was abusing the mysql service so i had to make big changed on the website.
here is one part from mysql log.
408 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 409 | user_dbname | localhost | user_dbname | Query | 14 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 410 | user_dbname | localhost | user_dbname | Query | 19 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 413 | user_dbname | localhost | user_dbname | Query | 19 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 416 | user_dbname | localhost | user_dbname | Query | 18 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 417 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 419 | user_dbname | localhost | user_dbname | Query | 14 | Locked | UPDATE jos_content SET ordering = 22 WHERE id = '3128' |
| 429 | user_dbname | localhost | user_dbname | Query | 18 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 431 | user_dbname | localhost | user_dbname | Query | 19 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 432 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 433 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 435 | user_dbname | localhost | user_dbname | Query | 19 | Copying to tmp table | SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":" |
| 437 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug |
| 438 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug |
| 439 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug |
| 441 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 442 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 443 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 444 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 445 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 446 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 448 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 449 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 450 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 451 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 452 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 453 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 454 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 456 | bidizdra_new | localhost | bidizdra_new | Query | 0 | Updating | UPDATE jos_content SET hits = ( hits + 1 ) WHERE id='141' |
| 457 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 458 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 459 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 460 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 462 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 463 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 464 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT cc.title AS category, a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.secti |
| 465 | macedoni_joomla1 | localhost | macedoni_joomla15 | Sleep | 0 | | |
| 466 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 467 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 468 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 469 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 470 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 471 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 472 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, CASE WHEN CHAR_L |
| 473 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 474 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 475 | user_dbname | localhost | user_dbname | Query | 14 | Locked | SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid |
| 476 | user_dbname | localhost | user_dbname | Query | 13 | Locked | SE
I have change the user and the DB name in the log for security.
The is not always problem , sometimes when there are a lot of visitors on line there is no problem. And sometimes when there are so little visitors on line i have big problems
What do you think can be the problem ?!
