Forum LAMS for Tech-Heads - General Forum: Re: MySQL "dead" processes


 
Search: 

2: Re: MySQL "dead" processes
In response to 1 09/21/09 02:53 AM
[ Reply | Forward ]
You can check mysql's slow queries counter by doing 'mysqladmin status -u root -p'. (mysqladmin binary is under the 'bin' directory in the MySQL program dir).

Are there any errors in the mysql error log? It's in the MySQL program directory, or the data directory.

Posted by Jun-Dir Liew

3: Re: Re: MySQL "dead" processes
In response to 2 09/21/09 08:37 PM
[ Reply | Forward ]
No errors in the log.

The query doesn't fail, it just runs forever. By executing the SQL query manually, it instantly becomes a dead process.

Can you identify the origin of the SQL statement? Is it from LAMS or Wildfire? I'm beginning to suspect wildfire, as the problem hasn't recurred since I turned it off a few hours ago.

Posted by Peter Vitez

4: Re: Re: MySQL "dead" processes
In response to 2 09/21/09 10:09 PM
[ Reply | Forward ]
Server monitor----------------
User: lams2
Host: WEBCME01:60221
db: lams2
Command:Query
Time: 4622
State: *** DEAD ***


MySQLadmin--------------------
C:\>mysqladmin status -u root -p
Enter password: ******
Uptime: 15258
Threads: 5
Questions: 1620134
Slow queries: 7
Opens: 1611
Flush tables: 1
Open tables: 121
Queries per second avg: 106.183

Posted by Peter Vitez

5: Re: Re: MySQL "dead" processes
In response to 2 09/22/09 12:32 AM
[ Reply | Forward ]
Sigh.

It wasn't Wildfire. Still got problem. I'll keep testing to find what activity sets it off...

Posted by Peter Vitez

6: Re: Re: Re: MySQL "dead" processes
In response to 5 09/22/09 01:10 AM
[ Reply | Forward ]
I just had a look at the event related code (I'm not familiar with it).

The query is run by the scheduler in order to resend unsuccessful events. Do you have a mail server configured in your lams configuration? If not, one possibility is that mail notifications build up in the events tables.

In any case, can you do a dump of your lams_events and lams_event_subscriptions tables and attach/send them? Using mysqldump:

mysqldump lams lams_events lams_event_subscriptions > C:\dump.sql -u root -p

where the first argument is the database name.

Posted by Jun-Dir Liew

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum