techsmj Posted June 7, 2006 Share Posted June 7, 2006 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 More sharing options...
redarrow Posted June 7, 2006 Share Posted June 7, 2006 [!--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 More sharing options...
wildteen88 Posted June 7, 2006 Share Posted June 7, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.