Re: Tool to create multiple requests

2012-02-07 Thread André Warnier
Tobias Wagener wrote: Hello, I'm currently developing a huge application with mod_perl, unixODBC and MaxDB/SAPDB. On my developing system everything is fine. But on the productive system with 50 users, I have database connection errors and request aborts and so on. Now I want to ask if

Re: Tool to create multiple requests

2012-02-07 Thread gAzZaLi
It's rudimentary but you can try Apache ab, the Apache benchmarking tool. You probably have it installed already. Try 'man ab' at the prompt. If you want to emulate 50 concurrent requests, sent twice, you'd do something like: ab -c 50 -n 100 http://example.com/etc?etc If you don't have it

mod perl installed but not running

2012-02-07 Thread mike cardeiro
I asked this a few weeks ago.  Is it possible that mod_perl is running but the $ENV{MOD_PERL} variable doesn't exist?   it seems like it is running (the site is zippier) and when I restart apache the log file has the following line. Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5

Re: mod perl installed but not running

2012-02-07 Thread André Warnier
mike cardeiro wrote: From: Dave Hodgkinson daveh...@gmail.com What's MaxRequestsPerChild? MaxRequestsPerChild 1 ...I think I may have figured out the problem. I think mod perl is running but my scripts are not using it. I added Directory /home/secret34/public_html/cgi-bin

Re: mod perl installed but not running

2012-02-07 Thread mike cardeiro
From: André Warnier a...@ice-sa.com You should probably analyse your requirements carefully (as to exactly /why/ you want the script to run as that user).  I am creating a file transfer site.  When a user logs in they can upload a file, so I need the script to write the file to a

Re: mod perl installed but not running

2012-02-07 Thread Dave Hodgkinson
On 7 Feb 2012, at 16:08, mike cardeiro wrote: From: André Warnier a...@ice-sa.com You should probably analyse your requirements carefully (as to exactly /why/ you want the script to run as that user). I am creating a file transfer site. When a user logs in they can upload a

Re: mod perl installed but not running

2012-02-07 Thread André Warnier
mike cardeiro wrote: From: André Warnier a...@ice-sa.com You should probably analyse your requirements carefully (as to exactly /why/ you want the script to run as that user). I am creating a file transfer site. When a user logs in they can upload a file, so I need the script to

Re: mod perl installed but not running

2012-02-07 Thread André Warnier
mike cardeiro wrote: From: André Warnier a...@ice-sa.com Now, as long as we're there, what happens in your application if two people upload a file with the same file name ? When the upload happens the script makes an entry in a mysql table with the file name, mime type and other info;

Re: mod perl installed but not running

2012-02-07 Thread mike cardeiro
From: André Warnier a...@ice-sa.com   Very good. And by the same mechanism, you are already avoiding the problem with all the silly (and sometimes dangerous) names that people can give to their files. that is precisely why I did it this way. So if your files in the filesystem only

Re: mod perl installed but not running

2012-02-07 Thread André Warnier
mike cardeiro wrote: From: André Warnier a...@ice-sa.com Very good. And by the same mechanism, you are already avoiding the problem with all the silly (and sometimes dangerous) names that people can give to their files. that is precisely why I did it this way. You would be surprised

Re: mod perl installed but not running

2012-02-07 Thread André Warnier
mike cardeiro wrote: From: André Warnier a...@ice-sa.com To: mod_perl list modperl@perl.apache.org Now another question : apart from cgi-bin scripts which run much faster under mod_perl, have you already tried writing mod_perl-based Apache modules ? (because that's where the really

Re: mod perl installed but not running

2012-02-07 Thread mike cardeiro
- Original Message - From: André Warnier a...@ice-sa.com And it doesn't ? The startup message of your Apache seemed to say that it does.. Yes, it now is running and I am on my way!

Re: mod perl installed but not running

2012-02-07 Thread André Warnier
mike cardeiro wrote: - Original Message - From: André Warnier a...@ice-sa.com And it doesn't ? The startup message of your Apache seemed to say that it does.. Yes, it now is running and I am on my way! Good, then.. about your wish to limit the size of the files someone can

Re: mod perl installed but not running

2012-02-07 Thread Perrin Harkins
On Tue, Feb 7, 2012 at 7:26 PM, André Warnier a...@ice-sa.com wrote: You can also look at $CGI::POST_MAX in the same documentation. See also LimitRequestBody: http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody - Perrin

svn commit: r1241394 - in /perl/modperl/branches/threading: ./ lib/Apache2/ lib/ModPerl/ src/modules/perl/ t/response/TestDirective/

2012-02-07 Thread torsten
Author: torsten Date: Tue Feb 7 09:41:53 2012 New Revision: 1241394 URL: http://svn.apache.org/viewvc?rev=1241394view=rev Log: Merged revisions 1125476,1125479,1145161,1213838,1213841,1213902,1221285,1221359,1222775 via svnmerge from https://svn.eu.apache.org/repos/asf/perl/modperl/trunk

svn commit: r1241560 - in /perl/modperl/branches/threading: ./ src/modules/perl/modperl_module.c

2012-02-07 Thread torsten
Author: torsten Date: Tue Feb 7 19:23:08 2012 New Revision: 1241560 URL: http://svn.apache.org/viewvc?rev=1241560view=rev Log: Merged revisions 1241435 via svnmerge from https://svn.eu.apache.org/repos/asf/perl/modperl/trunk r1241435 | torsten | 2012-02-07 13:00:45 +0100 (Tue, 07

svn commit: r1241583 - in /perl/modperl/branches/threading: Changes src/modules/perl/modperl_interp.c

2012-02-07 Thread torsten
Author: torsten Date: Tue Feb 7 19:50:47 2012 New Revision: 1241583 URL: http://svn.apache.org/viewvc?rev=1241583view=rev Log: modperl_interp_pool_select() when used to create or merge dir-configs at runtime may pull the interpreter from the wrong pool if the request's server is a vhost with a