symfony - symfony2 free -m out of memory -
i have symfony2 app out there. have ram memory problems... works charm when there 50 active people (google analytics).
i select data db usally this:
$qb=$this->createquerybuilder('s') ->addselect('u') ->where('s.user = :user') ->andwhere('s.admin_status = false') ->andwhere('s.typ_statusu != :group') ->setparameter('user', $user) ->setparameter('group', 'group') ->innerjoin('s.user', 'u') ->orderby('s.time', 'desc') ->setmaxresults(15); return $query=$qb->getquery()->getresult();
the queries fast dont have problem them.
let me please know need , paste here. need fix much..
but problem come now: when there 470people @ same time.. (google analytics) there 7gb of memory away... fall down after peak 5gb. why much??? scripts take 10-17mb of memory usage in app_dev.
i use apc. how can solve situation? why there memory consumed? thx advice!!
whats average memory?
btw: when not solve in big troubles.
one problem doctrine , if hydrating obejcts in every single request.
Comments
Post a Comment