On Apr 14, 2009, at 7:25 AM, Neo [GC] wrote:

Hi,

I've read about the prefork-engine for the test-server in another thread, which could be very useful for me (our outsourced codemonkeys sometimes produce VERY SLOW controllers and together with multiple ajax-request, this means waiting ;)).

About usage I found only this:

$ cpan Catalyst:Engine::HTTP::Prefork
$ CATALYST_ENGINE='HTTP::Prefork' script/myapp_server.pl

Amazingly, this doesn't change anything at all with my app, after starting there are still only two processes (some kind of supervisor I think and the real server process) and the requests are served one- by-one. Even more confusing, if I set CATALYST_ENGINE to 'Whatever', I get no error message or something.

Is there required more to use it, besides installing the module from CPAN?

That should be it. Set the env var CATALYST_PREFORK_DEBUG=1 to verify it's working. You should see a lot of output, i.e.:

2009/04/14-07:32:28 Catalyst::Engine::HTTP::Prefork (type Net::Server::PreFork) starting! pid(65538)
Binding to TCP port 3000 on host *
Group Not Defined.  Defaulting to EGID '501 80 79 81 98 501'
User Not Defined.  Defaulting to EUID '501'
Setting up serialization via flock
You can connect to your server at http://localhost:3000
Beginning prefork (5 processes)
Starting "5" children
Child Preforked (65542)
Child Preforked (65543)
Child Preforked (65544)
Child Preforked (65545)
Parent ready for children.
Child Preforked (65546)



_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to