Previous Thread
Next Thread
Print Thread
Rate Thread
#269830 02/24/2004 12:56 PM
Joined: Oct 2002
Posts: 71
Power User
Power User
Offline
Joined: Oct 2002
Posts: 71
With my current instalation of 6.4 I seem to have a lot of locked tables. Processor usage is never too bad, but here is an example:
Code
  <br />+---------+------+----------------+------------------------------------------------------------------------------------------------------+    <br />| Command | Time | State          | Info                                                                                                 |    <br />+---------+------+----------------+------------------------------------------------------------------------------------------------------+    <br />| Sleep   | 384  |                |                                                                                                      |    <br />| Sleep   | 327  |                |                                                                                                      |    <br />| Query   | 10   | Sorting result | SELECT t1.B_Number,t1.B_Main,t3.U_Username,t1.B_Subject,t1.B_Posted,t1.B_Board,t3.U_Color,t1.B_Reged |    <br />| Query   | 7    | Locked         | UPDATE w3t_Posts                                                                                          <br />				         SET    B_Counter = B_Counter + 1                                                                     <br />				         WHERE  B_Number = 672808         |                                                                   <br />| Query   | 6    | Locked         | SELECT t1.B_Number,t1.B_Parent,t2.U_Username,t1.B_Posted,t1.B_Last_Post,t1.B_Subject,t1.B_Main,t1.B_ |    <br />| Query   | 6    | Locked         | SELECT B_Main,B_Board                                                                                     <br />				      FROM   w3t_Posts                                                                                        <br />				      WHERE  B_Number = 674709                          |                                                     <br />| Query   | 6    | Locked         | SELECT B_Main,B_Board                                                                                     <br />				      FROM   w3t_Posts                                                                                        <br />				      WHERE  B_Number = 358032                          |                                                     <br />| Query   | 5    | Locked         | SELECT t1.Bo_Title,t1.Bo_Description,t1.Bo_Keyword,t1.Bo_Total,t1.Bo_Last,t1.Bo_Number,t1.Bo_Moderat |    <br />| Query   | 5    | Locked         | SELECT B_Main,B_Board                                                                                     <br />				      FROM   w3t_Posts                                                                                        <br />				      WHERE  B_Number = 663570                          |                                                     <br />| Query   | 5    | Locked         | SELECT B_Main,B_Board                                                                                     <br />				      FROM   w3t_Posts                                                                                        <br />				      WHERE  B_Number = 120186                          |                                                     <br />| Query   | 5    | Locked         | SELECT B_Main, B_Last_Post,B_Subject,B_Rating,B_Rates,B_RealRating,B_Board                                <br />				      FROM   w3t_Posts                                                                                        <br />				   |                                                                                                          <br />| Query   | 3    | Locked         | SELECT w3t_Favorites.F_Thread,w3t_Posts.B_Subject,w3t_Favorites.F_Number,w3t_Posts.B_Board,w3t_Favor |    <br />| Query   | 3    | Locked         | SELECT B_Main,B_Board                                                                                     <br />				      FROM   w3t_Posts                                                                                        <br />				      WHERE  B_Number = 676228                          |                                                     <br />| Query   | 2    | Locked         | SELECT B_Main,B_Board                                                                                     <br />				      FROM   w3t_Posts                                                                                        <br />				      WHERE  B_Number = 673286                          |                                                     <br />| Query   | 1    | Locked         | SELECT t1.B_Number,t1.B_Parent,t2.U_Username,t1.B_Posted,t1.B_Last_Post,t1.B_Subject,t1.B_Main,t1.B_ |    <br />| Query   | 0    | Locked         | SELECT t1.B_Number,t1.B_Parent,t2.U_Username,t1.B_Posted,t1.B_Last_Post,t1.B_Subject,t1.B_Main,t1.B_ |    <br />| Query   | 0    | Locked         | SELECT B_Main,B_Board                                                                                     <br />				      FROM   w3t_Posts                                                                                        <br />				      WHERE  B_Number = 676106                          |                                                     <br />| Query   | 0    |                | show processlist                                                                                          <br />

Is it normal for so many locked processes? Could this be what is causing me all these slowdowns during peak times even though processor usage isn't that high?

Fred

Sponsored Links
LCarter #269831 02/24/2004 8:34 PM
Joined: Oct 2001
Posts: 213
Member
Member
Offline
Joined: Oct 2001
Posts: 213
We are experiencing the exact same thing w/ 6.4.1! It's become extremely frustrating, and I have worked with Rick on it but don't have any success to report. His advise was to hang in there until 6.5. He didn't seem to know why the table-locks were occuring.

We tweaked my.cnf to maximize memory usage; our disk and cpu util is very low. I have also removed some search features - unregistered/non-logged-in users cannot search; no-one can search all forums - from some advice here. This didn't do much on ours.......

Otherwise, like us you are probably SOL. Combined w/ some other "oversights" (ie sticky post problem), 6.4.1 is a real stinker release.

joe

JoshPet #269832 02/25/2004 1:11 AM
Joined: Oct 2002
Posts: 71
Power User
Power User
Offline
Joined: Oct 2002
Posts: 71
Well, I guess it's good to know that I'm not the only one. There were a few issues like this on 6.3 but not nearly as bad as 6.4. Hopefully 6.5 will fix this.... Can't wait (nor can my users).

Fred

LCarter #269833 02/26/2004 8:47 AM
Joined: Oct 2001
Posts: 213
Member
Member
Offline
Joined: Oct 2001
Posts: 213
Fred, check your my.cnf for MySQL. I just looked at ours again last night and we had an entry "log-bin". This was writing every single MySQL transaction to a flat file.

Obviously this is additional overhead on the server; the www-bin.0xx files under /var/lib/mysql were enormous (600MB to 1GB). After deleting log-bin from my.cnf and restarting MySQL, our site immediately sped up - not just the forums, but the whole site. The lift on the forums has been very pleasant.

This didn't eliminate the locked tables problem, but it helped a great deal. And I also freed up about 10GB of disk space.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)