Let's assume that you have two different sets of scripts/code which
have a little or nothing in common at all (different modules, no base
code sharing), the basic mod_perl process before the code have been
loaded of three Mbytes and each code base adds ten Mbytes when
loaded. Which makes each pro
I understand that. :) And that was something that I had to learn myself.
:) It's a BAD thing when suddenly your httpd process takes up 100 MB. :)
It's just that it sounded like Shane was saying that his httpds were
starting OUT at 4 to 6 MB. That sounded a little unusual to me but then
again,
> [ By the way, Stas - is there a CVS version of the guide that I can make
> patches against? I found a few inaccuracies. ]
Yeah, but it's not accessible for people from the outside. I think I'll
start using the same mechanism apache.org does -- rolling out CVS
snapshots every few hours. At thi
If you aren't careful with your programming, an apache HTTPD can always
grow pretty quickly because Perl never releases the RAM it allocates
previously. While it does that reference count garbage collection, that is
internal to the RAM that was allocated.
Let's say you need to sort a record se
Shane, question for you. No offense intended here at all but what do you
have in your apache servers (other than mod_perl) that use 4 to 6 MB? I've
got one server that I'm working on that handles close 1 Mil hits per day
than runs WITH mod_perl that uses 4 to 6 MB. ;-) Without mod_perl, it
tak
Title: RE: Compiler errors...
Well this does work better, but as I found out, it doesn't solve my problem. While this does catch runtime errors, it doesn't catch compile-time errors when using Apache::StatINC.
However thanks to your hint on how to do this, I was able to patch Apache::StatI
While I agree that a true garbage collector would be cool. I wonder what
the utility would really be when you would primarily want it in mod_perl
type stuff. Yet, mod_perl is also great because of speed. One of the nice
things about Perl right now is that it is fast and that is partially due to
I am not going to answer your question directly because I don't know the
answer.
However, consider that not many people use jpl. Therefore, it is likely
that it has more bugs than other parts of Perl. Also consider that the
software you use may end up disliking the process model and rely on
i
[EMAIL PROTECTED] wrote:
>On Mon, Apr 17, 2000 at 01:33:08PM -0600, Jason Terry wrote:
>> This is the first i have seen "delete" referenced. What does it do?
>> How is it used?
>>
>> Thank you
>> -Jason
>
>It's the stack cleaner... but it only works for scalars, and maybe
>arrays, but its
[EMAIL PROTECTED] (Kenneth Frankel) wrote:
>Could someone provide a good FAQ or example of how to impliment this
>thing? The package documentation's "just copy the test script" example I'm
>sure is a great time-saver for the author but when one has problems it's
>really a pain with all the unr
- Original Message -
From: Andy Yiu <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 15, 2000 1:13 PM
Subject: RE: Apache::ASP problem, example index.html not working
> Hi, this is Andy again.
>
> It's about that, after I installed the ASP patch, all
> other *.asp are wo
As these jobs involve perl programming, I thought you may have an
interest
in the following jobs for developing database-driven web sites at Forum
One Communications. Please see www.forumone.com/consult/ for details.
SENIOR WEB PROGRAMMER 6+ yrs exp. Unix/CGI programming,
with 2+ yrs developin
You're right. I am mistaken :-(. Just tested it, and it was
something silly in an old script I had lying around that I thought was
a bug... my mistake. (Note to self: Test all examples before
posting... or you look like an idiot :-) )
Sorry,
Shane.
> I think you're mistaken. Try the following
>This is the first i have seen "delete" referenced. What does it do? >How
>is it used?
Well, you should read the manuyal, or "Programming Perl" for the real
answer. Or, were you speaking in reference to delete() specifically under
mod_perl?
In either case, delete() removes the specified ke
[EMAIL PROTECTED] wrote:
> my $i=0;
> dosomefunnierstuff();
> sub dosomefunnierstuff {
> my $funnierstuff;
> if($funnierstuff=~/funnier/) {
> dosomefunnierstuff();
> } else {
> $funnierstuff="funnier".$i++;
> }
> print "Funnie
On Tue, 18 Apr 2000 [EMAIL PROTECTED] wrote:
> Go out of scope, yes. Destroyed, no. Want to test? No problem. Do
> the following in a perl script.
>
> my($funnything);
> print"Value of funnything is $funnything";
> $funnything="Uh oh... check this out";
This only happens with Apache::Regist
On Mon, Apr 17, 2000 at 01:33:08PM -0600, Jason Terry wrote:
> This is the first i have seen "delete" referenced. What does it do? How is it used?
>
> Thank you
> -Jason
It's the stack cleaner... but it only works for scalars, and maybe
arrays, but its better for arrays and hashes to do
I get it. You're talking about Apache::Registry scripts.
http://perl.apache.org/guide/perl.html#my_Scoped_Variable_in_Nested_S
Jim
This is the first i have seen "delete" referenced. What does it do? How is it used?
Thank you
-Jason
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 17, 2000 9:32 PM
Subject: Re: Modperl/Apache deficiencies... Memory usage.
> >
> > Go
>
> Go out of scope, yes. Destroyed, no. Want to test? No problem. Do
> the following in a perl script.
>
> my($funnything);
> print"Value of funnything is $funnything";
> $funnything="Uh oh... check this out";
>
> You'll find some interesting results on your second interation :-).
> Even f
On Apr 18, [EMAIL PROTECTED] wrote:
> On Mon, Apr 17, 2000 at 11:12:24AM -0700, Perrin Harkins wrote:
> > [EMAIL PROTECTED] wrote:
> > > Now with modperl the Perl garbage collector is
> > > NEVER used. Because the reference count of those variables is never
> > > decremented... it's because it's
On Mon, Apr 17, 2000 at 11:12:24AM -0700, Perrin Harkins wrote:
> [EMAIL PROTECTED] wrote:
> > Now with modperl the Perl garbage collector is
> > NEVER used. Because the reference count of those variables is never
> > decremented... it's because it's all in the registry, and it's hard to
> > tell
I have a requirement to make use of some third party software
written in Java. I would like to get my mod_perl based scripts
to talk to this software. To that end I am interested in the
jpl shipped with 5.6. Has anyone successfully integrated this
with mod_perl on Solaris? If so, how did you b
OK, it happended again. Here is the error log snippet
Can't undef active subroutine at
/usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Registry.pm line 102.
I think i may know a little more about the cause this time thought. It happened
immediatly after I made a VERY minor change (put
quo
[EMAIL PROTECTED] wrote:
> Now with modperl the Perl garbage collector is
> NEVER used. Because the reference count of those variables is never
> decremented... it's because it's all in the registry, and it's hard to
> tell... hmm... what should I throw away, and what should I keep? ;-).
What I
> "KF" == Kenneth Frankel <[EMAIL PROTECTED]> writes:
KF> What's the best way to authenticate users? I have a site where the entire
KF> site is to be protected. I want to log users in at the front of the web
For a site whose contents are entirely protected, I'd use basic auth
with a cooki
Hi,
I have also had this problem. I checked the modperl-cvs archive and this
problem has been fixed in the development release.
I still have an problem using IPC::Open2. This can be demonstrated by:
use IPC::Open2;
$pid = open2(\*A, \*B, '/usr/bin/ls');
The error log shows:
[e
I previously posted a question regarding installing
mod_perl. Specifically, when I ran "make test", the script said it started
the server, then said it was still waiting for the server to warm up, and
finally died. I had built mod_perl in a directory within my home
directory. The permission
What's the best way to authenticate users? I have a site where the entire
site is to be protected. I want to log users in at the front of the web
site, and keep them logged in as they travel around. I was trying to get
AuthCookie to work but haven't been successful so far. Should I continue
Could someone provide a good FAQ or example of how to impliment this
thing? The package documentation's "just copy the test script" example I'm
sure is a great time-saver for the author but when one has problems it's
really a pain with all the unrelated testing code. I'm having problems and
On Mon, 17 Apr 2000, Vivek Khera wrote:
> > "MS" == Matt Sergeant <[EMAIL PROTECTED]> writes:
>
> >> adding handlers as easy as adding Registry scripts. I guess it is
> >> sort of an ultra-light-weight Registry, in some sense.
>
> MS> I've got something pretty similar. Let me know if you w
> "MS" == Matt Sergeant <[EMAIL PROTECTED]> writes:
>> adding handlers as easy as adding Registry scripts. I guess it is
>> sort of an ultra-light-weight Registry, in some sense.
MS> I've got something pretty similar. Let me know if you want some code.
Sure; it is always good to see other
> "DT" == Drew Taylor <[EMAIL PROTECTED]> writes:
DT> are beginning the transition to Apache handlers. One other thing that I
DT> would love is a module to do checkboxes/pull-down list generation ALA
DT> CGI.pm. I might rip off some code and create a module myself. I think it
Have a look at
Matt Sergeant wrote:
>
> On Mon, 17 Apr 2000, Vivek Khera wrote:
>
> > But, I've been toying with the idea of writing an Apache::Dispatch
> > module that would take all URL's of the form something like
> >
> > http://localhost/perl/My/Module/handlerfunc
> >
> > and dispatch the call to My::Modul
On Mon, 17 Apr 2000, Vivek Khera wrote:
> But, I've been toying with the idea of writing an Apache::Dispatch
> module that would take all URL's of the form something like
>
> http://localhost/perl/My/Module/handlerfunc
>
> and dispatch the call to My::Module::handlerfunc()
>
> Assuming that My
Erich Markert wrote:
> I've been trying to get the msql-mysql-modules compiled and installed on
> my Win98 machine for a couple weeks without much luck.
I managed to get these working on NT4 with both 5.005_03 and 5.6.0 (both
built myself from the standard distribution, not the ActiveState build
Looks good; I'd recommend keeping *.html files on the front-end as
well, since they tend to be static, and also any traditional *.cgi
since they don't need mod_perl's bloat on the fork/exec.
Also, specifying "Port 80" inside each virtual on the back-end is not
necessary, though perhaps setting a
On Mon, 17 Apr 2000, Vivek Khera wrote:
> > "SB" == Stas Bekman <[EMAIL PROTECTED]> writes:
>
> SB> Of course, anyone has a sample section handy? I'm still an
> SB> C fan, to be changed soon :)
>
> I don't see what sections have to do with using or not
> Apache::Registry instead of handle
> "SB" == Stas Bekman <[EMAIL PROTECTED]> writes:
SB> Of course, anyone has a sample section handy? I'm still an
SB> C fan, to be changed soon :)
I don't see what sections have to do with using or not
Apache::Registry instead of handlers...
But, I've been toying with the idea of writing a
I've been trying to get the msql-mysql-modules compiled and installed on
my Win98 machine for a couple weeks without much luck.
I tried using the latest version of perl 5.6 from active state but ran
into nothing but problems. Basically running perl Makefile.PL for
Data::ShowTable (a required mod
Jochen,
> If you are using the DBD-mysql sources, as distributed by me, the
> mysql_real_connect function will *never* be called with a NULL
> argument. This cannot happen, if mysql_init() is called before
> mysql_real_connect(). (Unless you are using some patches that I have
> recently reached m
On Mon, 17 Apr 2000, Paul G. Weiss wrote:
> Is this still true under 5.6, now that weak references
> are available?
Yes. You still have to do a lot of re-implementation to make weak refs
work, and your users have to have the WeakRef module from CPAN. Not a nice
situation.
--
Fastnet Software
Gunther- (What follows is some servlet talk... and anyone interested
in a mod_perl garbage collector?)
> If you want the ultimate in clean models, you may want to consider coding
> in Java Servlets. It tends to be longer to write Java than Perl, but it's
> much cleaner as all memory is shared a
Is this still true under 5.6, now that weak references
are available?
-P
> -Original Message-
> From: Matt Sergeant [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 17, 2000 4:14 AM
> To: Leslie Mikesell
> Cc: (Gunther Birznieks); [EMAIL PROTECTED]
> Subject: Re: Modperl/Apache deficienc
Hi,
I'm using part of the URL to tell perl::dbi what DB to connect to.
www.mysite.com/mydb/index.html
will connect to mydb.
I will be creating many different environments. At the moment I edit the
httpd.conf file as I add each environment.
How can I tell apache what AuthUserFile to use dynam
On Sun, 16 Apr 2000, Leslie Mikesell wrote:
> Do you happen to know of anyone doing xml/xsl processing in
> servlets? A programmer here has written some nice looking stuff
> but it appears that the JVM is never garbage-collecting and
> will just grow and get slower until someone restarts it. I
46 matches
Mail list logo