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

منتدى استراحات زايد (http://vb.ma7room.com/index.php)
-   منتدى أخبار المواقع والمنتديات العربية والأجنبية (http://vb.ma7room.com/forumdisplay.php?f=183)
-   -   Forum Apache going nuts daily!!!!! (http://vb.ma7room.com/showthread.php?t=444705)

محروم.كوم 07-02-2010 05:10 AM

Forum Apache going nuts daily!!!!!
 
I am running VBulletin 4.0.4

We have a very busy board with over 1.2 million posts and over 150K members. upwards of 1800 users on at
any one time. Busiest ever was 2700 online but that was on 3.6.9, not 4.0.4

Since upgrading, I now have a server that apache spirals out of control at around 1400-1800 users online each day.
It happens every single day betwen 12-1:30PM so I guess you could say that is my peak.
At that point, the machine is generally pushing around 10 mb/s of outbound bandwidth.
We server serves mostly text articles. Except for avatars, icons and a few profile pics, most content is linked
elsewhere at other locations.

The server:
2 X dual core xeon 1.60GHZ with a 1066MHz front side bus and
8 GB's of ram
73 GB SCSI 300 10,000 rpm disk

The System is running FreeBSD 7.1-RELEASE-p3

The problem is always the same, the apache processes run away and hit it's max connections.
The users online when it happens varies. I've seen it anywhere from 1200 to 1893

Server Load Averages 28.03 20.54 22.72 | 1,398 Users Online (1,048 members and 350 guests)
258 web processes running

Server Load Averages 94.87 96.00 85.25 | 1,893 Users Online (1,403 members and 490 guests)
web processes spiked to the max connections of 1000

We tried bumping max connections in MYSQL from 300 to 500 to 1000 to 1300
We have likewise set max connections on apache from a low of 300 to a high of 1600.
Always spirals to it's max connections and stop answering.

The server generally have 1-1.5GB's of ram active, 4GB's inactive a around 1 GB free
and the rest used by wired for the most part and then the rest of the system stuff.

The machine almost never uses swap. From time to time, 40k - 80k but that is rare.

Here are the admincp stats

Server Type FreeBSD
Web Server Apache v1.3.42
PHP 5.3.2
PHP Max Post Size 8.00 MB
PHP Maximum Upload Size 2.00 MB
PHP Memory Limit 256.00 MB
MySQL Version 5.5.4-m3
MySQL Packet Size 5.00 MB
Data Usage 769.94 MB
Index Usage 379.67 MB
Profile Picture Usage 16.49 MB
Unique Members Today 16,949
New Users Today 454
New Posts Today 3,584
New Threads Today 279
--------------------------------------------------------------
We are running APC Cache
$config['Datastore']['class'] = 'vB_Datastore_APC';

My.cnf:
[mysqld]
socket = /tmp/mysql.sock
skip-networking
key_buffer_size = 256M
max_allowed_packet = 5M
table_cache = 2000
sort_buffer_size = 8M
read_buffer_size = 2M
read_rnd_buffer_size = 24M
myisam_sort_buffer_size = 128M
thread_cache = 64
query-cache-size = 128M
max_connections = 2000
------------------------------------------------------------
httpd.conf:
ServerType standalone
ServerRoot "/usr/local"
PidFile /var/run/httpd.pid
ScoreBoardFile /var/run/httpd.scoreboard
Timeout 30
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 4
MinSpareServers 10
MaxSpareServers 15
StartServers 300
MaxClients 1600
MaxRequestsPerChild 1000

LoadModule vhost_alias_module libexec/apache/mod_vhost_alias.so
LoadModule config_log_module libexec/apache/mod_log_config.so
LoadModule mime_magic_module libexec/apache/mod_mime_magic.so
LoadModule mime_module libexec/apache/mod_mime.so
LoadModule dir_module libexec/apache/mod_dir.so
LoadModule cgi_module libexec/apache/mod_cgi.so
LoadModule alias_module libexec/apache/mod_alias.so
LoadModule rewrite_module libexec/apache/mod_rewrite.so
LoadModule access_module libexec/apache/mod_access.so
LoadModule auth_module libexec/apache/mod_auth.so
LoadModule unique_id_module libexec/apache/mod_unique_id.so
LoadModule php5_module libexec/apache/libphp5.so
ClearModuleList
AddModule mod_vhost_alias.c
AddModule mod_log_config.c
AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_php5.c
Port 80

Oh yes, almost forgot. we have noatime set.

Not sure what other info I can provide or that you need. Any ideas?

Any help would be appreciated.
Thank you in advance!


الساعة الآن 05:49 PM

Powered by vBulletin® Copyright ©2000 - 2026, 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