The OP did say that the problem seemed intermittent. If it was a problem
with Propel or symfony then it would be consistent unless the OP is
constantly editing Propel or symfony code between runs.

Could it be that being on a shared host that the memory usage settings are
related to other users as well? THis would explain the randomness of the
results as you cannot control what memory other users might be consuming.

If this -is- the case, then you need to seriously consider changing hosts as
this is not a good problem to be having and there are plenty of others out
there. Hell if your so inclined even look at services like linode.com where
you can setup your own server very cheaply

On Thu, Jun 11, 2009 at 8:54 AM, pghoratiu <[email protected]> wrote:

>
> Hi!
>
> I had some problems also with php memory collection, the main problem
> was with circular reference used in propel when dealing objects.
>
> 1. Circular reference - having two related objects A, B the following
> will generate a memory leak becase A is referencing object B and B is
> referencing object A at the same time:
> A->add(B);
> A->save();
>
> but if you save each object one by one without trying to save them at
> once it should work fine:
> A->save()
> B->setWhateverId(A->getId())
> B->save()
>
> When you have a php script running on the server web server it's not a
> big problem because the process completes quickly and all alocated
> memory is released, problems are usually with CLI and long running
> processes.
>
> 2. Another thing to watch out if you manipulate large number of
> objects within a function, the objects are released only after the
> function completes. This depends on the given situation, i did not
> encounter problems with this myself.
>
>    gabriel
>
> On Jun 10, 9:25 pm, Nickolas Daskalou <[email protected]> wrote:
> > Could be due to PHP's garbage collection not working properly on some
> types
> > of objects. I remember reading about it a while ago, not sure if there is
> a
> > fix for it yet.
>
> >
>


-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to