Re: [Catalyst] Bread crumb

2007-02-08 Thread Gert Burger
Peter Karman wrote: Jason Kohles scribbled on 2/6/07 8:33 AM: It still feels a little kludgy, but this is how I'm doing it currently... [...] fwiw, that is pretty close to how http://search.cpan.org/~tigris/Catalyst-Plugin-Breadcrumbs-5/lib/Catalyst/Plugin/Breadcrumbs.pm does it. I

[Catalyst] memory usage of mod_perl process

2007-02-08 Thread Fayland Lam
hi, all we are using mod_perl to run our Catalyst App with DBIx::Class and Template. but the memory usage of each process seems to be 95 m. it's pretty high! we have more 60+ pms. I want to ask you guys how many memory usage for your Catalyst App? and is FastCGI any better? which one do you

Re: [Catalyst] memory usage of mod_perl process

2007-02-08 Thread Perrin Harkins
On 2/8/07, Fayland Lam [EMAIL PROTECTED] wrote: I want to ask you guys how many memory usage for your Catalyst App? and is FastCGI any better? It's Perl itself taking the memory, so I doubt you'll see much difference, but go ahead and try it. I'd be curious. There is plenty of documentation

Re: [Catalyst] memory usage of mod_perl process

2007-02-08 Thread Nilson Santos Figueiredo Junior
On 2/8/07, Fayland Lam [EMAIL PROTECTED] wrote: but the memory usage of each process seems to be 95 m. it's pretty high! we have more 60+ pms. We've got around 100+ pms and myapp_server.pl uses around 87mb of RAM. Don't really know about usage under mod_perl, I'd need to check it out. -Nilson

Re: [Catalyst] memory usage of mod_perl process

2007-02-08 Thread Bill Moseley
On Thu, Feb 08, 2007 at 11:56:09AM +, Fayland Lam wrote: hi, all we are using mod_perl to run our Catalyst App with DBIx::Class and Template. but the memory usage of each process seems to be 95 m. it's pretty high! we have more 60+ pms. Are pms number of entries in %INC? I have 464

Re: [Catalyst] Bread crumb

2007-02-08 Thread Jason Kohles
On Feb 7, 2007, at 11:30 AM, Peter Karman wrote: Jason Kohles scribbled on 2/6/07 8:33 AM: It still feels a little kludgy, but this is how I'm doing it currently... [...] fwiw, that is pretty close to how http://search.cpan.org/~tigris/Catalyst-Plugin-Breadcrumbs-5/lib/

[Catalyst] Config::General selecting options

2007-02-08 Thread Duncan Ferguson
I have found Config::General and it seems pretty good for what I need. How can I select options, such as -interpolate, for when MyApp.conf is loaded and parsed? Thanks Duncs ___ All new Yahoo! Mail

[Catalyst] overriding the match method for custom actions

2007-02-08 Thread John Napiorkowski
Hi, Does anyone know the correct way to override the match method of an Action? The docs give a great example for overriding the execute method, and there are some CPAN examples showing how to override dispatch, but I can't seem to find one for match. From looking at the source code I gather

Re: [Catalyst] memory usage of mod_perl process

2007-02-08 Thread Fernan Aguero
+[ Nilson Santos Figueiredo Junior [EMAIL PROTECTED] (08.Feb.2007 11:37): | | On 2/8/07, Fayland Lam [EMAIL PROTECTED] wrote: | but the memory usage of each process seems to be 95 m. it's pretty high! | we have more 60+ pms. | | We've got around 100+ pms and myapp_server.pl uses around 87mb

Re: [Catalyst] memory usage of mod_perl process

2007-02-08 Thread Fernan Aguero
+[ Bill Moseley [EMAIL PROTECTED] (08.Feb.2007 12:16): | | On Thu, Feb 08, 2007 at 11:56:09AM +, Fayland Lam wrote: | hi, all | | we are using mod_perl to run our Catalyst App with DBIx::Class and Template. | | but the memory usage of each process seems to be 95 m. it's pretty high!

Re: [Catalyst] overriding the match method for custom actions

2007-02-08 Thread John Napiorkowski
--- John Napiorkowski [EMAIL PROTECTED] wrote: Hi, Does anyone know the correct way to override the match method of an Action? The docs give a great example for overriding the execute method, and there are some CPAN examples showing how to override dispatch, but I can't seem to find

[Catalyst] Re: memory usage of mod_perl process

2007-02-08 Thread Jeffrey Ng
I am the coworker of Fayland who posted the topic memory usage of mod_perl process. Our company has invested quite some time on migrating our perl code to catalyst (more than half year of time by 7 programmers). However, I am starting to worry that moving to catalyst is causing too much overhead

[Catalyst] MyAction for locally namespaced ActionClasses?

2007-02-08 Thread John Napiorkowski
Hi, The manual file for Actions at http://search.cpan.org/~jrockway/Catalyst-Manual-5.700501/lib/Catalyst/Manual/Actions.pod mentions that when you are adding Action classes to an action, you can use MyAction instead of ActionClass if the Action class is in the local namespace. I can't seem to

Re: [Catalyst] Re: memory usage of mod_perl process

2007-02-08 Thread Perrin Harkins
On 2/8/07, Jeffrey Ng [EMAIL PROTECTED] wrote: I have read practical mod_perl. I tried to preload many of our modules in startup.pl. But the shared memory value doesnt change at all. Also, doesnt 5.7M shared memory usage sound too small comparing to the 92.6M total size? You're not looking at

Re: [Catalyst] Re: memory usage of mod_perl process

2007-02-08 Thread Brian Kirkbride
Jeffrey Ng wrote: I am the coworker of Fayland who posted the topic memory usage of mod_perl process. Our company has invested quite some time on migrating our perl code to catalyst (more than half year of time by 7 programmers). However, I am starting to worry that moving to catalyst is

Re: [Catalyst] Re: memory usage of mod_perl process

2007-02-08 Thread Jeffrey Ng
On 2/9/07, Perrin Harkins [EMAIL PROTECTED] wrote: On 2/8/07, Jeffrey Ng [EMAIL PROTECTED] wrote: I have read practical mod_perl. I tried to preload many of our modules in startup.pl. But the shared memory value doesnt change at all. Also, doesnt 5.7M shared memory usage sound too small

Re: [Catalyst] MyAction for locally namespaced ActionClasses?

2007-02-08 Thread Jason Kohles
On Feb 8, 2007, at 1:58 PM, John Napiorkowski wrote: Hi, The manual file for Actions at http://search.cpan.org/~jrockway/Catalyst-Manual-5.700501/lib/ Catalyst/Manual/Actions.pod mentions that when you are adding Action classes to an action, you can use MyAction instead of ActionClass if the

Re: [Catalyst] MyAction for locally namespaced ActionClasses?

2007-02-08 Thread John Napiorkowski
--- Jason Kohles [EMAIL PROTECTED] wrote: On Feb 8, 2007, at 1:58 PM, John Napiorkowski wrote: Hi, The manual file for Actions at http://search.cpan.org/~jrockway/Catalyst-Manual-5.700501/lib/ Catalyst/Manual/Actions.pod mentions that when you are adding Action classes to an

Re: [Catalyst] Re: memory usage of mod_perl process

2007-02-08 Thread Oliver Gorwits
Jeffrey Ng wrote: I am the coworker of Fayland who posted the topic memory usage of mod_perl process. Our company has invested quite some time on migrating our perl code to catalyst (more than half year of time by 7 programmers). However, I am starting to worry that moving to catalyst is

[Catalyst] HTTP redirect - delayed Firefox

2007-02-08 Thread Svilen Ivanov
Hi, I'm experiencing very odd issues when I'm trying to make HTTP redirect with '$c-res-redirect'. I use the development server with option -k - keep alive. If I make HTTP redirect, Firefox 2.0.0.1 waits exactly 5 seconds before it loads the new location. If I disable the keep alive the

Re: [Catalyst] HTTP redirect - delayed Firefox

2007-02-08 Thread John Napiorkowski
--- Svilen Ivanov [EMAIL PROTECTED] wrote: Hi, I'm experiencing very odd issues when I'm trying to make HTTP redirect with '$c-res-redirect'. I use the development server with option -k - keep alive. If I make HTTP redirect, Firefox 2.0.0.1 waits exactly 5 seconds before it loads

Re: [Catalyst] HTTP redirect - delayed Firefox

2007-02-08 Thread Andy Grundman
On Feb 8, 2007, at 4:59 PM, Svilen Ivanov wrote: 2007/2/8, John Napiorkowski [EMAIL PROTECTED]: [...] I believe that when redirecting as a result of a post that 303 is supposed to be correct, whereas 302 is used for redirects when the information is merely at a different location. But I'm

Re: [Catalyst] HTTP redirect - delayed Firefox

2007-02-08 Thread John Napiorkowski
--- Svilen Ivanov [EMAIL PROTECTED] wrote: 2007/2/8, John Napiorkowski [EMAIL PROTECTED]: [...] I believe that when redirecting as a result of a post that 303 is supposed to be correct, whereas 302 is used for redirects when the information is merely at a different location. But

Re: [Catalyst] HTTP redirect - delayed Firefox

2007-02-08 Thread Svilen Ivanov
2007/2/8, John Napiorkowski [EMAIL PROTECTED]: [...] I believe that when redirecting as a result of a post that 303 is supposed to be correct, whereas 302 is used for redirects when the information is merely at a different location. But I'm not an expert. So 303 is probably what most of us

Re: [Catalyst] HTTP redirect - delayed Firefox

2007-02-08 Thread Svilen Ivanov
Andy, John -- thank you for your replies. If it doesn't appear in real-life deployment - I'm fine with it 2007/2/9, John Napiorkowski [EMAIL PROTECTED]: --- Svilen Ivanov [EMAIL PROTECTED] wrote: 2007/2/8, John Napiorkowski [EMAIL PROTECTED]: [...] I believe that when redirecting as a

Re: [Catalyst] Re: memory usage of mod_perl process

2007-02-08 Thread Perrin Harkins
On 2/8/07, Jeffrey Ng [EMAIL PROTECTED] wrote: when i run this free test, should i run it on the live server, or on a test server with single process apache mode? I wouldn't mess with things on your live server, but you want to run in normal mode, not single-process. here's the result on a

[Catalyst] Re: memory usage of mod_perl process

2007-02-08 Thread Peter Edwards
There are a lot of good tuning tips in the Apache docs, as Perrin says. I presume you've tried things like using a lightweight front end proxy (to serve images/static files) and building a custom backend mod_perl Apache that includes *only* the modules you need. If you use the stock Fedora/Redhat

Re: [Catalyst] Re: memory usage of mod_perl process

2007-02-08 Thread Bill Moseley
On Thu, Feb 08, 2007 at 10:37:24PM -, Peter Edwards wrote: For comparison, I'm using DBIx::Class across 15 tables and a really simple hand-rolled MVC (not Cat) for a medium volume site. It gives 'top' lines like: PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 21495

Re: [Catalyst] Debugging Catalyst with Komodo

2007-02-08 Thread Dan Dascalescu
I don't know the proper solution to this, but I know a workaround : you can put the statement $DB::single = 1; somewhere in your code. This will force a breakpoint if running in -d mode (cf Lperldebug). And then, since your modules are now loaded, you can add all your other breakpoints as