![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm working on a busy server, trying to get everything to run smoothly. I think that I have it all going well, but a couple of days ago I had an unexplained MySQL crash. It happened late at night when the server wasn't heavily loaded, but the number of threads spiked from 1 to 53.32. |
|
Now, I worry that it might crash when I'm not here, and that I wouldn't know to restart it for several hours. I was thinking of setting up a simple cron to run every 5 minutes: if (!$dbh = @mysql_connect("localhost", "username", "password")) { mail('hostmaster (AT) mydomain (DOT) com','mysql restarted',mysql_error()); exec('/etc/rc.d/init.d/mysql restart'); } |
|
My question is this: when I'm having a high server load, is this going to cause the load to be even higher? Or, since I'm not running any queries, would it just utilize any persistent connection already made (having no impact on the load)? |
#3
| |||
| |||
|
|
threads spiked from 1 to 53.32. |
|
.... I think that I have it all going well, but a couple of days ago I had an unexplained MySQL crash. It happened late at night when the server wasn't heavily loaded, but the number of threads spiked from 1 to 53.32. |
#4
| |||
| |||
|
|
I'm working on a busy server, trying to get everything to run smoothly. I think that I have it all going well, but a couple of days ago I had an unexplained MySQL crash. It happened late at night when the server wasn't heavily loaded, but the number of threads spiked from 1 to 53.32. How can you have 0.32 of a thread? |
#5
| |||
| |||
|
|
On 7 Feb, 11:14, Jason Carlton <jwcarl... (AT) gmail (DOT) com> wrote: I'm working on a busy server, trying to get everything to run smoothly. I think that I have it all going well, but a couple of days ago I had an unexplained MySQL crash. It happened late at night when the server wasn't heavily loaded, but the number of threads spiked from 1 to 53.32. How can you have 0.32 of a thread? |
#6
| |||
| |||
|
|
On Mon, 8 Feb 2010 05:49:42 -0800 (PST), Captain Paralytic wrote: On 7 Feb, 11:14, Jason Carlton <jwcarl... (AT) gmail (DOT) com> wrote: I'm working on a busy server, trying to get everything to run smoothly. I think that I have it all going well, but a couple of days ago I had an unexplained MySQL crash. It happened late at night when the server wasn't heavily loaded, but the number of threads spiked from 1 to 53.32. How can you have 0.32 of a thread? Average over time. |
![]() |
| Thread Tools | |
| Display Modes | |
| |