Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
Dennis... create a simple loop of approx 10,000 iterations and create a criteria inside the loop... and echo the php's memory usage... I this the issue is quite obvious... On Mon, Apr 12, 2010 at 4:33 PM, Richard U richard@gmail.com wrote: I am uploading a csv file.. i require looping

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Dennis Benkert
So, how big are these CSV files? How many lines are you processing and can you tell us how many entries you're inserting to your DB using Propel? It would be best if you could show us the code that implements what you described in your last mail. Investing maybe 30 minutes to write an email that

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Alvaro Videla
Except from the fact that I haven't read your code, what you describe is a problem with PHP versions prior to 5.3 The problem is in the GC of the engine I'm not blaming it on PHP, but you could try that. If you can't upgrade to the new PHP, then I'm sorry, but what you try to do may not work at

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
I thought that was the issue... , the thing is how can i work around it? On Mon, Apr 12, 2010 at 5:38 PM, Alvaro Videla harryjek...@gmail.com wrote: Except from the fact that I haven't read your code, what you describe is a problem with PHP versions prior to 5.3 The problem is in the GC of

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
Dennis thats the function if you want to have a look at it... public function executeIndex(sfWebRequest $request) { ini_set('memory_limit','512M'); set_time_limit(60*5); sfConfig::set('sf_logging_enabled', false);

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
Thanks Dennis, awesome feedback! On Mon, Apr 12, 2010 at 5:53 PM, Richard U richard@gmail.com wrote: Dennis thats the function if you want to have a look at it...        public function executeIndex(sfWebRequest $request) {                ini_set('memory_limit','512M');                

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Dennis Benkert
Ok, just to clarify some things. I do this in my spare time (as most of the people on this mailing list). Having this said you may realize that I cannot (and will not) give you feedback a few minutes after you replied to my mail. If you might take a look at other threads on this mailing list other

[symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Timmipetit
A ran into memory issues today when I had to modify every record in a table after a Doctrine Migration. The problem is that PHP doesn't decrease the reference count of a child/parent object, and therefore doesn't free the memory. The problem is described http://paul-m-jones.com/archives/262 and

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Alan Bem
Hi Richard Model::clearInstancePool() is not only mechanism that tries to solve memory leaks issue in Propel - check this out,http://bugfeatures.com/blog/comments.php?y=09m=08entry=entry090809-055809#entry090809-055809_comment090809-134908 Also, you should take into consideration manually

[symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Tony Piper
Just to chip in with another possible cause: I see you're doing all of this in a controller (and others have talked about whether that's a good idea). Have you got the web debug toolbar enabled? If so, it could be keeping a log of all DB queries executed in your action. I had something similar

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
Ok guys... thanks for your patience with me... Don't know if you guys had a chance to check out the code i pasted but if you didn't i am already doing most of the things stated in the replays... and i really think that this is the a php issue... not symfony/propel issue.. Having said that... i

[symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Tony Piper
Unless you absolutely require the upload to be processed with the user present I would handle loading this data via a background task, so I can split it up into as small chunks as I like/need without annoying the user; What if they want to upload 50,000 records? What happens if their browser dies

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
That sounds ideal, but i think in my situation the user would most likely be waiting at the screen... i guess your design can still be applied in the same way with some ajax displaying to the user the processing as it proceeds... On Mon, Apr 12, 2010 at 11:16 PM, Tony Piper tpi...@tpiper.com

[symfony-users] Re: memory leaks... just keep on leaking

2010-04-11 Thread Christian Schaefer
Hi Slavka, from your tiny description it is not clear whether the leak you experience is a result of Propel or symfony or your usage of them. You should know that symfony 1.2 is no longer supported but replaced by symfony 1.4. The favoured ORM nowadays is Doctrine although Propel is still

[symfony-users] Re: memory leaks... just keep on leaking

2010-04-11 Thread Slavka
Christian have you just started using symfony? if not then i am sure you are aware of the memory leaks i am talking about... Cheers On Apr 12, 3:30 pm, Christian Schaefer cae...@gmail.com wrote: Hi Slavka, from your tiny description it is not clear whether the leak you experience is a result

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-11 Thread Dennis Benkert
Although I am pretty sure you are frustrated there is no reason to show disrespect to other people. Christian's point is that we cannot help you without getting some information about your specific problem. Maybe you can provide some code sample that show us your memory problems. Also