PDA

View Full Version : High load on server, need help


Chmura
12-30-2011, 05:01 PM
EDIT: They just sent me this email:
The problem was most likely caused by your VPS going over its RAM limit. This is recorded on the hardware node as an OOM (out of memory) event. Each time the VPS encounters OOM, some of its processes are killed by Virtuozzo in order to keep the VPS' RAM usage within limits. You may need to reduce your RAM usage or consider upgrading the server with more RAM to avoid such issues. You may be able to save some RAM by disabling some memory-intensive services like ClamAV or Spam Assassin.

I recently had to move from a VPS to a Managed Hybrid because of high server loads, now a week later it's still happening.

Also received an email about disk usage:
Drive Warning: /dev/vzfs (/) is 83% full
Drive Warning: /dev/simfs (/tmp) is 83% full

Received this from my host and they're trying to optimize the database, but I figured you guys will know more on this.

They also pointed out that it's running out of memory.

[root@server ~]# mysqladmin proc
+----+-----------------+-----------+--------------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+-----------------+-----------+--------------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+
| 1 | leechprotect | localhost | leechprotect | Sleep | 544 | | |
| 33 | vb_user | localhost | vb_db | Query | 6 | Sending data | SELECT thread.*,post.pagetext AS preview
FROM thread AS thread
LEFT JOIN post AS post ON(post |
| 34 | vb_user | localhost | vb_db | Query | 30 | Locked | UPDATE thread
SET vbseo_linkbacks_no = '0'
WHERE threadid = '782798' |
| 35 | vb_user | localhost | vb_db | Query | 22 | Locked | UPDATE thread
SET vbseo_linkbacks_no = '0'
WHERE threadid = '763280' |
| 36 | vb_user | localhost | vb_db | Query | 30 | Locked | UPDATE thread
SET vbseo_linkbacks_no = '0'
WHERE threadid = '263103' |
| 38 | vb_user | localhost | vb_db | Query | 2 | Sending data | SELECT * FROM seoqueries_terms WHERE term_value='gr�nemeyer spr�nge mediafire' |
| 40 | vb_user | localhost | vb_db | Query | 17 | statistics | SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS |
| 41 | vb_user | localhost | vb_db | Query | 16 | Sending data | SELECT thread.*,post.pagetext AS preview
FROM thread AS thread
LEFT JOIN post AS post ON(post |
| 42 | vb_user | localhost | vb_db | Query | 46 | update | INSERT INTO thread
(prefixid, postusername, postuserid, title, iconid, visible, forumid, dateline, |
| 43 | vb_user | localhost | vb_db | Query | 17 | Sending data | SELECT COUNT(*) AS threads,
(
SELECT COUNT(*) AS newthread
FROM thread AS thread
WHER |
| 44 | eximstats | localhost | eximstats | Sleep | 34 | | |
| 49 | vb_user | localhost | vb_db | Query | 2 | Sending data | SELECT * FROM seoqueries_terms WHERE term_value='gr�nemeyer spr�nge mediafire' |
| 50 | vb_user | localhost | vb_db | Query | 33 | Locked | INSERT INTO thread
(prefixid, postusername, postuserid, title, iconid, visible, forumid, dateline, |
| 56 | vb_user | localhost | vb_db | Query | 1 | Locked | SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS |
| 60 | vb_user | localhost | facethem_wordpress | Query | 1 | statistics | SELECT COUNT(comment_ID) FROM wp_comments WHERE comment_post_ID = 1269 AND comment_parent = 0 AND co |
| 61 | vb_user | localhost | vb_db | Query | 16 | Locked | UPDATE user AS user
SET lastpost = 1325266913
WHERE userid = 19847
AND lastpost < 13252668 |
| 62 | vb_user | localhost | vb_db | Query | 11 | Locked | SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS |
| 64 | vb_user | localhost | vb_db | Query | 1 | Sending data | SELECT * FROM seoqueries_terms WHERE term_value='emily sande haven torrent' |
| 65 | vb_user | localhost | vb_db | Query | 10 | Locked | SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS |
| 67 | vb_user | localhost | vb_db | Query | 6 | Locked | SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS |
| 68 | vb_user | localhost | vb_db | Query | 0 | Sending data | SELECT * FROM seoqueries_terms WHERE term_value='KOID003 rar' |
| 69 | vb_user | localhost | vb_db | Query | 6 | Locked | SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS |
| 70 | vb_user | localhost | vb_db | Query | 7 | Locked | SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM user W |
| 72 | root | localhost | | Query | 0 | | show processlist |
+----+-----------------+-----------+--------------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+

top - 11:44:17 up 11 min, 1 user, load average: 26.50, 10.16, 4.05
Tasks: 193 total, 2 running, 190 sleeping, 0 stopped, 1 zombie
Cpu(s): 2.7%us, 0.7%sy, 0.0%ni, 68.1%id, 28.5%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1048576k total, 949904k used, 98672k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached

Lynne
12-30-2011, 05:12 PM
I would post over in the Server Configuration forum on vbulletin.com and have your server optimized for vbulletin.

Chmura
12-30-2011, 11:04 PM
Thank you, I'll do just that! :)