Re: [Catalyst] stress testing catalyst apps
On 22 March 2010 21:26, Fernan Aguero fernan.agu...@gmail.com wrote: Hi, we have an app working under apache/mod_perl (and behind a reverse proxy) that we would like to optimize. We're currently evaluating performance, checking memory usage, etc. For this we thought about using some stress testing package that would be flexible in allowing us to specify a number of specific actions (in the form of URIs) corresponding to a standard user session. Any software you'd recommend for this task? Something from CPAN? Ideally we'd like something that would also provide us with some report on what happened ... By no means exhaustive, but both of these will allow you to do that: http://jakarta.apache.org/jmeter/ http://www.hpl.hp.com/research/linux/httperf/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
On 28 January 2010 09:44, Tomas Doran bobtf...@bobtfish.net wrote: On 28 Jan 2010, at 08:33, fREW Schmidt wrote: I'm afraid this might be a win32 issue :-/ Anyway, does anyone have any input on this? I'd really like to get this working. Google suggests that use mod_fastcgi is the correct fix :) I'd second that, I've tried both mod_fastcgi and mod_fcgid pretty exhaustively on various versions of Apache on Win32 and only ever managed to get the former working. Not to say that mod_fcgid won't work of course, but mod_fastcgi is certainly the path of least resistance ;) ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] RESTful client
2009/12/2 Sungsam Gong gong.sung...@gmail.com: Hello, Can anybody suggest a client for REST webservices? I found Catalyst::Mode::WebService, but want to know others more. How do you guys implement your client? Haven't used it personally, but there is a REST::Client module: http://search.cpan.org/~mcrawfor/REST-Client-118/lib/REST/Client.pm Or from within Firefox you could use this: https://addons.mozilla.org/en-US/firefox/addon/9780 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst on Windows with FastCGI
2009/10/6 Renee Bäcker mailinglis...@renee-baecker.de: Hi, I want to run my Catalyst app on Windows with FastCGI. I followed the instructions at http://dev.catalystframework.org/wiki/deployment/apache_fastcgi_win32 But when I try to run the app, I get these errors: First, have you tried running the code in question without FastCGI (e.g. from the command line) to eliminate obvious things like missing modules and syntax errors? Those can present symptoms similar to those you mention, with FastCGI masking the real error. Also double check the version of mod_fastcgi you are using. Make absolutely sure you are using the most recent snapshot version of mod_fastcgi. Older versions do not work well, if at all, with Apache on Win32. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Problem flattening arrays in Catalyst/Helper/Model/DBIC/Schema
2009/8/26 clive glew clive.proje...@gmail.com: so it appears that autobox causes problems. any ideas on how to fix it? Unrelated to Catalyst (but perhaps relevant to this problem), I've also seen issues with autobox on ActivePerl 5.8.8 build 822 - namely that it doesn't work at all, not even the minimal examples in the synopis, even though autobox and autobox::Core were sourced from the AS ppm repository. No problems on ActivePerl 5.10, perhaps someone at AS botched the creation of the 5.8 package? ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Recommended OS for Catalyst?
2009/8/6 Tomas Doran bobtf...@bobtfish.net: On 6 Aug 2009, at 11:50, Octavian Rasnita wrote: Hi, Can you recommend a Linux distribution for production for Catalyst apps? ...and a version of Perl? If this is likely to be a problem for you / you're not willing to put the effort into testing your app in sync with distro upgrades, then building your own perl would be recommended. Out of curiosity, is there a recommended way to compile perl specifically for use with Catalyst? ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Re: Incorrect $c-req-base using Catalyst::Engine::SCGI on Win32
2009/6/28 Orlando Vazquez ovazq...@gmail.com: Ok, just to make sure I understand the root cause of this problem: apache...@win32 sets SCRIPT_NAME to /action (or whatever PATH_INFO is), when it should really be something like , / or undef, is this correct? I assume this only happens when the application is mounted under /, and it does do the right this when mounted under say, something like /myapp? That's correct, the problem only happens when mounted at / - things behave as expected when mounted elsewhere. I'm the one who was responsible for removing the prepare_path method from the SCGI engine. I did this because it was overriding with an outdated verbatim copy of the prepare_path method in C::E::CGI, which ::SCGI inherits from. Hmmm, ::FastCGI seems to include its own additional path fixes :\ Does it make sense to unify these tweaks in one place? Almost certainly, although if you are in agreement I'd settle for getting it working within C::E::SCGI in the first instance and worrying about that later when I have some more time ;) Do you know if this problem manifests itself under the same webserver but different Catalyst engine? Without having tested extensively, I think it's SCGI specific - I don't see the problem with the CGI engine, at least. I appreciate the suggested fix but I don't think it's quite safe, as it would break something like /tags/tags where your app is mounted under /tags and you're calling the /tags action (you know, for whatever reason). But at the end of the day we have to get this to work well for you, so I'm not thrilled about but also not opposed to escaping this behaviour for this particular webserver since I know there's a few different servers that get it wrong. Could you check out how C::E::FastCGI::_fix_env for how to escape this for your particular webserver platform + version, and patch/commit a unittest+fix? I don't have a windows machine handy to test this appropriately, but you could probably fix this in a couple of minutes. Good point, I'd not thought of the /tags/tags scenario. Having played around with this a little more it looks as though when things are working properly, REQUEST_URI is the same as SCRIPT_NAME concatenated with PATH_INFO. With that in mind, perhaps revising the suggested fix to something like this: sub prepare_path { # or _fix_env? my( $self, $c ) = @_; my $env = $self-env; my $path_info = $env-{PATH_INFO} || ''; my $script_name = $env-{SCRIPT_NAME} || ''; my $request_uri = $env-{REQUEST_URI} || ''; unless( $request_uri eq $script_name . $path_info ) { delete $env-{SCRIPT_NAME}; } return $self-next::method( $c ); } To be absolutely safe we could limit it to just this OS/web server as you suggest: if( $^O eq 'MSWin32' $env-{SERVER_SOFTWARE} =~ m{^Apache/2\.0\.63} ) { ... } Let me know your thoughts on the above and I'll get to work on it. P.S. I got your doc bug report - it's been fixed and pushed up to the Catalyst git repo :) Thanks :) ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Catalyst::Engine::SCGI
I've found a few references to Catalyst::Engine::SCGI from 2007, but it seems to have disappeared at some stage. Can anyone shed any light on what happened to it - has it just been abandoned, or superseded by something else? ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Test::WWW:Mechanize::Catalyst
2009/1/26 kirk beers kgb...@gmail.com: Hi folks, I am fairly new to Catalyst and Perl (conformed Java programmer), I was wondering if anyone could help me with and issue with WWW::Mechanize::Catalyst::Test specifically : $mech-content_contains($str,[,$desc]); I have added a wrapper.tt and set it in my view/HTML.pm. This wrapper contains access to my common files .css and images with the following tag [% content %]. Next I have a message.tt which is accessed from my controller subroutines by: $c-stash-{message} = 'Something went wrong!'; $c-stash-{template} = 'message.tt'; When I use the $mech-content_contains('There was missing info or the passwords did not match!','Test for missing username to add user'); I get the following error stating it can't find the message text. not ok 12 - Test for missing username to add user # Failed test 'Test for missing username to add user' # at t/controller_Admin-User.t line 25. # searched: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Stric... # can't find: There was missing info or the passwords did not ma... 1..12 # Looks like you failed 1 test of 12. That means the string you are searching for isn't present in the response body. I suspect you're either getting something different back than you expected (e.g. an error page) or the string you have supplied in the test doesn't match exactly with the error you're generating in the HTML (e.g. a typo). Dumping out the results of $mech-content to see what exactly output you produced should pinpoint the problem. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] 'Couldn't render template file error - foo/bar: not found'
2009/1/5 Jens Schwarz blacky6...@gmx.de: package myapp::Controller::Foo; ... use parent qw/Catalyst::Controller::FormBuilder Catalyst::Controller/; Not sure if this is causing your problem, but Catalyst::Controller::FormBuilder inherits from Catalyst::Controller, so your subclass doesn't need to. use parent qw/Catalyst::Controller::FormBuilder/; ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] How to register a stored procedure with the model?
2008/9/25 Kai Andresen [EMAIL PROTECTED]: Hi all, I need to call an Oracle stored procedure, and a function, where can I find som reference material on that? http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/Manual/Cookbook.pod#Using_database_functions_or_stored_procedures ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Variable Catalyst seems to be undefined.
2008/5/9 Kieren Diment [EMAIL PROTECTED]: On 10 May 2008, at 00:01, Chris Devine wrote: TIA for any insight. I am new to Catalyst, using ver. 5.7012. I am working through JR's examples as well trying to modify them. I found a strange problem (to me) that I couldn't find any solution for by searching. Loosely based on Addressbook, it seems that the variable Catalyst in index.tt2 is not defined. I first noticed this by Catalyst.uri_for('/login') returning ''. Does anyone have any pointers on debugging this? And if in doubt, just use some warn statements or $c-log-debug calls in your view class, along with Data::Dumper, to see what is being passed to the template. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/