Re: mod_perl for multi-process file processing?

2015-02-02 Thread Cosimo Streppone
Alan Raetz wrote: So I have a perl application that upon startup loads about ten perl hashes (some of them complex) from files. This takes up a few GB of memory and about 5 minutes. It then iterates through some cases and reads from (never writes) these perl hashes. To process all our cases, it

Re: mod_perl and utf8 and CGI->param

2014-09-03 Thread Cosimo Streppone
On 09/03/2014 11:17 AM, André Warnier wrote: > 3) all forms contain a hidden text like > (some known > sequence of "diacritics" characters guaranteed to have a different byte > length between ISO-8859-x and UTF-8 encoding) > [...] > But it's helped me sleep better for quite a while now. This i

Fwd: Re: Bug#666822: Apache 2.4 upload date scheduled for May 30; mod_perl needs work

2013-05-23 Thread Cosimo Streppone
FYI, Original Message Subject: Re: Bug#666822: Apache 2.4 upload date scheduled for May 30; mod_perl needs work Date: Thu, 23 May 2013 15:22:36 +0100 From: Dominic Hargreaves To: 666...@bugs.debian.org, debian-p...@lists.debian.org CC: Arno Töll [Ccing debian-perl to get a sli

Re: Hello, I think TestRunPerl can save me, but I am not sure how to go about it...

2012-03-15 Thread Cosimo Streppone
On Thu, 15 Mar 2012 18:00:24 +0100, David Booth wrote: FYI, I tried doing this with using the Test::MockObject module, but abandoned the effort due to a bug that causes Apache2 child process segmentation fault even when no Test::MockObject functions are called: https://rt.cpan.org/Public/Bug/Di

Re: How do you use mod_perl for your web application?

2011-06-21 Thread Cosimo Streppone
On Thu, 16 Jun 2011 06:01:03 +0200, Fred Moyer wrote: I'm interested in hearing about what application frameworks (Catalyst, CGI::App, Mojolicious) are used here with mod_perl. A bit late to the party. In Opera we have lots of systems running modperl 2, ranging from 1 server to moderately

Re: Measuring response time Apache request

2011-05-24 Thread Cosimo Streppone
On Wed, 25 May 2011 02:20:23 +1000, André Warnier wrote: marco wrote: Il 24/05/2011 17.35, Adam Prime ha scritto: On 11-05-24 11:30 AM, marco wrote: Hi all, I want to get the response time that Apache spends to serve a request (from post-read-request phase to the response phase). Any idea?

Re: Ubuntu and mod_perl

2011-05-17 Thread Cosimo Streppone
On Wed, 18 May 2011 00:05:46 +1000, Tom Kane wrote: I now want to add mod_perl (in the .so form) to apache2. [...] I am still new in the Unix/Linux environment -- at least from the standpoint of installing systems software -- so I am sure I am missing something. Hi Tom, if you don't need

Re: Apache2::SizeLimit and x64_86

2011-05-13 Thread Cosimo Streppone
On Fri, 13 May 2011 19:23:12 +1000, Torsten Förtsch wrote: On Friday, May 13, 2011 10:51:51 Cosimo Streppone wrote: The problem from my pov is that with mp 2.0.4 these tests are completely skipped (t/apache, t/apache2, etc...). I was just trying to fiddle around to understand why that was

Re: Apache2::SizeLimit and x64_86

2011-05-13 Thread Cosimo Streppone
On Fri, 13 May 2011 18:41:43 +1000, Torsten Förtsch wrote: On Friday, May 13, 2011 09:48:56 Fred Moyer wrote: > It looks like it does, because testing w/ mp 2.0.4 I got > (from my earlier message): > > APACHE_TEST_APXS=/usr/bin/apxs2 perl -Iblib/lib > t/response/TestApache2/basic.pm > Can'

Re: Apache2::SizeLimit and x64_86

2011-05-13 Thread Cosimo Streppone
On Fri, 13 May 2011 16:10:02 +1000, Fred Moyer wrote: On Thu, May 12, 2011 at 5:26 PM, Cosimo Streppone wrote: 3) Does Apache2::SizeLimit 0.96 require the newer Apache2::MM that comes with mod_perl 2.0.5 then? If it is needed, we can add it as a prerequisite. We can do a few RC

Re: Apache2::SizeLimit and x64_86

2011-05-13 Thread Cosimo Streppone
On Fri, 13 May 2011 16:08:13 +1000, Fred Moyer wrote: On Thu, May 12, 2011 at 5:22 PM, Cosimo Streppone wrote: On Fri, 13 May 2011 09:15:57 +1000, Fred Moyer wrote: There has not been any feedback on the release candidate from this thread, and as such there is no projected release date

Re: Apache2::SizeLimit and x64_86

2011-05-12 Thread Cosimo Streppone
On Fri, 13 May 2011 10:22:32 +1000, Cosimo Streppone wrote: So, I have a few questions: 1) What is the proper way to test Apache2::SizeLimit in a dev environment and in a production (say Debian) environment? 2) Is there an svn repository that I can use to write a pod/README/INSTALL

Re: Apache2::SizeLimit and x64_86

2011-05-12 Thread Cosimo Streppone
On Fri, 13 May 2011 09:15:57 +1000, Fred Moyer wrote: There has not been any feedback on the release candidate from this thread, and as such there is no projected release date. http://www.gossamer-threads.com/lists/modperl/dev/102778 There seems to be a few users who really want this releas

Re: Issue we are facing with Profinling our Mod Perl App

2011-05-05 Thread Cosimo Streppone
On Thu, 05 May 2011 00:58:58 +1000, Mohammed Shakir wrote: We are using the standard CPAN module, Devel::NYTProf::Apache for profiling our mod_perl App. We have set it up as follows : [...] Then, Apache 'Segfaults' (Segmentation fault). Hi Mohammed, you don't seem to mention your OS or

Re: Apache::DBI and DBD::mysql ping not working

2011-02-24 Thread Cosimo Streppone
On Thu, 24 Feb 2011 03:28:19 +1100, Daniel Manley wrote: I've been digging around in my mod_perl-based apps and trying to figure out why setting up the DB connections for pinging is still randomly producing first-thing-in-the-morning "mysql server has gone away" errors. I read up about

Re: DBI 1.61{1,6} + DBD::mysql 4.01{6,8} = segfault on Ubuntu 10.10 amd64? (reprise)

2011-02-08 Thread Cosimo Streppone
On Tue, Feb 08, 2011 at 10:32:02AM -0500, Perrin Harkins wrote: > > I'm pointing at Class::XSAccessor since it's my only hint. > > Seems to me that DBIx::Class uses Class::XSAccessor through > > Class::Accessor::Grouped. That's the only use of Class::XSAccessor > > I could find in my perl director

DBI 1.61{1,6} + DBD::mysql 4.01{6,8} = segfault on Ubuntu 10.10 amd64? (reprise)

2011-02-07 Thread Cosimo Streppone
Hi all, I'm still trying to track down this weird segfault problem on Apache startup. I had originally targetet dbi-users@ because it initially seemed to be DBI-related. Was trying to get some feedback, "has anyone ever seen this?" type of question. Now I have a stack backtrace, that might narrow

Re: Dollar Self Storage (aka mod_perl children sharing/updating data on a schedule)

2011-01-07 Thread Cosimo Streppone
On Mon, 03 Jan 2011 22:48:53 +0100, Jeff Anderson wrote: I am looking to set up a mod_perl handler which keep track of the count of requests coming in. Each child process will store this data in local memory and after 5-10 minutes have passed, each child process will merge its data into a cen

Re: mod_perl "instability" on Ubuntu 10.04 server platform

2010-10-28 Thread Cosimo Streppone
On Thu, 28 Oct 2010 12:22:05 +0200, Vanja Hrustic wrote: No matter what changes I made to the app, it was still failing. I pretty much ended up returning from the application immediately after invocation, but I would still end up with failed requests. Are the Debian 5 and Ubuntu 10.04 serve

Re: Share Memory Apache2 and ModPerl2

2010-10-02 Thread Cosimo Streppone
On Sat, 02 Oct 2010 04:10:55 -0400, Idel Fuschini wrote: For my project "Apache Mobile FIlter", I'm looking a method to share memory array data between Apache2 processes. I'd look at Cache::FastMmap, though I have never used it yet. http://search.cpan.org/dist/Cache-FastMmap/ -- Cosimo

Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.92 RC1

2010-08-06 Thread Cosimo Streppone
On Wed, Aug 4, 2010 at 8:25 AM, Philip M. Gollucci wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://people.apache.org/~pgollucci/Apache-SizeLimit-0.92-rc1.tar.gz http://people.apache.org/~pgollucci/Apache-SizeLimit-0.92-rc1.tar.gz.md5 http://people.apache.org/~pgollucci/Apache-Siz

Re: Apache2::RequestIO::print: (103) Software caused connection abort at

2010-07-21 Thread Cosimo Streppone
Angel Morales wrote: Greetings, We recently upgraded to mod_perl2 and we started seeing this error: Apache2::RequestIO::print: (103) Software caused connection abort at ... The line has a $r->print(), we've tried everything, including eval() the line but nothing helps. Server Version: Apa

Re: What a strange error...

2010-06-29 Thread Cosimo Streppone
On Tue, 29 Jun 2010 14:37:38 +0200, Tosh Cooey wrote: I have an application with a program called [mailfile.pl] which runs under MP::Registry and is accessed via some mod_rewrites. Today I pushed a new version from my DEV server to the WWW server using rsync. Obviously it was working perf

Re: Sinister variable caching problem with rand()

2010-05-15 Thread Cosimo Streppone
On Sat, 15 May 2010 22:03:50 +0200, Anthony Esposito wrote: In one of my programs I started to receive database errors for not having a unique id. I generate unique ids for each of the mysql lines that I add to the database. I realized that the perl variable $idNum was keeping the same r

Re: non-stop generational modperl config update strategies?

2010-04-21 Thread Cosimo Streppone
On Wed, 21 Apr 2010 17:10:00 +0200, Torsten Förtsch wrote: On Wednesday 21 April 2010 16:59:01 Perrin Harkins wrote: In both cases you have the same drawback: it's impossible to read anything from the shared data without copying the data you read into perl variables. [...] no, MMapDB create

Re: mod_perl in larger scale environments

2010-04-18 Thread Cosimo Streppone
Brad Van Sickle wrote: What are you guys using to cluster the LVS servers? Is that functionality native to LVS? The keepalived daemon provides this. Can be triggered manually (I'm doing this for a master-master mysql setup) or automatically, for our "backend" LVS system. This is achieved b

Re: mod_perl in larger scale environments

2010-04-14 Thread Cosimo Streppone
In data 15 aprile 2010 alle ore 05:11:15, Brad Van Sickle ha scritto: LVS does sound interesting but in your infrastructure layout aren't your single LVS load balancers single points of failure? I simplified a bit too much :) Every LVS machine has a hot-spare, and you can perform manual o

Re: mod_perl in larger scale environments

2010-04-14 Thread Cosimo Streppone
In data 14 aprile 2010 alle ore 22:57:06, Brad Van Sickle ha scritto: My first question relates to quality of service and load balancing: Hi Brad, we're using LVS (http://en.wikipedia.org/wiki/Linux_Virtual_Server), and I find it very useful and reliable. Our infrastructure for the modper

Re: Apache2::SubProcess sucks

2010-02-20 Thread Cosimo Streppone
In data 20 febbraio 2010 alle ore 21:16:22, Torsten Förtsch ha scritto: On Saturday 20 February 2010 19:25:39 Tosh Cooey wrote: I do enjoy the fact that nobody really seems to have a simple definitive vanilla fork/spawn process down pat, it seems everyone does what I do, trying this and that

Re: [RELEASE CANDIDATE] Apache-Test-1.31 RC2

2010-02-09 Thread Cosimo Streppone
On Tue, 09 Feb 2010 22:30:32 +0100, Fred Moyer wrote: Please, download, test, and report back on success or failure for this Apache::Test release candidate. Seems to pass all the tests for me, even if it reports missing modules (?). cos...@ubuntu:~/src/Apache-Test-1.31-rc2$ make test /usr/

Re: SetHandler perl-script not working

2010-01-13 Thread Cosimo Streppone
On Wed, 13 Jan 2010 13:28:03 +0100, Kevin Thorpe wrote: I tried stripping everything out as suggested and ended up with only the basic httpd.conf and perl.conf installed, still no joy. Why is it looking for index.php when I'm assking for a perl script? Config in pastebin. You happen to have

Re: [error] Software caused connection abort at

2009-12-12 Thread Cosimo Streppone
In data 12 dicembre 2009 alle ore 05:38:06, discobeta ha scritto: Dear all, Recently i've been noticing an error on the apache error log that states:[error] Software caused connection abort at [script path] line [line number]. I've seen that happen when I used something like: sub handl

Re: libxslt read file rights problems on debian Lenny under mod perl 2.0

2009-10-28 Thread Cosimo Streppone
ntire application, to see how that works out. Thanks for the idea, 2009/10/28 Cosimo Streppone : Hi everyone, I'm experiencing a rather interesting problem after migrating one of our web applications to debian lenny. We have xml+xslt based web rendering, and we use XML::LibXSLT (currentl

libxslt read file rights problems on debian Lenny under mod perl 2.0

2009-10-28 Thread Cosimo Streppone
Hi everyone, I'm experiencing a rather interesting problem after migrating one of our web applications to debian lenny. We have xml+xslt based web rendering, and we use XML::LibXSLT (currently on Lenny, 0.66), to do this. After migrating to Lenny, XML::LibXSLT refuses to read in and parse any s

Re: adding session id to entries in access log

2009-10-02 Thread Cosimo Streppone
Douglas wrote: I want to add the session id to the access log entries. We just added "%{session_id}C" as an additional field to our CustomLog directive, and that worked fine for us. http://httpd.apache.org/docs/2.0/mod/mod_log_config.html -- Cosimo

Re: Ways to scale a mod_perl site

2009-09-17 Thread Cosimo Streppone
In data 17 september 2009 alle ore 09:43:50, Cosimo Streppone ha scritto: Jeff Peng wrote: How many servers? We have run the systems with about 500 million PV each day, with many squid boxes + 200 apache webservers + 200 mysql hosts. The applications were written with FastCGI. Wow

Re: Ways to scale a mod_perl site

2009-09-17 Thread Cosimo Streppone
Jeff Peng wrote: How many servers? We have run the systems with about 500 million PV each day, with many squid boxes + 200 apache webservers + 200 mysql hosts. The applications were written with FastCGI. Wow! Why don't you tell or blog a bit about this? I would love to know more about what

Re: Apache::Bootstrap 0.07-rc1 available for testing

2009-07-10 Thread Cosimo Streppone
Fred wrote: Do you have only mod_perl2 installed? Getting the detection to work has been tough, but I think this version may be doing the job correctly. Yes, only mp2. -- Cosimo

Re: Apache::Bootstrap 0.07-rc1 available for testing

2009-07-10 Thread Cosimo Streppone
In data 10 juli 2009 alle ore 00:18:57, Fred Moyer ha scritto: I'd love it if you could take this rc for a spin and report back. Passing all tests on OS X 10.5, 5.8.8, 2.2.6 and Centos 5.2, 5.8.9, 2.2.8. Test pass on debian etch. Not sure why it says "minimum version required is 1.31" fo

Re: [RELEASE CANDIDATE] mod_perl-1.31 RC8

2009-05-12 Thread Cosimo Streppone
In data 11 mai 2009 alle ore 03:40:25, Philippe M. Chiasson ha scritto: > The mod_perl 1.31 release candidate 8 is ready. It can be downloaded > here: > > http://www.apache.org/~gozer/mp1/mod_perl-1.31-rc8.tar.gz > > SHA1(mod_perl-1.31-rc8.tar.gz)= 36c0e59a374dbd490da061c6b45b8e11d1f80309 > MD

Re: Profiling live mod_perl backends

2009-03-30 Thread Cosimo Streppone
In data 30 mars 2009 alle ore 13:46:09, Rolf Banting ha scritto: > On Sun, Mar 29, 2009 at 9:52 PM, Perrin Harkins > wrote: > >> On Sun, Mar 29, 2009 at 4:44 PM, Cosimo Streppone >> wrote: >> > The main problem is that in the past we experienced some kind of

Re: Profiling live mod_perl backends

2009-03-29 Thread Cosimo Streppone
Perrin Harkins wrote: On Sun, Mar 29, 2009 at 4:08 PM, Cosimo Streppone wrote: Is profiling mod_perl like this at all possible? Yes. Does that make sense? No. You'll get so much data that you won't be able to make heads or tails of it. And profiling is heavy enough t

Profiling live mod_perl backends

2009-03-29 Thread Cosimo Streppone
Hi, I have no experience in profiling mod_perl. I'd like to use Devel::NYTProf to profile a production mod_perl backend. There's an LVS load balancer in front of the mod_perl backends. So far my idea is: - identify 1 backend that I want to execute profiling on - make sure it's idle (weight=0 in

Re: Checking a webserver

2009-01-28 Thread Cosimo Streppone
In data 28 gennaio 2009 alle ore 11:21:31, André Warnier ha scritto: I am looking for a debugging tool that would be able to repeatedly issue HTTP requests to one or more URLs, and log any errors. Preferably in Perl, and it must run on a Windows workstation. I was going to say siege:

Re: Any success with storing photos in a database? (prevents double-submits)

2008-10-15 Thread Cosimo Streppone
On Wed, Oct 15, 2008 at 12:31 PM, Mark wrote: We had a "double submit" bug that allowed a form to be submitted twice when we weren't fully prepared for that. [...] One approach we are considering is change the submit action on forms with JavaScript, so it disables the submit button That's th

Re: Any success with storing photos in a database?

2008-09-29 Thread Cosimo Streppone
In data 30 settembre 2008 alle ore 00:09:52, James Smith <[EMAIL PROTECTED]> ha scritto: On Mon, 29 Sep 2008, Cosimo Streppone wrote: In data 29 settembre 2008 alle ore 23:45:05, James Smith <[EMAIL PROTECTED]> ha scritto: There are good reasons to store images (especially sm

Re: Any success with storing photos in a database?

2008-09-29 Thread Cosimo Streppone
In data 29 settembre 2008 alle ore 23:45:05, James Smith <[EMAIL PROTECTED]> ha scritto: There are good reasons to store images (especially small ones) in databases (and with careful management of headers in your mod_perl). Some of you have missed inherent problems with the file systems eve

Re: Any success with storing photos in a database?

2008-09-29 Thread Cosimo Streppone
In data 29 settembre 2008 alle ore 21:00:41, Mark Stosberg <[EMAIL PROTECTED]> ha scritto: This question isn't so much a mod_perl question, as it is a question about building high performance websites with Perl. We have a large, busy, database application that relates to millions of photos, w

Re: Load peaks and throttling

2008-07-22 Thread Cosimo Streppone
In data 22 luglio 2008 alle ore 02:53:40, Perrin Harkins <[EMAIL PROTECTED]> ha scritto: On Mon, Jul 21, 2008 at 6:29 PM, Cosimo Streppone <[EMAIL PROTECTED]> wrote: implementing throttling at the backend (maybe front?) level, [...] For the backend, the CPAN modules that

Load peaks and throttling

2008-07-21 Thread Cosimo Streppone
Hi, I'm currently working on a "large" (for some meaning of "large", of course) community web site, using mp2 with mostly handlers and some registry scripts. The architecture is basically composed of: - a few load-balanced frontend apaches - several load-balanced mp2 backends - a replicated m

Re: PDF creation tools

2007-09-06 Thread Cosimo Streppone
Bill Whillers wrote: I'm looking for a fast and simple module for creating simple PDF format documents from mostly text data and possibly some small images (i.e. icons, etc.). Any recommedations? Hi Bill, I think you should take a look at PDF::ReportWriter ( http://search.cpan.org/dist/PDF