PHP Accelerator: Installed and now -> Probs

Author Message

Mark Mollerus

Sunday 05 March 2006 4:22:03 pm

Hey @ll,

i have installed the PHP Accelerator ( ionCube PHP Accelerator ) so my eZ-System run faster.

Now i cant login: At one eZ i get a Error Message:

Fatal error: Allowed memory size of 44040192 bytes exhausted (tried to allocate 279660 bytes) in /var/www/web1/html/hosting/wikicity/ez/var/news/cache/template/compiled/show_content_structure-ec434c4502a2a55ebcedd1dc639ace0d.php on line 1414
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.

On another i get a blank white site, after login in the admin-panel ( there are running 4 eZ´s on one Server )

I don´t know what i shoud or hae to do. Can you help me?

Greetings
Mark

Ɓukasz Serwatka

Sunday 05 March 2006 11:18:29 pm

Hi Mark,

You can increase amount of memory for PHP script in php.ini configuration file.

memory_limit = 64M

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Mark Mollerus

Monday 06 March 2006 5:50:12 am

The Script Memory Limit is 42 MB.

Is that not enough?

Mark Mollerus

Monday 06 March 2006 11:43:48 am

ok, i have changed the script size, but one eZ-System doesn´t run:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 279660 bytes) in /var/www/web1/html/hosting/wikicity/ez/var/news/cache/template/compiled/show_content_structure-ec434c4502a2a55ebcedd1dc639ace0d.php on line 1414

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /var/www/web1/html/hosting/wikicity/ez/lib/ezdb/classes/ezdb.php on line 132

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 154 bytes) in Unknown on line 0

Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

Kristof Coomans

Monday 06 March 2006 11:07:13 pm

Try to limit the size of the content structure menu by modifying some settings in contentstructuremenu.ini, these are by default:

[TreeMenu]
# which classes to show
ShowClasses[]

# max depth to fetch
# "0" means unlimited
MaxDepth=0

# max nodes count to fetch
# "0" means unlimited
MaxNodes=0

If you have template compilation enabled, you can first run the command line template compiler (bin/php/eztc.php) for the admin siteaccess, before you enter the admin site.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mark Mollerus

Wednesday 08 March 2006 10:08:35 am

it does´t run

If i run the bin/php/eztc.php i get errors:

#!/usr/bin/env php
Warning: main(lib/ezutils/classes/ezcli.php): failed to open stream: No such file or directory in /var/www/web1/html/hosting/wikicity/ez/bin/php/eztc.php on line 37

Warning: main(): Failed opening 'lib/ezutils/classes/ezcli.php' for inclusion (include_path='.:/usr/share/pear/') in /var/www/web1/html/hosting/wikicity/ez/bin/php/eztc.php on line 37

Warning: main(kernel/classes/ezscript.php): failed to open stream: No such file or directory in /var/www/web1/html/hosting/wikicity/ez/bin/php/eztc.php on line 38

Warning: main(): Failed opening 'kernel/classes/ezscript.php' for inclusion (include_path='.:/usr/share/pear/') in /var/www/web1/html/hosting/wikicity/ez/bin/php/eztc.php on line 38

Fatal error: Undefined class name 'ezcli' in /var/www/web1/html/hosting/wikicity/ez/bin/php/eztc.php on line 40

If i delete the show_content_structure-ec434c4502a2a55ebcedd1dc639ace0d.php, there is no reason.

What should i do?

Kristof Coomans

Wednesday 08 March 2006 10:15:09 am

Are you running it from the root dir of your eZ installation?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mark Mollerus

Wednesday 08 March 2006 10:29:50 am

The System is installed on http://www.wikicity.de/ez and i tried to call http://www.wikicity.de/ez/bin/php/eztc.php

Kristof Coomans

Wednesday 08 March 2006 11:06:14 pm

bin/php/eztc.php is a command line script, so try call it from the command line ;) Your current working directory has to be your eZ publish root dir (otherwise the script won't be able to find some needed include files).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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

Main resources:

Total runtime1.1393 sec
Peak memory usage4,096.0000 KB
Database Queries77

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 589.2969152.6406
Module start 'layout' 0.00900.0033 741.937539.4766
Module start 'content' 0.01231.1250 781.4141653.6328
Module end 'content' 1.13730.0019 1,435.046920.1250
Script end 1.1392  1,455.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3074160.0002
Check MTime0.00140.1193160.0001
Mysql Total
Database connection0.00150.132810.0015
Mysqli_queries1.070293.9344770.0139
Looping result0.00080.0713750.0000
Template Total1.101896.720.5509
Template load0.00250.221120.0013
Template processing1.099396.489920.5496
Template load and register function0.00010.012510.0001
states
state_id_array0.00130.114410.0013
state_identifier_array0.00160.137120.0008
Override
Cache load0.00220.1905440.0000
Sytem overhead
Fetch class attribute can translate value0.00070.061030.0002
Fetch class attribute name0.00100.0877110.0001
XML
Image XML parsing0.00110.100730.0004
class_abstraction
Instantiating content class attribute0.00000.0021130.0000
General
dbfile0.00100.0844240.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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs