Symfony memory issues

一世执手 提交于 2019-12-20 06:14:18

问题


I'm having hard time with symfony and cpu/memory leak, i'm new to symfony i don't know if i'm messing any tips or techniques to overcome this problem.

i'm hosting my current symfony project on a vps and it halts almost every other hour.

I would like also to know the answers for these questions :

when i execute a doctrine query using (fetchOne, fetchAll, execute) i get a lot of extra symfony stuff like table name and structure ... is there any way to get just the data ?

what should i do to optimize my symfony app

Thanks


回答1:


Your problem looks very abstract. It's very hard to help you without more info. Anyway, I think you should take a look to this question and search about Doctrine hydration options: What is Doctrine hydration?.

Remember to use the symfony debug web bar.



来源:https://stackoverflow.com/questions/11144597/symfony-memory-issues

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!