If you have problems as slow or 30 sec. [solution]

Author Message

Selmah Maxim

Tuesday 29 July 2003 2:43:50 am

Hi ..

I have class and its stand from ~41 attribute and alot of matrix and enum, each time I edit this class i got php error time extention, and ezp eat my cpu 100%, and also slow !

I found this solution maybe its helpful for someone !

For the time extention (30sec) we have max_execution_time in php.ini , no need to modify the php.ini, just add this in .htaccess :

php_value max_execution_time =70

the time in secends !

now , for the speed you increase the used memory for php , by memory_limit value , also add this in .htaccess :

php_value memory_limit =22

now I have no problem with the time, and ezp is take 90%-95% from cpu when i edit this class !

Also if you have probem with submitting you may add this also :

php_value max_input_time =70

hph.

Alex Jones

Thursday 31 July 2003 8:23:52 am

Thank you thank thank you!

This bit of knowledge has been extremely helpful!! I have some forms that require a ton of fields (no way around it) and I was running into timeouts too often.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Selmah Maxim

Thursday 31 July 2003 8:26:17 am

no problem ... i needed it becoz i have class which have ~45 input :)

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 18 2025 19:34:17
Script start
Timing: Jan 18 2025 19:34:17
Module start 'layout'
Timing: Jan 18 2025 19:34:17
Module start 'content'
Timing: Jan 18 2025 19:34:18
Module end 'content'
Timing: Jan 18 2025 19:34:18
Script end

Main resources:

Total runtime0.7431 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.0076 589.1797152.6406
Module start 'layout' 0.00770.0029 741.820339.4766
Module start 'content' 0.01060.7310 781.2969527.1016
Module end 'content' 0.74160.0015 1,308.39848.2813
Script end 0.7430  1,316.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4874160.0002
Check MTime0.00130.1782160.0001
Mysql Total
Database connection0.00100.139310.0010
Mysqli_queries0.693793.3504570.0122
Looping result0.00050.0680550.0000
Template Total0.710095.520.3550
Template load0.00210.283720.0011
Template processing0.707995.263620.3539
Template load and register function0.00020.028310.0002
states
state_id_array0.00080.113810.0008
state_identifier_array0.00130.168220.0006
Override
Cache load0.00170.2330220.0001
Sytem overhead
Fetch class attribute can translate value0.00070.088820.0003
Fetch class attribute name0.00100.133640.0002
XML
Image XML parsing0.00060.082920.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00090.1162160.0001
String conversion0.00000.000940.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
3content/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: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs