[TYPO3-dev] EM problems
Dimitri Tarassenko
mitka at mitka.us
Thu Apr 6 22:06:30 CEST 2006
Martin,
On 4/6/06, Martin Kutschker <Martin.Kutschker at n0spam-blackbox.net> wrote:
> > Any ideas?
>
> From the PHP docs for xml_parse:
>
> "A document may be parsed piece-wise by calling xml_parse() several times
> with new data, as long as the is_final parameter is set and TRUE when the
> last data is parsed."
>
> Maybe it is better to feed the xml-file chunkwise to the parser:
Thanks for suggestion, tried that, feeding chunks of 50K at a time.
Same result. It feels like because the whole file is contained in
<extensions> container, and it doesn't matter if you feed it in chunks
or whole, it waits for this container to close before it parses the
contents and calls handlers for child nodes. Makes little sense, but
that's the result of the test.
I did try removing 2/3rds of the extensions from extensions.xml file,
and then it worked like a charm ;))
It's not the PHP memory limit though, it's something else. PHP.INI
sets memory limit to unlimited. The same test script I run works well
when started from the command line, but fails in the webserver (CGI)
environment. I've cut the important part out of EM and made a couple
of tests -
http://mitka.us/xmltest/xmltest.tgz :
test2.php works from command line and fails within the server
test3.php (with 400+ extensions XML file only) works fine both in CGI
and shell environments.
The thing that is different at 1&1's shared servers (Debian-based) and
my production (RHEL4) is their PHP is newer has Zend Memory Manager
enabled. Maybe this has something to do with it.
I'll file with their tech support and see what they think about it.
--
Dimitri Tarassenko
More information about the TYPO3-dev
mailing list