Jump to content

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
Link to comment
https://forums.phpfreaks.com/topic/11413-out-of-memory-issue/
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.
Link to comment
https://forums.phpfreaks.com/topic/11413-out-of-memory-issue/#findComment-42812
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
Link to comment
https://forums.phpfreaks.com/topic/11413-out-of-memory-issue/#findComment-42833
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.