Forums / Install & configuration / INSERT INTO ezsession cause timeout and crash

INSERT INTO ezsession cause timeout and crash

Author Message

laurent le cadet

Tuesday 22 July 2008 9:42:08 am

Hi,

I have a real problem with a site.
There was more than 1000 anonymous user inline at the same time.
The site crash.

error.log says :

[ Jul 22 2008 17:25:21 ] [82.245.188.40] eZMySQLDB:
Query error: Lock wait timeout exceeded; Try restarting transaction. Query: INSERT INTO ezsession
                    ( session_key, expiration_time, data, user_id )
                    VALUES ( '03ff8b9f6d016394bc9c1c34097f4097', '1216999243', 'eZUserLoggedInID|i:10;eZUserInfoCache_Timestamp|i:1216739730;eZUserInfoCache|a:1:{i:10;a:5:{s:16:\"contentobject_id\";s:2:\"10\";s:5:\"login\";s:9:\"anonymous\";s:5:\"email\";s:12:\"nospam@ez.no\";s:13:\"password_hash\";s:32:\"4e6f6184135228ccd45f8233d72a0363\";s:18:\"password_hash_type\";s:1:\"2\";}}AccessArray|a:3:{s:7:\"content\";a:2:{s:4:\"read\";a:2:{s:6:\"p_1387\";a:1:{s:7:\"Section\";a:12:{i:0;s:1:\"1\";i:1;s:2:\"12\";i:2;s:2:\"25\";i:3;s:2:\"32\";i:4;s:2:\"44\";i:5;s:2:\"45\";i:6;s:2:\"47\";i:7;s:2:\"48\";i:8;s:2:\"49\";i:9;s:2:\"50\";i:10;s:2:\"51\";i:11;s:1:\"8\";}}s:6:\"p_1389\";a:2:{s:5:\"Class\";a:2:{i:0;s:2:\"26\";i:1;s:1:\"5\";}s:7:\"Section\";a:1:{i:0;s:1:\"3\";}}}s:10:\"tipafriend\";a:1:{s:1:\"*\";s:1:\"*\";}}s:4:\"user\";a:1:{s:5:\"login\";a:1:{s:6:\"p_1388\";a:1:{s:10:\"SiteAccess\";a:1:{i:0;s:10:\"3430272718\";}}}}s:3:\"rss\";a:1:{s:4:\"feed\";a:1:{s:1:\"*\";s:1:\"*\";}}}AccessArrayTimestamp|i:1216739730;eZRoleLimitationValueList_Timestamp|i:1216739730;eZUserGroupsCache_Timestamp|i:1216739730;eZUserGroupsCache|a:2:{i:0;s:2:\"42\";i:1;s:1:\"4\";}eZRoleLimitationValueList|a:1:{i:0;s:0:\"\";}eZRoleIDList_Timestamp|i:1216739730;eZRoleIDList|a:1:{i:0;s:1:\"1\";}eZUserDiscountRulesTimestamp|i:1216739730;eZUserDiscountRules10|a:0:{}eZGlobalSection|a:1:{s:2:\"id\";s:1:\"1\";}LastAccessesURI|s:34:\"/culture/genealogie/nom_de_famille\";LastAccessedModifyingURI|s:34:\"/culture/genealogie/nom_de_famille\";', '10' )

I looked at the anonymous user account and I saw that this user can support 1000 connection at the same time.

The problem comas from that ?

I need assistance :)

Best regards.

Laurent

Any idea?

Stéphane Couzinier

Monday 11 August 2008 2:15:05 pm

hi

reduce session timeout. maybe it will reduce the number of line in the table
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/configuration_files/site_ini/session

During this pb did you had a lot of traffic in your web site?
Maybe your have something to check in your Mysql conf.
http://ez.no/developer/articles/tuning_mysql_for_ez_publish/mysql_configuration

http://www.kouz-cooking.fr

eZ debug

Timing: Jan 18 2025 15:18:33
Script start
Timing: Jan 18 2025 15:18:33
Module start 'content'
Timing: Jan 18 2025 15:18:34
Module end 'content'
Timing: Jan 18 2025 15:18:34
Script end

Main resources:

Total runtime0.8017 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9609180.8047
Module start 'content' 0.00620.6572 768.7656534.6406
Module end 'content' 0.66340.1382 1,303.4063332.7188
Script end 0.8016  1,636.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4871210.0002
Check MTime0.00160.1966210.0001
Mysql Total
Database connection0.00070.083210.0007
Mysqli_queries0.731991.29231910.0038
Looping result0.00220.27541890.0000
Template Total0.777096.920.3885
Template load0.00170.217220.0009
Template processing0.775396.700920.3876
Template load and register function0.00020.023210.0002
states
state_id_array0.00080.094210.0008
state_identifier_array0.00090.112520.0005
Override
Cache load0.00150.1818240.0001
Sytem overhead
Fetch class attribute can translate value0.00170.206130.0006
Fetch class attribute name0.00180.218930.0006
XML
Image XML parsing0.00090.111930.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00220.2692270.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0005 secs