How big are your httpd's?
Hi everyone, I would like to ask you how big your mod_perl enabled (v1) httpd's grow. I'm using a homegrown publication system based on Template Toolkit that delivers about 2000 Perl pages daily. After the first page load, the daemons consume around 7 MB of RAM each, but after 24 hours they've grown to something around 12 MB, with a record-holder of 16 MB. To me this seems like quite a lot, but I would like to get some numbers from other people as to what's normal. Thanks in advance, Axel Andersson
[mp2] Building with Perl 5.6.1 dies
Hi, sorry if this has already been discussed, just point me to archives then. I'm building a last night CVS checkout of mod_perl 2 against a last night CVS checkout of apache 2 and Per 5.6.1. Here's what happens: morris@melchior:/usr/src/modperl-2.0> perl Makefile.PL MP_APXS=/home/httpd2/bin/apxs Reading Makefile.PL args from @ARGV MP_APXS = /home/httpd2/bin/apxs Configuring Apache/2.0.37-dev mod_perl/1.99_02-dev Perl/v5.6.1 [snip: writing a lot of makesfiles, all seems well] morris@melchior:/usr/src/modperl-2.0> make cd "src/modules/perl" && make make: don't know how to make /usr/libdata/perl5/i386-openbsd/5.6.1/CORE/libperl.so.6.1. Stop in /usr/src/modperl-2.0/src/modules/perl. *** Error code 2 Dies at the first make command... Error in the makefile? Perl too old? I have no idea, clue me in. Thanks in advance, Axel Andersson
Cookies and redirects
Hello, I'm having trouble with both setting a cookie and redirecting the user to another page at the same time. It would appear the cookie is only sent when a normal header is sent by server. If I do the following (having baked the cookie first), where $r is the Apache->request() object: $r->content_type("text/html; charset=iso-8859-1"); $r->send_http_header(); I get this header: Connection: close Date: Tue, 12 Mar 2002 10:39:05 GMT Server: Apache/1.3.23 (Unix) mod_perl/1.26 Content-Type: text/html; charset=iso-8859-1 Client-Date: Tue, 12 Mar 2002 10:39:05 GMT Client-Response-Num: 1 Client-Transfer-Encoding: chunked Set-Cookie: user=12::7c786c222596437b; domain=animanga.nu; path=/; expires=Wed, 12-Mar-2003 10:39:05 GMT Very nice and all, with cookie set. However, doing: $r->method_number(M_GET); $r->method("GET"); $r->headers_in->unset("Content-length"); $r->headers_out->add("Location" => "/users.pl"); $r->status(REDIRECT); $r->send_http_header(); Which I gather is the normal way to redirect a user, I get this header: Connection: close Date: Tue, 12 Mar 2002 10:38:36 GMT Server: Apache/1.3.23 (Unix) mod_perl/1.26 Content-Type: text/html; charset=iso-8859-1 Client-Date: Tue, 12 Mar 2002 10:38:36 GMT Client-Response-Num: 1 Client-Transfer-Encoding: chunked Right, no Set-cookie there. So what's up? How do I redirect a browser, and set a cookie at the same time? Thanks in advance, Axel Andersson -- [EMAIL PROTECTED] http://www.animanga.nu/morris/ 38. Feel cosmos as translucent ever-living presence
About Apache::DBI
Hi Okay, so I read up on Apache::DBI, but I still have a question or two. Specifically, am I supposed to keep my "use DBI", "DBI->connect()", and everything DBI related and not change a single thing in my source after I've added "Apache::DBI->connect_on_init()" in startup.pl? Right, I guess that's all. Thanks in advance, Axel Andersson -- [EMAIL PROTECTED] http://www.animanga.nu/morris/ 1. Radiant one, this experience may dawn between two breaths. After breath comes in and just before turning up--the benefience.
Blank pages
Hi, I run a mod_perl/mysql site, which works fine most of the time. Some pages, however, come out completely blank. Reload.. and hey presto, it works. Now, I realize this could be practically anything, so I'm just asking if anyone has come across something similar. I use Apache::DBI 0.88 for database connections, Apache 1.3.23 and mod_perl/1.2. Strange thing is, nothing shows up in the error log, even using -w. Well, it's a longshot, but thanks anyway. Axel Andersson -- [EMAIL PROTECTED] http://www.animanga.nu/morris/ 31. With intagible breath in center of forehead, as this reaches heart at the moment of sleep, have direction over dreams and over death itself.