Memory Usage + Database Configuration

Author Message

Shai Tung Li

Friday 26 December 2003 10:20:12 pm

Hello,

I just installed eZ-publish 3.3-1. I'm running:
FreeBSD 5.1-release
Apache 2.0.48
PHP 4.3.4
PostgreSQL 7.4.1

In order to get eZ-publish to run, I had to edit php.ini to increase memory_limit to 12M (from 8M).

First: Is this expected? That seems like a lot of memory.

Second: If this is expected, it would probably be a good idea to make a note of this in the installation documentation. I'm no PHP guru and figuring this out took me quite a while, and during that time eZ-publish didn't make a very good impression.

ALSO:

I followed the instructions per setting up the database ... but when I got to the screen where it asked for the database name, it said the database already contained data. I told it to delete the data and it worked ... but why did it give me this message?

Shai Tung Li

Friday 26 December 2003 10:33:39 pm

Whoops ... turns out it needs even more memory in the admin interface. Doubling memory_limit to 24M seems to have worked.

Paul Borgermans

Saturday 27 December 2003 2:40:25 am

You may need even more memory in other situations.

For a large server where also large pdf files need to be indexed, I had to raise the memory to 128MB

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Balazs Halasy

Saturday 27 December 2003 2:44:54 am

Regarding memory_limit in PHP:
Yeah, the required limit is around 12-16 MB. I thought we added this to the install doc a while ago - maybe not.. hmm, I'll take a look and add it if its not there. Anyway, 12 MB (or in some special cases 16 MB) is required, yes.

You shouldn't need 24 MB. Sometimes eZ publish needs a bit more than 12 MB the first time it is run. But this is a one-time-only phenomenon. I believe you need max 16 MB when running "normally" - try to decrease the memory_limit again.

Regarding the database:
If the database is empty and the setup still insists on erasing it then simply do it. Could be a bug in the setup wizard. We'll have a look at it. Thanks for pointing this out.

Balazs

Balazs Halasy

Saturday 27 December 2003 3:04:39 am

The memory requirement information was missing - I've added it to the docs now:

http://ez.no/developer/ez_publish_3/documentation/installation/normal_installation/requirements_for_doing_a_normal_installation

Again, thanks for telling.

Balazs

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

Main resources:

Total runtime0.6801 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 589.4688152.6406
Module start 'layout' 0.00430.0043 742.109439.4766
Module start 'content' 0.00860.6700 781.5859601.2500
Module end 'content' 0.67860.0014 1,382.835912.1406
Script end 0.6800  1,394.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4708160.0002
Check MTime0.00140.2014160.0001
Mysql Total
Database connection0.00060.085610.0006
Mysqli_queries0.611689.9381650.0094
Looping result0.00080.1165630.0000
Template Total0.650595.720.3253
Template load0.00220.329020.0011
Template processing0.648395.324320.3241
Template load and register function0.00020.036010.0002
states
state_id_array0.00100.154010.0010
state_identifier_array0.00080.111020.0004
Override
Cache load0.00190.2850350.0001
Sytem overhead
Fetch class attribute can translate value0.00080.116330.0003
Fetch class attribute name0.00190.281970.0003
XML
Image XML parsing0.00160.230030.0005
class_abstraction
Instantiating content class attribute0.00000.002980.0000
General
dbfile0.00120.1805230.0001
String conversion0.00000.001640.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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
3content/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: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs