Symfony 内存问题 [英] Symfony memory issues
问题描述
我在 symfony 和 cpu/内存泄漏方面遇到了困难,我是 symfony 的新手,我不知道我是否在搞乱任何克服这个问题的技巧或技术.
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.
我在 vps 上托管我当前的 symfony 项目,它几乎每隔一小时就会停止.
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 :
当我使用 (fetchOne, fetchAll, execute) 执行学说查询时,我得到了很多额外的 symfony 内容,例如表名和结构......有没有办法只获取数据?
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 ?
我应该怎么做才能优化我的 symfony 应用程序
what should i do to optimize my symfony app
谢谢
推荐答案
你的问题看起来很抽象.如果没有更多信息,很难为您提供帮助.无论如何,我认为您应该看看这个问题并搜索有关 Doctrine 水合选项的信息:什么是 Doctrine hydration?.
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?.
记得使用 symfony 调试网页栏.
Remember to use the symfony debug web bar.
这篇关于Symfony 内存问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!