See below:

On Mon, Jan 4, 2010 at 4:46 PM, chrisyue <blizzch...@gmail.com> wrote:

> When I finished the jobeet tutorial, I found the application load some
> files which shouldn't be loaded as I never used them at all (swifter
> mailer for example, 11 files of it were loaded each request)
>
> the same situation has happened in my prod server, there has been more
> than 100+ files to be loaded and parsed, even the action cache had
> already exists. It make my server slow and cpu has been crazily
> consumed(nearly 90% each cpu, total 4 cpus) by php-cgi(with
> eaccelerator), even there were only 20 requests per sec.
>
> I don't know what's the purpose of loading those component even I
> didn't mention them in my script, some one tell me why? if I am sure
> some components I won't use, how can i completely disable them?
>
> And if you guys know some way to save cpu resource, please please tell
> me.. i use cent-os + php-fpm + nginx + eaccelerator + memcache
>
Is the cpu the bottleneck? In most cases it's ram. If you don't have a lot
of ram, don't start a lot of php-fpm, it will only make it slower...
 I use most of the times apc. Be sure to enlarge the ram of your
eaccelerator and memcache.

Use the sfSupercache. It will sure speedup your pages. If you have pages
that don't update every second you can generate static files, then it's just
Nginx.


>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>
Best regards,
  Nathan

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to