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
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
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
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
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
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
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
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
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
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.
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/
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
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
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
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
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.
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.
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
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
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
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
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
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
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
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
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
26 matches
Mail list logo