|issue with Symfony 2.0 & Doctrine [message #101874]
||Thu, 01 July 2010 16:33
Registered: July 2010
I host an application using Symfony 2.0.
During tress tests I see Error 500 on Apache side and error "Class not found" from the PHP logs.
After many hours of researches, tests (differents PHP options, with and without APC, etc ...) I'm convinced that error comes from the code and espacially from doctrine.
When a page is requested, a .php file is generated in the /lib/model/doctrine/generated/. This file contains the code of a class define in /lib/model/doctrine/base. On every request, the file was recreated (in /lib/model/doctrine/generated/).
Is this normal ? Is this the normal behavior in synfony 2.0 ?
Under a certain load, because of the comportement described above (writing of the file on each request ...), some calls appear when the file doesn't exist, causing errors. It's like an "applicative race condition"
Is this normal behavior ?
Thank you in advance