Admin Page Timing Out

Author Message

Zaid Amireh

Thursday 06 April 2006 1:11:56 am

Hello,

We have ez 3.7.2 on a P4 2G RAM, when trying to access the admin interface the connection times out, apache's memory usage jumps to 900MB for the child that was handling the request.

After some investigation we think the problem is related to the treemenu in the left part of the admin interface, we have a node 'News' which has 200,000 objects directly under it, building the treemenu to handle this amount of objects results in the timeouts and the huge memory usage (Even the Ajax TreeMenu plugin times out).

How can we disable 'generating and pushing' the treemenu from the controller to the view, if I remove the treemenu code from the template that wouldn't stop the controller from pushing this content anyway, right?

Sorry if I'm totally off track but I am not a developer.

Here is a link to a call trace with full parameters (250MB, 23MB gzipped)

http://205.234.207.181/trace.2043925204-2.xt.gz

To be honest I couldn't make out anything useful out of it, here are my notes anyway:

1) At line 278863 is a slow sql query that took about 16 seconds.
2) At line 281520 is another slow query.
3) From line 281552 to line 490016 are mysql_fetch_array() calls which seem to be related to node 64

Kristof Coomans

Thursday 06 April 2006 1:46:31 am

Take a look in contentstructuremenu.ini. You will find several settings in there to limit the content structure menu.

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

Zaid Amireh

Thursday 06 April 2006 2:41:11 am

I changed the contentstructuremenu.ini to the following

ShowClasses[]=forums
RootNodeID=2
MaxDepth=3

I also tried those in an override file, now the login pages times out too.

Kristof Coomans

Thursday 06 April 2006 6:06:11 am

Did you put those settings under a [TreeMenu] block, and did you clear the cache afterwards?

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

Zaid Amireh

Thursday 06 April 2006 6:08:21 am

yes and yes :)

Kristof Coomans

Thursday 06 April 2006 6:19:01 am

Can you browse to /settings/view of the admin interface? There you select the contentstructuremenu.ini file and your admin siteaccess. Now have a look at the ShowClasses setting. What's it's value there, and where was it taken from (the 'Placement' column)?

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

Zaid Amireh

Thursday 06 April 2006 6:39:03 am

<b>Settings for contentstructuremenu.ini in siteaccess albawaba_admin</b>

ShowClasses      default       [0] forums
                          override     [1] forums

Kristof Coomans

Thursday 06 April 2006 10:09:50 am

"forums" is the identifier of a content class that hasn't not too many object instances, right? Then the settings seem to be ok.

Did you check your database? We had a similar problem once and it turned out to be the database that was corrupted.

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

Zaid Amireh

Sunday 09 April 2006 12:04:31 am

I checked the database and everything seems to be fine, sure it took like 4 hours to check considering that the database is at 17G right now.

Betsy Gamrat

Sunday 09 April 2006 7:14:44 am

Also check the <b>MaxNodes</b> setting for contentstructuremenu.ini admin view.

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

Main resources:

Total runtime0.0183 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 590.2734152.6250
Module start 'layout' 0.00620.0041 742.898439.4609
Module start 'content' 0.01030.0055 782.3594101.4609
Module end 'content' 0.01580.0024 883.820346.3047
Script end 0.0182  930.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.008948.6819140.0006
Check MTime0.00126.6101140.0001
Mysql Total
Database connection0.00095.084310.0009
Mysqli_queries0.003921.384730.0013
Looping result0.00000.087510.0000
Template Total0.001910.310.0019
Template load0.00116.092710.0011
Template processing0.00084.185510.0008
Override
Cache load0.00084.427210.0008
General
dbfile0.00031.609480.0000
String conversion0.00000.048340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs