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.
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] symfony 1.2 + mssql 2005 + propel + wamp
Hello, When you start a new project, use the 1.4 release. If you're not starting from scratch upgrade to 1.3. Certainly because you're using php 5.3! I have good experiences with Doctrine, more than with Propel. I suggest you look at the documentation for both. If MSSql 2005 is a requirement, I guess a database with data also exist. If this is the case doctrine can generate it's schema based on a database instead of a schema.yml. Both Doctrine and Propel do database abstraction, you won't really notice the difference between Mssql 2005 and MySQL. However the doctrine mysql dbal is a lot better tested than the doctrine mssql dbal. For how to actually start: Just like any other Symfony project. Except in databases.yml put in a suitable dsn. (google for pdo dsn mssql if you really can't find anything). Best regards, Nathan On Mon, Jan 4, 2010 at 2:11 PM, Vikos wrote: > Hi! > > We are start a project that must use mssql 2005 and run on windows > server. > (vindows server 2003, apache2, mssql 2005, symfony 1.2...actual, php > 5.3.1) > > How can I connect to sql server on windows via propel? > Witch do you advise propel or doctrine? > What problems can be? > What experiences are? > > Thanks! > > Viktor > > -- > > 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. > > > -- 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] Re: Netbeans with symfony support: tasks without "sudo"
Hello Javi, Rename your symfony script in the project dir to symfony.real paste this to a new file called symfony #!/bin/bash sudo symfony.real $@ that's about it. Warning this is not tested! This will not work in windows! regards, Nathan On Mon, Dec 28, 2009 at 9:41 PM, tirengarfio wrote: > Thanks! > > On Dec 28, 3:21 pm, Nathan Bijnens wrote: > > > You could maybe create a bash wrapper that calls sudo symfony? And put > this > > in the right path? > > Could you more details ? > > Javi > > > On Dec 28, 3:21 pm, Nathan Bijnens wrote: > > This is a very bad idea...! Never run a program with more permissions > than > > it needs to have. > > > > You could maybe create a bash wrapper that calls sudo symfony? And put > this > > in the right path? > > > > Nathan > > > > On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu > > wrote: > > > > > A stupid ideea: launch your nb using sudo. So, you do not need to exec > your > > > task using sudo :) > > > Anyway, the chown is your friend. > > > > > sent via htc magic > > > > > On Dec 28, 2009 3:52 PM, "mattsister" wrote: > > > > > My question is: > > > Why you have to be super user to deal with your own code? I think you > > > should change the ownership of the project folder and make it > > > yours!!! :) > > > > > On 27 Dic, 19:51, tirengarfio wrote: > Hi, > > > i > > > have installed Netbeans wi... > > > > > -- > > > 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. > > -- > > 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. > > > -- 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] Re: Netbeans with symfony support: tasks without "sudo"
This is a very bad idea...! Never run a program with more permissions than it needs to have. You could maybe create a bash wrapper that calls sudo symfony? And put this in the right path? Nathan On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu wrote: > A stupid ideea: launch your nb using sudo. So, you do not need to exec your > task using sudo :) > Anyway, the chown is your friend. > > sent via htc magic > > On Dec 28, 2009 3:52 PM, "mattsister" wrote: > > My question is: > Why you have to be super user to deal with your own code? I think you > should change the ownership of the project folder and make it > yours!!! :) > > On 27 Dic, 19:51, tirengarfio wrote: > Hi, > > i > have installed Netbeans wi... > > -- > 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. > -- 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.