casbboy — 2010-03-08T19:15:49-05:00 — #1
Here's my reports:
and then status:
Uptime: 168734 Threads: 22 Questions: 22607416 Slow queries: 0 Opens: 2070 Flush tables: 1 Open tables: 216 Queries per second avg: 133.983
Everything look good here?
scallioxtx — 2010-03-09T01:59:21-05:00 — #2
133 queries per second and ~17 connections per second is not weird for servers running several frequently visited websites.
If your server does however not host several frequently visited websites these numbers are quite high.
If this is an inhouse testing server i'd say these numbers are normal, and everyone is doing their job well
casbboy — 2010-03-09T04:06:46-05:00 — #3
Thanks a lot.
The server is running one heavily trafficked website. I was trying to monitor it during a particular spike, as I cannot figure out why the server is sort of crashing.
The load does not increase whatsoever (well, maybe a half) during spikes, but the server goes offline when getting drilled now. Though the reports show it staying up. I thought maybe the mysql was limiting connections and stopping the site entirely.
scallioxtx — 2010-03-09T07:24:27-05:00 — #4
Yes, MySQL has a setting for the maximum number of connections allowed.
What could also be the problem is the following:
When using a MyISAM table, and you have a thread running somewhere that inserts data into a table, but the thread hangs, all other threads can not read the table, since it is locked by the writing thread.
If this goes on long enough MySQL hangs itself (so to speak), and takes the whole server down with it. I had this on my server several times (solved it my giving the inserting PHP thread a time out, it was run via CLI, which by default doesn't have a time out).
With InnoDB this is not a problem since it has row-level locking (it does however have its own disadvantages).
casbboy — 2010-03-09T17:45:06-05:00 — #5
Yes, we've had problems with the locked tables (through updated views counting) before and have been working on at least an innodb table designed just for keeping tracking of impressions of content.
I'll watch my max connections and see if that is the hold up.
scallioxtx — 2010-03-09T17:52:26-05:00 — #6
Note that for tables that are mostly only read MyISAM is better suited because SELECT queries are faster on those.