منتدى استراحات زايد

منتدى استراحات زايد (http://vb.ma7room.com/)
-   منتدى أخبار المواقع والمنتديات العربية والأجنبية (http://vb.ma7room.com/f183.html)
-   -   Server keeps crashing, running out RAM (http://vb.ma7room.com/t480302.html)

محروم.كوم 08-14-2010 12:40 AM

Server keeps crashing, running out RAM
 
My server is crashing constantly. I've had intermittent problems with server overloads for a long time, and have never got to the bottom of them. However, recently I managed to patch up the problem by running a cron that emptied the cache every six hours. This would reduce the RAM used by a significant amount, and although it would start to climb up again, when the cache was emptied it would go back down.

I have 4GB of RAM on my server, and a site that has on average 400-500 people online at most times, and has around 2.2m posts.

However, I upgraded from 3.7.4 to 3.8.4 a week or so ago, and the problems I've had since then have been horrendous. The postindex table got corrupted as the server crashed midway through a repair, and although I managed to fix that eventually I also had to rebuild the search index. That eventually completed this afternoon, but the memory problem has worsened to the point that the server has crashed three times in the last 10 hours.

How can I find out what is eating up all the memory so quickly, as from everything I've been told I should have more than enough RAM to deal with the traffic I have to my site.

My hosts won't help other than to reboot the server for me, as I have an unsupported dedicated server.

These are the 'top' figures from the last time it crashed:

top - 21:12:46 up 3:39, 3 users, load average: 906.21, 800.53, 484.99
Tasks: 1654 total, 63 running, 1588 sleeping, 0 stopped, 3 zombie
Cpu(s): 0.3% us, 99.7% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 4148448k total, 4127304k used, 21144k free, 1920k buffers
Swap: 2040244k total, 2040244k used, 0k free, 18692k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5470 mysql 16 0 710m 175m 3272 S 7.0 4.3 21:47.42 mysqld
1 root 17 0 3540 544 468 R 5.6 0.0 0:09.63 init
870 nobody 25 0 5816 1120 996 D 4.7 0.0 0:04.94 sh
3671 root 18 0 1716 532 440 R 4.0 0.0 0:05.71 syslogd
6259 root 16 0 5816 828 572 D 3.9 0.0 0:07.16 hald


الساعة الآن 12:25 AM

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227