How to debug "Waiting for table level lock" processes
Posted by: James Roberts
Date: May 15, 2014 06:08AM

Hi,

I have a server with multiple databases on it. Our production databases are running fine, but our dev versions have started "hanging" after a while of use.

What I see in mysql is processes like this:

" Waiting for table level lock | UPDATE `users_saved_carts` SET...(etc.)"

and the process never dies, unless killed manually. After killing it, the next load of the page usually causes the same problem. It's not usually the same table / query even, just any updates / inserts seem to hang.

The only fix so far is to reboot the server, and then things run fine for a little while (few days, weeks). Then the problem returns.

My question is what should I do next to debug this? Does it seem like a hardware issue, mysql issue, or code issue in the php? We have a shopping cart and wordpress running.

Thanks for any advice,

-Jim

Options: ReplyQuote


Subject
Written By
Posted
How to debug "Waiting for table level lock" processes
May 15, 2014 06:08AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.