05-03-2007, 23:45 | #11 |
Preparing more tumbleweed
Join Date: Jun 2006
Location: Hawaii
Posts: 6,038
|
In other words, lazy programming. All it takes is a single command to close the connection, and they could have used it.
__________________
Mal: Define "interesting"? Wash: "Oh, God, oh, God, we're all gonna die"? |
06-03-2007, 01:05 | #12 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
Aye. It's one thing I always do. In fact, I have code that detects connections left open, and will complain (and close them).
|
06-03-2007, 12:01 | #13 | |||
Moonshine
Join Date: Jul 2006
Location: Nr Liverpewl
Posts: 4,371
|
Quote:
Quote:
Quote:
|
|||
06-03-2007, 12:06 | #14 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
While the diagnosis seems possible, I would suggest not putting the blame on bad coding before determining whether or not there is some other cause. Only the logs will tell you that.
|
06-03-2007, 13:17 | #15 |
Moonshine
Join Date: Jul 2006
Location: Nr Liverpewl
Posts: 4,371
|
Annoyingly I only have access to the raw access logs which only show http connections. My host said they don't have MySQL logs or anything. I'm trying to setup a local copy so I can do some stress testing.
|
06-03-2007, 13:23 | #16 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
It's HTTP you need. MySQL doesn't keep human-readable logs anyway.
|
06-03-2007, 14:36 | #17 |
Moonshine
Join Date: Jul 2006
Location: Nr Liverpewl
Posts: 4,371
|
Oh right. It just looks normal, afaik. Its a 287mb file for access since the 28th Feb. I know I had trouble on the 2nd March in the evening but I'm guessing all I'd find would be connections to my HDR guide and perhaps the Wordpress error page being returned (if it shows that much). The error page basically says it can't connect to the db.
|
07-03-2007, 03:06 | #18 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
That's quite a lot of traffic for 7 days. I don't know the percentage of wordpress vs HDR, but it's possible you've outgrown your service and not realised it.
If you know when the error happened, you can see how many connections were attempted in the few minutes before the error. There are some useful tools for trawling through logs, but most of them live on *nix. |
07-03-2007, 12:18 | #19 |
Moonshine
Join Date: Jul 2006
Location: Nr Liverpewl
Posts: 4,371
|
I'm pretty sure I've outgrown them. The package I'm on was 20gb/month and 1.5gb space. Now don't tell them but in Feb I did 49.9gb and so far this month I've done 37gb *ahem*. If it wasn't for the way that there are sleeping connections left lying around for 10 minutes I'd just accept that my site is getting too much traffic for 10 connections to the server. I've installed a caching script that seems to have helped. But yeah, I do think its new host time.
|