[symfony-users] How to disable some components like swiftmailer (sf1.4), how could I save more cpu resource?
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 -- 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.
Re: [symfony-users] How to disable some components like swiftmailer (sf1.4), how could I save more cpu resource?
See below: On Mon, Jan 4, 2010 at 4:46 PM, chrisyue 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 > . > 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.
Re: [symfony-users] How to disable some components like swiftmailer (sf1.4), how could I save more cpu resource?
On Mon, 4 Jan 2010, chrisyue 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 Im not familiar with php-fpm or using nginx. Unless you're using something like fastcgi, Im guessing that Apache+mod_php will usually outperform using php-cgi. Do you use caching in your app? Yes, you can also disable components you're not using. You probably should read the performance chapter of the definitive guide: http://www.symfony-project.org/book/1_2/18-Performance -- -- 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.
Re: [symfony-users] How to disable some components like swiftmailer (sf1.4), how could I save more cpu resource?
On Mon, Jan 4, 2010 at 5:02 PM, Eno wrote: > On Mon, 4 Jan 2010, chrisyue 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 > > Im not familiar with php-fpm or using nginx. Unless you're using something > like fastcgi, Im guessing that Apache+mod_php will usually outperform > using php-cgi. > Php-fpm is php-fastcgi (but with process control). Nginx + php-fastcgi/php-fpm WILL outperform apache any day. > > Do you use caching in your app? > > Yes, you can also disable components you're not using. You probably should > read the performance chapter of the definitive guide: > > http://www.symfony-project.org/book/1_2/18-Performance > > > > -- > > > > -- > > 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. > > > -- Servs BVBA | http://servs.eu -- 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.