Hey Tristan,
thank you for your help. I followed your tip with the following result:
Server 1:
There is a RLimitMEM Value in the httpd.conf
I removed it, restart httpd, same failure!
Server 2:
There is no RLimitMEM entry in the httpd file.
I tried the same script on a 4year old debian system, no problem, everything
worked perfectly.
I tried to increase every limitation I found, without success.
What I try to do:
1 - Open a 40MB XML File with 700 000 lines
2 - Parse it with SimpleXML
3 - Write data into MySQL
The error already occures after step 1. With a 14MB File with 285 000 lines everything works.
Code:
<b>Warning</b>: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: (null)(null) /home/.../www/test.xml:238267: parser error : out of memory error in <b>/home/.../public_htm/.../import.php</b> on line <b>14</b><br />
Stacktrace:
Code:
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
There must be a solution for this problem :-(
Thank you,
Hawky