IPC::Cache and how to clear the cache

2000-06-02 Thread Sang Han
Hi all, I'm not sure if this is an appropriate place to ask. I've looked over the "Guide" and couldn't really determine for sure how to do this. I am using the IPC::Cache module to store some configuration information in shared memory for mod_perl modules that I've written. The problem I'm faci

Weird log file entry related to use of constant

2000-06-02 Thread Michael Todd Glazier
Based on the examples in "Writing Apache Modules with Perl and C" I'm trying out the use of constants in a CGI program for Apache::Registry. At the moment the program is only running under Apache::PerlRun The problem is its filling up my log file with non-fatal, but space consuming message.

help adding mod_perl core dumps

2000-06-02 Thread Pete Lancashire
I'm stuck with an old RedHat 5.2 box for a few months and am having troubles with mod_perl, not with the RedHat RPM version. I've loaded and built apache 1.3.12 with success But when mod_perl 1.24 is added starting apache (httpd) core dumps. Mod_perl was added this way: perl Makefile.PL \ AP

non-DSO mod_perl, Embperl, and AIX not working (duplicate ?)

2000-06-02 Thread Greg Estep
Sorry if this is a duplicate. I sent the message yesterday, but I haven't seen it posted back to me via the list. We have recently been having problems with our email services... --- I am using IBM's C complier (cc) under AIX 4.3.3

RE: Embperl struggles

2000-06-02 Thread Greg Estep
The LOG filehandle is predefined by Embperl. Anything written to it is put into Embperl's log file (usually /tmp/embperl.log). If you use a different name, you will probably be OK. On the other hand, you can just delete the call to "open" (and "close) and use the log file Embperl already provi

[RFC: performance] Preloading Perl Modules at Server Startup

2000-06-02 Thread Stas Bekman
Here is another one: You can use the C and C directives to load commonly used modules such as C, C and etc., when the server is started. On most systems, server children will be able to share the code space used by these modules. Just add the following directives into I: PerlModule CGI Per

[RFC: performance] Initializing CGI.pm

2000-06-02 Thread Stas Bekman
Here is another one. You should use Apache::Request instead, but just in case you still use CGI.pm (me too :) as usuals comments are welcome: C is a big module that by default postpones the compilation of its methods until they are actually needed, thus making it possible to use it under slow mo

[RFC: performance] Initializing DBI.pm

2000-06-02 Thread Stas Bekman
Here is a complete version. comments are very welcome before it enters the guide: The first example is the C module. As you know C works with many database drivers falling into the C category, e.g. C. It's not enough to preload C, you should initialize C with driver(s) that you are going to use (

Re: [benchmark] DBI/preload (was Re: [RFC] improving memory mappingthru code exercising)

2000-06-02 Thread Ed Phillips
Yes, very cool Stas! Perrin Harkins wrote: > On Sat, 3 Jun 2000, Stas Bekman wrote: > > > correction for the 3rd version (had the wrong startup), but it's almost > > the same. > > > > Version Size SharedDiff Test type > >

Re: [benchmark] DBI/preload (was Re: [RFC] improving memory mappingthru code exercising)

2000-06-02 Thread Perrin Harkins
On Sat, 3 Jun 2000, Stas Bekman wrote: > correction for the 3rd version (had the wrong startup), but it's almost > the same. > > Version Size SharedDiff Test type > > 1 3469312 2609152 860160

Re: [benchmark] DBI/preload (was Re: [RFC] improving memory mapping thru code exercising)

2000-06-02 Thread Stas Bekman
> but actualy it's the DBD:: method. No matter what, you get more shared > memory with it, see the updated table: > > Version Size SharedDiff Test type > > 1 3469312 2609152 860160 install_dri

Re: [benchmark] DBI/preload (was Re: [RFC] improving memory mapping thru code exercising)

2000-06-02 Thread Stas Bekman
On Fri, 2 Jun 2000, Perrin Harkins wrote: > On Sat, 3 Jun 2000, Stas Bekman wrote: > > * install_driver (2): > > DBI->install_driver("mysql"); > > I've never seen that before, There is always a first time :) > and it isn't in the DBI perldoc. Where do you think I've found it :) It is me

Re: [benchmark] DBI/preload (was Re: [RFC] improving memory mappingthru code exercising)

2000-06-02 Thread Perrin Harkins
On Sat, 3 Jun 2000, Stas Bekman wrote: > * install_driver (2): > DBI->install_driver("mysql"); I've never seen that before, and it isn't in the DBI perldoc. Is it safer than "use DBD::mysql;"? - Perrin

[benchmark] DBI/preload (was Re: [RFC] improving memory mapping thru code exercising)

2000-06-02 Thread Stas Bekman
On Mon, 29 May 2000, Vivek Khera wrote: > > "SB" == Stas Bekman <[EMAIL PROTECTED]> writes: > > SB> A while ago, a few people have mentioned that it's possible to improve the > SB> way Perl data structures get mapped in memory pages, by exercising the > SB> code before the child processes ha

Re: FW: [Q] session mgmt

2000-06-02 Thread Perrin Harkins
On Thu, 1 Jun 2000 [EMAIL PROTECTED] wrote: > So my questions are: how to save session info from page 1 and allow a > web server that services age 3 to access it. Have a look at Apache::Session. Use a database or files over NFS if you have a cluster. I've had better luck with databases than NFS

[OT ANNOUNCE] Beans-0.01

2000-06-02 Thread DeWitt Clinton
Hi, This may be one of the strangest programming things I've ever tried to do. Because I've recently been introduced (somewhat embarrassingly) to the joys of Java Beans, I thought "hey, wouldn't this be great to have in Perl, too?" Well, since I'm masochistic like that, I've written a very part

Re: was apache.org down

2000-06-02 Thread Ed Phillips
Replying to myself. It is back up, obviously. sorry for the noise Ed Phillips wrote: > Level 3 is broken. > > They know and are working on it. hmmm > > Ed

was apache.org down

2000-06-02 Thread Ed Phillips
Level 3 is broken. They know and are working on it. hmmm Ed

apache.org down

2000-06-02 Thread Ed Phillips
"Hughes, Ralph" wrote: > COOL! > I couldn't wait... > I built and installed mod_perl 1.24 and it fixed the problem! Now if I can > just get the CGI module > to recognize my domainname .. :-) > > -Original Message- > From: Hughes, Ralph > Sent: Friday, June 02, 2000 2:02 PM > To:

RE: Segmetation Fault problem

2000-06-02 Thread Hughes, Ralph
COOL! I couldn't wait... I built and installed mod_perl 1.24 and it fixed the problem! Now if I can just get the CGI module to recognize my domainname .. :-) -Original Message- From: Hughes, Ralph Sent: Friday, June 02, 2000 2:02 PM To: Geoffrey Young; 'Michael Todd Glazier'; M

RE: Segmetation Fault problem

2000-06-02 Thread Hughes, Ralph
I'm not too good on back traces myself. ` I'm using a dynamic build of mod_perl, so I may try building the 1.24 version next week sometime. I hadn't thought of changing the PerFreshStart parameter, it might make a difference... -Original Message- From: Geoffrey Young [mailto:[EMAIL PROT

RE: Segmetation Fault problem

2000-06-02 Thread Geoffrey Young
hmmm, did you try upgrading your installation then? you are using a static mod_perl? PerlFreshRestart Off? I'm no good at reading backtraces, but posting that is probably the next step (see SUPPORT doc section on core dumps in the distribution) sorry I can't be of more help... --Geoff >

RE: Segmetation Fault problem

2000-06-02 Thread Hughes, Ralph
Nope! I didn't trust the RPM configuration so I built Apache, and mod_perl from source. After you do it half a dozen times or so, it's almost as fast as the RPM install :-) -Original Message- From: Geoffrey Young [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 12:11 PM To: 'Michae

RE: Segmetation Fault problem

2000-06-02 Thread Geoffrey Young
are you both using the default RPM from redhat? IIRC, if you check the archives, you'll find similar reports for users of the RPM. Generally, RedHat RPMs use mod_perl as a DSO, and it seems mod_perl's DSO received lots of DSO upgrading/tuning after 1.21. I'd suggest rolling your own mod_perl +

Re: Apache children hanging

2000-06-02 Thread Stas Bekman
On Fri, 2 Jun 2000, Ian Struble wrote: > Someone just pointed out that this should probably go into the guide or > FAQ somewhere. Just a thought... > > On Thu, 1 Jun 2000, Doug MacEachern wrote: > > > > % gdb httpd $pid_of_spinning_process > > > % source modperl_x.xx/.gdbinit > > > % curinfo

Re: Apache children hanging

2000-06-02 Thread Ian Struble
Someone just pointed out that this should probably go into the guide or FAQ somewhere. Just a thought... On Thu, 1 Jun 2000, Doug MacEachern wrote: > > % gdb httpd $pid_of_spinning_process > > % source modperl_x.xx/.gdbinit > > % curinfo > > oops, that should be: > > % gdb httpd $pid_of_spin

RE: Apache::Session::File

2000-06-02 Thread Jerrad Pierce
My bad, it does seem to be using flock, but it still seems to be the consistent point of failure.. and I am untieing immediately after use o _ /|/ | Jerrad Pierce \ | __|_ _| /||/ http://pthbb.org . | _| | \|| _.-~-._.-~-._.-~-._@" _

Apache::Session::File

2000-06-02 Thread Jerrad Pierce
Anybody know why Apcahe::Session::Lock::File.pm uses lock FILES instead of flocking the file? It seems to be causing problems with rapdifre access... o _ /|/ | Jerrad Pierce \ | __|_ _| /||/ http://pthbb.org . | _| | \|| _.-~-._.-~-._.-~-.

Re: Segmetation Fault problem

2000-06-02 Thread Michael Todd Glazier
Ralph, This isn't any help, but this describes the exact same problem I'm having. Using your experience I was able to get the module to load with a HUP. I wonder is the dir DBI is in doesn't get put into @INC until sometime after startup.pl tries to run? I'll have to experiment with that. -

Segmetation Fault problem

2000-06-02 Thread Hughes, Ralph
Hello! I've come upon a strange problem with my Apache/mod_perl configuration. (Apache v 1.3.9 mod_perl 1.21) When I attempt to preload Perl modules like FileHandle, Apache::DBI, DBI, etc., the httpd process gets a segmentation fault and core dumps at startup. I've tried using the PerlModule dire

use DBI () (and modules in same die) dies in startup.pl

2000-06-02 Thread Michael Todd Glazier
Hey all! I'm having a really weird problem with mod_perl where is dies loading modules from a certain dir in startup.pl I'm running Red Hat Linux 6.2 with: Embedded Perl version 5.00503 for Apache/1.3.12 (Unix) (Red Hat/Linux) mod_perl/1.21 I set up a startup.pl file to pre-load the usual list

Re: cleaning old Apache::Session's

2000-06-02 Thread Tobias Hoellrich
We are not using cookies to send the session id to the server, but instead rewrite URLs to contain the session-id (switch off Cookies and go to http://www.amazon.com for a similar experience). When a user hits us with a request we lookup the session-data in the session-table and jump to a "sorry s

Re: jezndi (again)

2000-06-02 Thread Matt Sergeant
On Fri, 2 Jun 2000, Paul wrote: > I don't know why, but it seems a lot of the messages I send to this > list are getting through, but also being tossed back at me with a > nastygram from [EMAIL PROTECTED] accusing me of spamming. > > Easy enough for me to just block this address, but I thought I

err_headers_out Q

2000-06-02 Thread Geoffrey Young
hi all... this simple script: #!/usr/bin/perl my $r = shift; $r->err_headers_out->add('Set-Cookie' => "name=error"); warn "pre headers_out: " . $r->headers_out->get('Set-Cookie'); $r->send_http_header('text/plain'); warn "post headers_out: " . $r->headers_out->get('Set-Cookie'); print "done";

Re: Apache children hanging

2000-06-02 Thread Ian Struble
Now if only I had known this two years ago... Awsome tidbit though. Thanks! > you can find out which line of Perl code is triggering a spin, by > attaching to the process with gdb; > > % gdb httpd $pid_of_spinning_process > % source modperl_x.xx/.gdbinit > % curinfo > > should show you the fi

Embperl struggles

2000-06-02 Thread Toni Mueller
Hello, trying to develop with Embperl I encounter the following problems: 1. Using a sequence of statements like [- open LOG, ">/tmp/logfile.txt"; print LOG "some debug info: $var\n"; close LOG; -] ever gets me the following error: error in Perl code: Can't locate object metho

RE: cleaning old Apache::Session's

2000-06-02 Thread Jerrad Pierce
I think he means that the session is removed from the server, but the sesion ID (cookie) was not set to expire... o _ /|/ | Jerrad Pierce \ | __|_ _| /||/ http://pthbb.org . | _| | \|| _.-~-._.-~-._.-~-._@" _|\_|___|___| > -Orig

Re: cleaning old Apache::Session's

2000-06-02 Thread Niral Trivedi
Tobias, What do you exactly mean by line 'Internally the session will expire after 30 minutes.'??? Is it something internal to Apache::Session or you have it programmed on custom basis or what??? Niral Tobias Hoellrich wrote: > > At 09:26 AM 6/2/00 +1000, Adam Cassar wrote: > >I was wondering

Re: Apache children hanging

2000-06-02 Thread Vivek Khera
> "BL" == Ben Li <[EMAIL PROTECTED]> writes: BL> Yes , I'm always get into this trouble , a gnu/linux redhat 6.1 BL> with last kernel and patch . About 280k hits per day , down every BL> two days . Even sometimes a watchdog can reboot it , but sometims BL> not . Seemly modperl is too compl

jezndi (again)

2000-06-02 Thread Paul
I don't know why, but it seems a lot of the messages I send to this list are getting through, but also being tossed back at me with a nastygram from [EMAIL PROTECTED] accusing me of spamming. Easy enough for me to just block this address, but I thought I'd post one more notice in case someone res

Re: mod_perl 1.24 testing keeps failing

2000-06-02 Thread Mark Murphy
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm >list-help: >list-unsubscribe: >list-post: >Delivered-To: mailing list [EMAIL PROTECTED] >X-Authentication-Warning: mojo.covalent.net: dougm owned process doing

Re: Segfault in second time through sub request...

2000-06-02 Thread Matt Sergeant
Replying to my own post... I found the problem - I was caching a subrequest in the child's memory and trying to call lookup_* again with that cached request. Doesn't work for fairly obvious reasons. On Fri, 2 Jun 2000, Matt Sergeant wrote: > Running under httpd -X, first time through my subreque

Segfault in second time through sub request...

2000-06-02 Thread Matt Sergeant
Running under httpd -X, first time through my subrequest goes fine, second time through it segfaults. Here's the non-debugging bt: Program received signal SIGSEGV, Segmentation fault. 0x8080757 in ap_copy_table () (gdb) bt #0 0x8080757 in ap_copy_table () #1 0x80937ef in ap_set_sub_req_protocol

Re: mod_perl 1.24 testing keeps failing

2000-06-02 Thread David Mitchell
> > [Thu May 25 19:34:31 2000] [error] mod_ssl: Init: Failed to generate temporary 5 > > 12 bit RSA private key Sorry, I missed the earlier discussion on this (so I may have got the wrong end of the stick), but I got this too when trying to build apache 1.3.12 with perl-5.6.0 and mod_ssl 2.6.4,

Re: Apache children hanging

2000-06-02 Thread Ben Li
Steve Reppucci wrote: > This is *exactly* the symptoms we see, and we're just about always up to > date with Apache/Perl/modperl releases. > > We've spent a fair amount of time trying to isolate the cause of these, > but haven't been able to point the finger at any one cause. Some of the > thing

Re: Apache children hanging

2000-06-02 Thread Ben Li
John Armstrong wrote: > I have had this problem to varying degrees in all of my high traffic > mod perl installations. The thing that saves me is Apache::Resource. > In my httpd.conf I put : > > PerlModule Apache::Resource > PerlSetEnv PERL_RLIMIT_DATA 32 > PerlSetEnv PERL_RLIMIT_CPU 640 > PerlCh

Re: Bugs 5.6.0 modperl use?

2000-06-02 Thread Jeremy Howard
> Well, that turned out to be a challenging request! > Here's a module that always segfaults, if you run with > httpd -X -Dperldb -Dperlsi Sorry, I forgot to mention... the segfault only occurs if you _don't_ have Net::DNS installed. -- Jeremy Howard [EMAIL PROTECTED]

Re: Bugs 5.6.0 modperl use?

2000-06-02 Thread Jeremy Howard
> > > [Wed May 24 19:58:28 2000] [error] PerlRun: `Bizarre copy of HASH in aassign > > > at /usr5/perl/lib/5.6.0/Carp/Heavy.pm line 79. > > > ... > > Do the following: > > > > In Carp::Heavy, change 'DB' to 'DB_tmp': > > Line 39: while (do { { package DB_tmp; @a = caller($i++) } } ) { > > Line 79