Problem with translations

Author Message

Marko Žmak

Wednesday 27 April 2005 9:41:53 am

I'm using eZ on two different servers. On one server (let's call ti OKSERVER) everyting works OK. On the other (ERORSERVER) I get memory exhaustion error when I use translations. I made identical setup procedures on both servers.

This servers differ in some PHP settings but I don't know what exactly is the reason for this error. Could someone clear this out?

Here is the PHP configuration for both servers...

OKSERVER:

'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-iconv' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--with-ming=../ming-0.2a' '--enable-magic-quotes' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pdflib' '--with-pear' '--with-pgsql=/usr' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--enable-wddx' '--with-xmlrpc' '--with-zip' '--with-zlib'

ERRORSERVER:

'./configure' '--prefix=/usr/local' '--with-config-file-path=/usr/local/httpd/conf' '--with-zlib' '--with-bz2' '--with-jpeg-dir=/usr' '--with-tiff-dir=/usr' '--enable-ftp' '--with-png-dir=/usr' '--with-mysql=/usr' '--enable-track-vars' '--enable-memory-limit' '--with-mhash=/usr' '--with-apache=../apache_1.3.33' '--enable-calendar' '--with-gd' '--with-ming=/usr' '--with-ssl=/usr' '--with-gettext' '--with-ttf' '--with-freetype-dir' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--enable-mbstring' '--enable-mbregex' '--with-curl' '--with-pgsql' '--with-pdflib=/usr/local/pdflib' '--with-xml' '--enable-bcmath' '--enable-exif' '--with-iconv' '--disable-debug' '--with-gdbm' '--enable-bcmath' '--with-dom'

I don't know if this is enough info, if not I can provide more, just tell me what.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Łukasz Serwatka

Wednesday 27 April 2005 10:58:05 am

On ERRORSERVER you have php configured with --enable-memory-limit which means that memory is limited to values set in php.ini file. On OKSERVER you don`t have this limit, so php can use whole available memory.

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

Marko Žmak

Wednesday 27 April 2005 3:56:31 pm

O.K. On ERRORSERVER I have a 32MB limit for PHP scripts. Why this isn't enough when translations are enabled?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Łukasz Serwatka

Wednesday 27 April 2005 11:51:37 pm

Translations are parsed with an XML parser in PHP - that uses lots of memory. On ERRORSERVER seems that DOM XML is installed, maybe doesn`t work properly.

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

Marko Žmak

Thursday 28 April 2005 4:00:45 pm

Hm I'll try to check out about dom. Do you have any other ideas why this doesn't work? Maybe different mbstring settings or something similar? What parts of PHP the translation system in eZ uses? I'm really not familiay with hoe translations work internally in eZ so I have no clue about what's the problem.

If this can help:

I've shortened the translation file - removed some parts that I don't need in the admin interface - and now everything works OK.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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

Main resources:

Total runtime0.0142 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.0055 589.1563152.6250
Module start 'layout' 0.00550.0034 741.781339.4453
Module start 'content' 0.00890.0034 781.226697.2266
Module end 'content' 0.01240.0018 878.453138.3047
Script end 0.0142  916.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.4308140.0002
Check MTime0.00117.9077140.0001
Mysql Total
Database connection0.00053.756310.0005
Mysqli_queries0.003021.128630.0010
Looping result0.00000.105510.0000
Template Total0.001611.310.0016
Template load0.00095.996110.0009
Template processing0.00085.314810.0008
Override
Cache load0.00074.605010.0007
General
dbfile0.00021.397780.0000
String conversion0.00000.058640.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