Forums / Install & configuration / Server goes DOWN - is ez publish guilty?

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?

eZ debug

Timing: Jan 18 2025 18:25:17
Script start
Timing: Jan 18 2025 18:25:17
Module start 'content'
Timing: Jan 18 2025 18:25:17
Module end 'content'
Timing: Jan 18 2025 18:25:17
Script end

Main resources:

Total runtime0.6825 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 587.8516180.8203
Module start 'content' 0.00680.6701 768.6719549.3984
Module end 'content' 0.67700.0054 1,318.070342.0703
Script end 0.6824  1,360.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5008140.0002
Check MTime0.00150.2231140.0001
Mysql Total
Database connection0.00070.102710.0007
Mysqli_queries0.609989.3637580.0105
Looping result0.00050.0758560.0000
Template Total0.635693.120.3178
Template load0.00220.329320.0011
Template processing0.633392.794020.3167
Template load and register function0.00020.026810.0002
states
state_id_array0.00090.130310.0009
state_identifier_array0.00080.120120.0004
Override
Cache load0.00190.2721380.0000
Sytem overhead
Fetch class attribute can translate value0.00060.092420.0003
Fetch class attribute name0.00080.123540.0002
XML
Image XML parsing0.00060.085120.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00681.0017190.0004
String conversion0.00000.001030.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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