Server goes DOWN - is ez publish guilty?

Author Message

Andrey Astakhov

Friday 19 October 2007 4:17:10 am

My web server goes down third time this week.
Server administrator say that they suspect php memory leaks.

Hardware
AMD Athlon64 3500+, 1GB RAM

Software
Operating system: Redhat Linux Fedora 6
Apache: 1.3.37
PHP: 4.4.7 (php info: http://prostobank.com.ua/phpinfo.php)
eZ Publish: 3.8.4

We have about 5000 visitors per day.

I noticed that ezsession table is always corrupted after server is down.
I truncated this table and kept an eye on it.
Thus, I've found out that size of this table grows drastically: about 50-60 NEW sessions per minute.
At the moment I have 3900 anonymous users and 5900 sessions. I tried to delete old and expired sessions, but it doesn't work: i still have 5900 sessions (even more already).

60 new sessions per minute - is this a normall behaviour?

André R.

Friday 19 October 2007 6:13:03 am

Related issue:
http://issues.ez.no/10431

Related forum thread:
http://ez.no/developer/forum/general/session_table_not_being_cleared_in_a_3_6_2_site

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Andrey Astakhov

Friday 19 October 2007 9:16:46 am

Thank you for answer, Andre
<i>
> Related issue:
> http://issues.ez.no/10431
</i>
I don't have Debian or Ubuntu and my session.gc_probability = 1
Why the resolution for this issue is "Won't Implement"? Is it not a problem?

<i>
> Related forum thread:
> http://ez.no/developer/forum/gene...le_not_being_cleared_in_a_3_6_2_site
</i>

Great: "I belive there is a 'session' created for every request from the anynomous user"
That is a real problem. Session cleanup cronjob but is good idea but it looks like a workaround. Why eZ Publish creates a new record in ezssession table for every http request? Does it depend on [Session] configuration in site.ini?

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 31 2025 06:00:32
Script start
Timing: Jan 31 2025 06:00:32
Module start 'layout'
Timing: Jan 31 2025 06:00:32
Module start 'content'
Timing: Jan 31 2025 06:00:33
Module end 'content'
Timing: Jan 31 2025 06:00:33
Script end

Main resources:

Total runtime1.1077 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 588.2578151.2266
Module start 'layout' 0.00860.0019 739.484436.6953
Module start 'content' 0.01051.0957 776.1797940.0625
Module end 'content' 1.10620.0015 1,716.242211.8125
Script end 1.1077  1,728.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2841160.0002
Check MTime0.00130.1182160.0001
Mysql Total
Database connection0.00060.057410.0006
Mysqli_queries1.049394.7275570.0184
Looping result0.00050.0441550.0000
Template Total1.074797.020.5373
Template load0.00240.217920.0012
Template processing1.072296.794020.5361
Template load and register function0.00150.139510.0015
states
state_id_array0.00190.170910.0019
state_identifier_array0.00210.186120.0010
Override
Cache load0.00150.1366380.0000
Sytem overhead
Fetch class attribute can translate value0.00040.040020.0002
Fetch class attribute name0.00200.180840.0005
XML
Image XML parsing0.00060.049820.0003
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00250.2259170.0001
String conversion0.00000.000440.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs