Re: [Q][LONG] using IPC::Shareable to cache data, Apache doesnt start

2002-10-03 Thread Perrin Harkins
Juan Natera wrote: > The worst of all is that Apache simply doesnt start, and I get no error > message at all. The error might be on the console, or you could try capturing it and writing it to a file. However, I suggest you ditch IPC::Shareable since it's dog slow. Use MLDBM::

[Q][LONG] using IPC::Shareable to cache data, Apache doesnt start

2002-10-03 Thread Juan Natera
Hello everyone, I am trying to use a IPC::Shareable tied hash to cache some data at the start of apache from my startup.pl script. this is my startup.pl - $ENV{GATEWAY_INTERFACE} =~ /^CGI-Perl/ or die "GATEWAY_INTERFACE not Perl!"; use Apache::Registry; use A

Re: IPC::Shareable

2001-10-16 Thread Perrin Harkins
> is there a delete method/operation any where? Could not find anything in > the perldoc docs indicating a method like that! It supports the same interface as normal hashes, so you can delete keys in the same way. You may also want to read the MLDBM documentation if you haven't already. - Perrin

Re: IPC::Shareable

2001-10-16 Thread Rasoul Hajikhani
Perrin Harkins wrote: > > > I am trying to make IPC::Shareable work with my script, however I get > > this error: > > IPC::Shareable::SharedMem: shmget: Permission denied > > at /usr/local/lib/perl5/site_perl/5.005/IPC/Shareable.pm line 456 > > [Tue Oct 16

Re: IPC::Shareable

2001-10-16 Thread Perrin Harkins
> I am trying to make IPC::Shareable work with my script, however I get > this error: > IPC::Shareable::SharedMem: shmget: Permission denied > at /usr/local/lib/perl5/site_perl/5.005/IPC/Shareable.pm line 456 > [Tue Oct 16 14:44:15 2001] [error] Could not create shared m

Re: IPC::Shareable

2001-10-16 Thread Luciano Miguel Ferreira Rocha
Make sure that you're not creating a too big shared memory segment and that you're (apache) running with an uid that is allowed to create shared memory segments. >From the apache configuration file: # . On HPUX you may not be able to use shared memory as nobody, and the #suggested workaroun

[OT] Re: IPC::Shareable

2001-10-16 Thread Stephen Adkins
6/2001 -0700, Rasoul Hajikhani wrote: >Pardon the off topic thread, >I am trying to make IPC::Shareable work with my script, however I get >this error: >IPC::Shareable::SharedMem: shmget: Permission denied > at /usr/local/lib/perl5/site_perl/5.005/IPC/Shareable.pm line 456 >[Tue Oct 16 1

IPC::Shareable

2001-10-16 Thread Rasoul Hajikhani
Pardon the off topic thread, I am trying to make IPC::Shareable work with my script, however I get this error: IPC::Shareable::SharedMem: shmget: Permission denied at /usr/local/lib/perl5/site_perl/5.005/IPC/Shareable.pm line 456 [Tue Oct 16 14:44:15 2001] [error] Could not create shared memory

Re: Shared cache with IPC::Shareable

2001-09-19 Thread Perrin Harkins
> I'm sharing memory between httpd processes using IPC::Shareable. It is working > but seems to behave inconsistently (memory is often not being freed etc..). I'm > using it for creating common cached areas for file and database contents shared > between httpd children. Is

Re: Shared cache with IPC::Shareable

2001-09-19 Thread Olivier Poitrey
Cache/ -- ___ O l i v i e rP o i t r e y USA disaster support http://www.osdn.com/911.shtml - Original Message - From: "Mark Maunder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 5:21 PM Subject: Shared cache wit

Shared cache with IPC::Shareable

2001-09-19 Thread Mark Maunder
Hi all, I'm sharing memory between httpd processes using IPC::Shareable. It is working but seems to behave inconsistently (memory is often not being freed etc..). I'm using it for creating common cached areas for file and database contents shared between httpd children. Is there a bet

Re: IPC::Shareable, or, it's supposed to SHARE it, not make more!

2001-09-01 Thread Joe Schaefer
"Rob Bloodgood" <[EMAIL PROTECTED]> writes: > The code in expire_old_accounts is creating a new tied ARRAYREF instead of > replacing the value of the hash key on this line: > > $ACCOUNTS{'QUEUE'} = [@accounts]; #also tried \@accounts; > > This di

Re: IPC::Shareable, or, it's supposed to SHARE it, not make more!

2001-08-31 Thread Perrin Harkins
> One of the shiny golden nuggets I received from said slice was a shared > memory cache. It was simple, it was elegant, it was perfect. It was also > based on IPC::Shareable. GREAT idea. BAD juju. Just use Cache::Cache. It's faster and easier. - Perrin

IPC::Shareable, or, it's supposed to SHARE it, not make more!

2001-08-31 Thread Rob Bloodgood
So, once upon a time, I bought the Eagle and realized I had purchased a small slice of heaven. One of the shiny golden nuggets I received from said slice was a shared memory cache. It was simple, it was elegant, it was perfect. It was also based on IPC::Shareable. GREAT idea. BAD juju. The

Re: IPC::Shareable (was Re: Perl module - LWP)

2000-10-23 Thread Steven Cotton
my($tag, $ice) = unpack 'A13 A*' => $stuff; > > (since the sub _freeze calls > > my $stuff = 'IPC::Shareable' . $ice; > > - i.e. 13 chars). But there are further problems ("make test" hangs)... Intriguing. Since I'm a sad spod I'll ha

Re: IPC::Shareable (was Re: Perl module - LWP)

2000-10-23 Thread Alexander Farber (EED)
>my $stuff = 'IPC::Shareable' . $ice; > - i.e. 13 chars) Oops, sorry - I can't count on mondays!

Re: IPC::Shareable (was Re: Perl module - LWP)

2000-10-23 Thread Alexander Farber (EED)
ges about "munged shared memory" seem to be going if you change my($tag, $ice) = unpack 'A14 A*' => $stuff; in the file lib/IPC/Shareable.pm, sub _thaw to the: my($tag, $ice) = unpack 'A13 A*' => $stuff; (since the sub _freeze calls my $stuff = &#x

Re: IPC::Shareable (was Re: Perl module - LWP)

2000-10-22 Thread Steven Cotton
t, one of the tests doesn't return and I got a few munged shared memory segment errors, I was attempting to install under Solaris 7 and Perl 5.6.0. > If not IPC::Shareable, what module do you use for fast > communication between Apache-children? I started with IPC::SharedCache since it did m

Re: IPC::Shareable (was Re: Perl module - LWP)

2000-10-21 Thread Greg Cope
> > that it works with no modification. > > I would like to ask the same question about IPC::Shareable. > > Is anybody successfully using it under Solaris or OpenBSD? > "make test" hangs for me on these platforms and the module > author is unreachable :-(

IPC::Shareable (was Re: Perl module - LWP)

2000-10-21 Thread Alexander Farber (EED)
"David M. Davisson" wrote: > Yes, it works fine. No mods. > From: "David Jourard" <[EMAIL PROTECTED]> > > Has anyone worked with the LWP module under mod_perl and have they found > > that it works with no modification. I would like to ask the sam

Re: Amount of memory available to IPC::Shareable?

2000-10-12 Thread Eivind Trondsen
; Sent: October 12, 2000 9:21:58 AM GMT > Subject: Amount of memory available to IPC::Shareable? > > > I would like to write a small web chat using IPC::Shareable. > > How do I find out, how much shared memory is available on some > host, esp. under Solaris and OpenBSD? I have

RE: Amount of memory available to IPC::Shareable?

2000-10-12 Thread ricarDo oliveiRa
Hi there, this may be of some interest to you: http://perlchat.sourceforge.net/ --Original Message-- From: "Alexander Farber (EED)" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: October 12, 2000 9:21:58 AM GMT Subject: Amount of memory available to IPC::Shareable?

Amount of memory available to IPC::Shareable?

2000-10-12 Thread Alexander Farber (EED)
I would like to write a small web chat using IPC::Shareable. How do I find out, how much shared memory is available on some host, esp. under Solaris and OpenBSD? I have looked at "perldoc IPC::Shareable" and the outputs of "dmesg", "ipcs -a" and "ulimit -a

Re: IPC::Shareable problems

2000-09-06 Thread Nouguier
Steven Cotton wrote: > Hi, > > I've been having some problems delete()'ing elements from a tied > IPC::Shareable hash. The example from the pod works fine (but that's not > running under mod_perl) so I'm wondering if there are any lifetime/scope > issue

IPC::Shareable problems

2000-09-06 Thread Steven Cotton
Hi, I've been having some problems delete()'ing elements from a tied IPC::Shareable hash. The example from the pod works fine (but that's not running under mod_perl) so I'm wondering if there are any lifetime/scope issues with using IPC::Shareable 0.51 under mod_perl 1.24

RE: Apache::SpeedLimit and problems with IPC::Shareable

1999-11-10 Thread Christian Gilmore
OTECTED]] > Sent: Wednesday, November 10, 1999 2:51 PM > To: Christian Gilmore > Cc: ModPerl Mailing List (E-mail) > Subject: Re: Apache::SpeedLimit and problems with IPC::Shareable > > > This sounds an awful lot like the problem I ran into when using > Apache::Session'

Re: Apache::SpeedLimit and problems with IPC::Shareable

1999-11-10 Thread Tobias Hoellrich
/ I assume you're using 5.00503 ? Hope this helps Tobias At 01:56 PM 11/10/99 -0500, Christian Gilmore wrote: >I inserted Apache::SpeedLimit into one of our servers the other day. It works >as advertised, but I'm now seeing errors in the error_log that are coming from >Apache

RE: Apache::SpeedLimit and problems with IPC::Shareable

1999-11-10 Thread Christian Gilmore
The problem is certainly with how IPC::Shareable deals with memory (re)allocation and not with mod-perl. I'm sorry to have brought it to this list. I'll see if I can't hunt down the creator of IPC::Shareable and work with him on it. Regards, Christian > -Original Message--

Apache::SpeedLimit and problems with IPC::Shareable

1999-11-10 Thread Christian Gilmore
I inserted Apache::SpeedLimit into one of our servers the other day. It works as advertised, but I'm now seeing errors in the error_log that are coming from Apache::SpeedLimit/IPC::Shareable. I wonder if anyone else has had this problem. >From the error_log: [Wed Nov 10 13:28:55 1999]

Re: !!need help on DBM file and IPC::Shareable...

1999-10-13 Thread Stas Bekman
Martin, Both questions aren't related to mod_perl. Please use comp.lang.perl.misc or other appropriate forums instead! Thank you! > I was trying to use either DBM_File or IPC::Shareable to handle about > 100M data locally without a separate database machine. The data > str

!!need help on DBM file and IPC::Shareable...

1999-10-13 Thread lma
Hi, I was trying to use either DBM_File or IPC::Shareable to handle about 100M data locally without a separate database machine. The data structure I tried to store was a complex Hash with hash and array inside( actually use MLDBM for nested Hash and array, IPC::Shareable for nested