Lost connection to MySQL server during query

Author Message

laurent le cadet

Monday 28 July 2008 7:23:48 am

Hi,

I have a site which tooks a very very long time to rebuild caches after clearing cache-block and template cache.

I have this error message (error.log) :

[ Jul 28 2008 16:07:43 ] [86.67.69.64] eZMySQLDB:
Connection error: Couldn't connect to database. Please try again later or inform the system administrator.
Lost connection to MySQL server during query

There is about 500 users connected at the same time.
Is there a relation (?) between users request and cache rebuilt ?

Any hints ?

Best regards.

laurent

Ps : on the pre-prod site there is no crash

Stéphane Couzinier

Monday 11 August 2008 2:07:30 pm

1) use eztc.php to rebuild your template compile.
2) don't remove all your cb and cache content at the same time.
3) reduce the number of SQL query generate by your tpl.
on a small dev mysql server sometime we have this error if there is a lot of query in the page or a lot of user at the same time

 

http://www.kouz-cooking.fr

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 00:30:34
Script start
Timing: Jan 19 2025 00:30:34
Module start 'layout'
Timing: Jan 19 2025 00:30:34
Module start 'content'
Timing: Jan 19 2025 00:30:34
Module end 'content'
Timing: Jan 19 2025 00:30:34
Script end

Main resources:

Total runtime0.0164 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.1641152.6563
Module start 'layout' 0.00620.0028 740.820339.5078
Module start 'content' 0.00900.0054 780.328189.5234
Module end 'content' 0.01440.0019 869.851630.3047
Script end 0.0163  900.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002716.2597140.0002
Check MTime0.00127.5383140.0001
Mysql Total
Database connection0.00095.212810.0009
Mysqli_queries0.003018.361130.0010
Looping result0.00000.085910.0000
Template Total0.00169.810.0016
Template load0.00095.206910.0009
Template processing0.00074.517110.0007
Override
Cache load0.00063.540710.0006
General
dbfile0.00031.909380.0000
String conversion0.00000.058240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs