problem with thread httpd on my server

Author Message

christophe wedeux

Friday 14 March 2008 6:44:58 am

For each HTTP Request call my site, one httpd's thread is open but don't closed when my request finished. The thread stays up for some second or many minutes.

While the thread up memory was keep. (Between 100Mo to 150Mo) so if more than 10 people make request in 30 second my server swap! And if other people come my server crash!!

Anyone have an idea why thread stay up?
I know my process need a lot memory but I can't reduce this. I just need to free memory at the end of my script.

conf:
ezpublish 3.9.1
server apache 2.1 prefork
php 4.4.7

André R.

Friday 14 March 2008 7:33:04 am

Bye thread you mean process I guess, try tweaking (reducing) the KeepAliveTimeout setting (and MaxKeepAliveRequests) in Apache.

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

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:22:58
Script start
Timing: Jan 19 2025 00:22:58
Module start 'layout'
Timing: Jan 19 2025 00:22:58
Module start 'content'
Timing: Jan 19 2025 00:22:59
Module end 'content'
Timing: Jan 19 2025 00:22:59
Script end

Main resources:

Total runtime1.0763 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.0313152.6406
Module start 'layout' 0.00550.0032 740.671939.4609
Module start 'content' 0.00861.0662 780.1328525.8672
Module end 'content' 1.07480.0015 1,306.00008.1563
Script end 1.0763  1,314.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2827160.0002
Check MTime0.00130.1219160.0001
Mysql Total
Database connection0.00100.091210.0010
Mysqli_queries1.035696.2142540.0192
Looping result0.00050.0428520.0000
Template Total1.043596.920.5217
Template load0.00220.200620.0011
Template processing1.041396.745520.5206
Template load and register function0.00020.019010.0002
states
state_id_array0.00130.122610.0013
state_identifier_array0.00150.134820.0007
Override
Cache load0.00180.1646150.0001
Sytem overhead
Fetch class attribute can translate value0.00080.076820.0004
Fetch class attribute name0.00080.071030.0003
XML
Image XML parsing0.00060.051720.0003
class_abstraction
Instantiating content class attribute0.00000.000430.0000
General
dbfile0.00080.0747170.0000
String conversion0.00000.000840.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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/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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs