Jump to content

Archived

This topic is now archived and is closed to further replies.

techsmj

Out of memory issue

Recommended Posts

Hi,

This may be small issue .. but i need a quick fix.

I have a script, that parse data from xml and insert it to a temporary table and from that table based on condition it distribute the datas to other tables...

while i am running the script for some 100 XML in one shot putting them in a for loop, from two systems at same time.. i got out of memory issue. this happens even with 512 MB VM's.

could any suggest whats the issue....

Jagan

Share this post


Link to post
Share on other sites
[!--quoteo(post=381002:date=Jun 7 2006, 02:29 PM:name=Jagan)--][div class=\'quotetop\']QUOTE(Jagan @ Jun 7 2006, 02:29 PM) [snapback]381002[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Hi,

This may be small issue .. but i need a quick fix.

I have a script, that parse data from xml and insert it to a temporary table and from that table based on condition it distribute the datas to other tables...

while i am running the script for some 100 XML in one shot putting them in a for loop, from two systems at same time.. i got out of memory issue. this happens even with 512 MB VM's.

could any suggest whats the issue....

Jagan
[/quote]

i dont know, But what i do know is if the computer is erroring on memory i would say it is a loop problam.

I bet its that for loop.

Share this post


Link to post
Share on other sites
I dont think its your actuall memory on your server but the memory a single php script can consume. The defualt is only 8MB. If you want to change this value you'll want to edit the php.ini and find the following line:
[code]memory_limit = 8M[/code]
Change 8 to bigger value so your script may use more memory. So try doubling that to 16MB

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.