Re: mod_perl and 700k files...

2001-05-12 Thread Morbus Iff
I'm relatively new to mod_perl... I've got a 700k file that is loaded each time I run a CGI script, so I'm hoping to cache the file using mod_perl somehow. The file will change occasionally (maybe once a week) - the reload of a few seconds isn't worrisome, but it has to be done without

Re: mod_perl and 700k files...

2001-05-12 Thread Perrin Harkins
on 5/12/01 5:46 PM, Morbus Iff at [EMAIL PROTECTED] wrote: I store a .stor file which is a storable dump of my XML tree. I check the mtime of that against the mtime of the .xml file. Whichever is newer I load that. Works fast and is very simple. I'll certainly check it out. The only

Re: mod_perl and 700k files...

2001-05-12 Thread Matt Sergeant
On Sat, 12 May 2001, Morbus Iff wrote: I store a .stor file which is a storable dump of my XML tree. I check the mtime of that against the mtime of the .xml file. Whichever is newer I load that. Works fast and is very simple. I'll certainly check it out. I also started looking into SAX to

Re: mod_perl and 700k files...

2001-05-11 Thread Matt Sergeant
On Wed, 9 May 2001, Morbus Iff wrote: Hey there, wondering if anyone could help me with this. I'm relatively new to mod_perl... I've got a 700k file that is loaded each time I run a CGI script, so I'm hoping to cache the file using mod_perl somehow. The file will change occasionally

mod_perl and 700k+ files?

2001-05-10 Thread Morbus Iff
Hey there, wondering if anyone could help me with this. I'm relatively new to mod_perl... I've got a 700k file that is loaded each time I run a CGI script, so I'm hoping to cache the file using mod_perl somehow. The file will change occasionally (maybe once a week) - the reload of a few

Re: mod_perl and 700k files...

2001-05-10 Thread Morbus Iff
The above code asigns a signal handler for the USR2 signal. This signal has been chosen because it's least likely to be used by the other parts of the server. That, unfortunately doesn't tell me what causes a USR2 signal to be sent to Apache. Or when it's caused. I only want to

Re: mod_perl and 700k files...

2001-05-10 Thread Dave Hodgkinson
Morbus Iff [EMAIL PROTECTED] writes: Well, it's a big deal if you've no in with the place you're webhosting with, sure... No one wants to be told that some lowly customer wants to restart the server that's running 200 other vhosts... Granted, I work at the damn webhost, but it's gotten to

Re: mod_perl and 700k files...

2001-05-10 Thread G.W. Haywood
Hi there, On Thu, 10 May 2001, Morbus Iff wrote: You didn't search the guide, even if you try to make everyone believe that Sigh. What the frel is your problem, binky? Stas' problem, which apparently your researches have not discovered, is that he WROTE the guide and when somebody starts

Re: mod_perl and 700k files...

2001-05-10 Thread Morbus Iff
Sigh. What the frel is your problem, binky? Stas' problem, which apparently your researches have not discovered, is that he WROTE the guide and when somebody starts spamming fifteen hundred mailboxes because he didn't read it he's understandably a little irritated. Oh, no, don't get me

Re: mod_perl and 700k files...

2001-05-10 Thread G.W. Haywood
Hi there, On Thu, 10 May 2001, Morbus Iff wrote: I hope ya understand. Well, I hope we've all got that off our chests. Now, have you got enough to get you going OK? 73, Ged.

Re: mod_perl and 700k files...

2001-05-10 Thread Morbus Iff
I hope ya understand. Well, I hope we've all got that off our chests. I'm really hoping so - I *hate* this sort of stuff. Now, have you got enough to get you going OK? I'm thinking I do, yes. Thanks for asking. Morbus Iff .sig on other machine. http://www.disobey.com/

Re: mod_perl and 700k files...

2001-05-10 Thread Perrin Harkins
on 5/9/01 5:45 PM, Morbus Iff at [EMAIL PROTECTED] wrote: Keep in mind, if you load this data during startup (in the parent) it will be shared, but reloading it later will make a separate copy in each child, chewing up a large amount of memory. You might have better luck using dbm That is

mod_perl and 700k files...

2001-05-09 Thread Morbus Iff
Hey there, wondering if anyone could help me with this. I'm relatively new to mod_perl... I've got a 700k file that is loaded each time I run a CGI script, so I'm hoping to cache the file using mod_perl somehow. The file will change occasionally (maybe once a week) - the reload of a few

Re: mod_perl and 700k files...

2001-05-09 Thread Robert Landrum
At 3:51 PM -0400 5/9/01, Morbus Iff wrote: ** The 700k file is an XML file, read in by XML::Simple. XML::Simple can cache that file into memory. Is this how I should do it? Or should I load the file from my startup.pl script so that the file is shared amongst all the apache children? If that's

Re: mod_perl and 700k files...

2001-05-09 Thread Morbus Iff
At 04:24 PM 5/9/01, Robert Landrum wrote: At 3:51 PM -0400 5/9/01, Morbus Iff wrote: ** The 700k file is an XML file, read in by XML::Simple. XML::Simple can cache that file into memory. Is this how I should do it? Or should I load the file from my startup.pl script so that the file is

Re: mod_perl and 700k files...

2001-05-09 Thread G.W. Haywood
Hi there, On Wed, 9 May 2001, Morbus Iff wrote: Ahhh. Ok. What's this $SIG{'USR2'} thingy. What's that do? http://perl.apache.org/guide 73, Ged.

Re: mod_perl and 700k files...

2001-05-09 Thread Morbus Iff
Ahhh. Ok. What's this $SIG{'USR2'} thingy. What's that do? http://perl.apache.org/guide Well, that's all fine and dandy, and I've gone through there before, but the only thing the search engine brings up concerning USR2 is: The above code asigns a signal handler for the USR2 signal.

Re: mod_perl and 700k files...

2001-05-09 Thread G.W. Haywood
Hi again, On Wed, 9 May 2001, Morbus Iff wrote: Ahhh. Ok. What's this $SIG{'USR2'} thingy. What's that do? http://perl.apache.org/guide Well, that's all fine and dandy, and I've gone through there before, but the only thing the search engine brings up concerning USR2 is: The

Re: mod_perl and 700k files...

2001-05-09 Thread Perrin Harkins
on 5/9/01 5:14 PM, Morbus Iff at [EMAIL PROTECTED] wrote: That, unfortunately doesn't tell me what causes a USR2 signal to be sent to Apache. You can use the kill command to send a USR2 signal. Or when it's caused. When you send it. I only want to reload the file when said file has

Re: mod_perl and 700k files...

2001-05-09 Thread ___cliff rayman___
Morbus Iff wrote: Ahhh. Ok. What's this $SIG{'USR2'} thingy. What's that do? has changed. Am I supposed to do some checking against the file -M time myself, and then send a USR2 signal myself? yes. this method assumes that the administrator of apache has made a change to a file and now

RE: mod_perl and 700k files...

2001-05-09 Thread Rob Bloodgood
That, unfortunately doesn't tell me what causes a USR2 signal to be sent to Apache. Or when it's caused. I only want to reload the file when said file has changed. Am I supposed to do some checking against the file -M time myself, and then send a USR2 signal myself? USR2 only fires when

Re: mod_perl and 700k files...

2001-05-09 Thread Tim Tompkins
http://www.arttoday.com/ -- - Original Message - From: Morbus Iff [EMAIL PROTECTED] To: G.W. Haywood [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, May 09, 2001 2:14 PM Subject: Re: mod_perl and 700k files... Ahhh. Ok. What's

Re: mod_perl and 700k files...

2001-05-09 Thread Morbus Iff
Ok. Thanks for the replies everybody. Collectively, I'm looking for a solution that DOES NOT require an Apache restart, or one that requires me to use a kill/killall command. I'm not in front of the server 100%, and I won't have access to telnet/ssh in to issue commands. Ultimately, I'm

Re: mod_perl and 700k files...

2001-05-09 Thread Ken Y. Clark
On Wed, 9 May 2001, Morbus Iff wrote: Date: Wed, 09 May 2001 17:45:03 -0400 From: Morbus Iff [EMAIL PROTECTED] To: Perrin Harkins [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: mod_perl and 700k files... Ok. Thanks for the replies everybody. Collectively, I'm looking for a solution

Re: mod_perl and 700k files...

2001-05-09 Thread Morbus Iff
Ultimately, I'm looking for something I can do totally from within Perl. Couldn't you create a Perl script to run as a cron job that could stat the file off-line for you and HUP the server when it has changed? That would seem easy enough. You'd just have to work out the perms on the cron user

Re: mod_perl and 700k files...

2001-05-09 Thread Stas Bekman
On Wed, 9 May 2001, Morbus Iff wrote: Ahhh. Ok. What's this $SIG{'USR2'} thingy. What's that do? http://perl.apache.org/guide Well, that's all fine and dandy, and I've gone through there before, but the only thing the search engine brings up concerning USR2 is: The above code