mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2832: Performance issues with APCu #3537
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Dec 2, 2013).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user mnapoli:
We have stumbled across a very weird performance issue lately. It's kind of hard to explain, and I struggle to understand, but maybe it will ring a bell to someone.
Here is our cache configuration:
In *test* & prod environment, we observe the performance issue. In dev environment, no performance issue.
Furthermore, if I comment out just setMetadataCacheImpl, then no performance issue in test & prod.
Now we have New Relic, so we have a bit of profiling, and here is what it shows:
(the stack trace is the one provided by New Relic, maybe their tool shows an incomplete stack trace? However judging by the content of the method and the numbers of rows, it seems correct)
As you can see, the numbers don't add up at all! A dozen of sub-calls takin 50ms each doesn't add up to a 80 seconds method call.
Keep in mind that when I disable the MetadataCache, then 80s turns into 300ms and everything works as expected. That's a lot of difference.
So this is very weird.
Few more information:
We are going to try to replace APCu with Memcached and see if it improves things :/ I have no idea if the problem is related to Doctrine or APCu.
Any idea?
@doctrinebot commented on GitHub (Dec 2, 2013):
Comment created by mnapoli:
FYI: switching from APCu to Memcached solved the problem. So the problem really is with APCu.
Now is that a problem in Doctrine or APCu?
@doctrinebot commented on GitHub (Dec 13, 2013):
Comment created by @beberlei:
Cannot really be our issue. The APCu driver is really simple and not doing magic.
@doctrinebot commented on GitHub (Dec 13, 2013):
Issue was closed with resolution "Invalid"