Hi all,

Today i'm facing a critical problem which is slowing down the whole mysql server.

A process is running in drupal_watchdog with query 'DELETE FROM drupal_watchdog' and the execution time is increasing. It seems that this process is endless. I never faced such situation.

Can any one help me?

Thanks,
Santanu Das

Comments

killes@www.drop.org’s picture

Do you have sufficient privileges to kill the process? If yes, do so. If not get somebody who can do it.

Also, run a "TRUNCATE watchdog" to clean out the table, I assume it has too many entries. There's a config option to set the number of rows that get added. Also, make sure that your cron runs regularly, so that the table gets cleaned out regularly.

santanudas’s picture

Killes,

Thanks for the quick reply.

The process can't be killed even by the network administrator who has all the privileges. We tried to kill that process but did not succeed.

Then i decided to disable the 'dblog' module and after that the server running well. Now i can't see the log entries. Is there any bad effects in the site performance except this list of log entries?

I will try the approach to reduce the log entries from admin section.

Thanks again.
Santanu Das

Codeblind’s picture

Then i decided to disable the 'dblog' module and after that the server running well. Now i can't see the log entries. Is there any bad effects in the site performance except this list of log entries?

Hi Santanu,

For sites with a lot of activity, it is recommended to disable dblog and instead track Drupal Watchdog messages using the server's native syslog management. This allows you to do away with the resource intensive database writes associated with dblog, while still maintaining a record of the various transactions occurring on your site. Setting this up requires you have root level access to your hosting environment, be it a physical server or virtual machine. You can read more about configuring Drupal to use syslog here https://www.drupal.org/documentation/modules/syslog .

santanudas’s picture

Hi Codeblind,

Thanks for the valuable information. I will make a try of syslog module.

Regards,
Santanu