x.x.x.x is the server's public IP... this is a high traffic wordpress site.
max_connections are at 1000 now.. however before I changed, the server load would get to over 100 and then server would crash and need rebooted.
Server load is ~1 at time of this netstat -antup snapshot, however I think this might happen again.. eg load gets unmanageable and mysql restart (or reboot) needed.. x.x.x.x is the server's public IP
Wordpress appears to default to mysql_connect (vs pconnect) according to the sites wp-db.php:
* @param resource $dbh The resource given by mysql_connect
$this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );
$this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );
** Would changing to mysql_pconnect help ?? **
tcp 0 0 x.x.x.x:80 x.x.x.x:46405 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46271 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46267 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46431 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46361 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46351 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46315 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46345 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46296 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46329 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46289 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46368 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46399 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46428 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46398 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46280 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46277 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46264 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46363 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46380 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46440 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46335 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46281 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46385 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46438 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46383 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46274 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46290 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46347 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46411 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46389 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46306 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46416 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46408 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46419 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46367 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46292 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46369 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46295 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46268 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46375 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46327 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46417 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46415 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46341 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46266 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46388 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46414 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46410 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46432 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46334 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46358 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46270 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46395 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46435 TIME_WAIT -
tcp 0 0 x.x.x.x:80 x.x.x.x:46349 TIME_WAIT -