Re: MPM worker and ithreads

2004-02-23 Thread Stas Bekman
Richard F. Rebel wrote: On Mon, 2004-02-23 at 20:34, Stas Bekman wrote: Richard F. Rebel wrote: Speaking of, does anyone know of a way to tell exactly how many interpreters are running in a given process? Sounds like a job for Apache::Status. Though it will need an API to query the interpreter

[patch] new AuthCookie feature: custom cookie names

2004-02-23 Thread Adi Fairbank
Hi, The attached patch adds a new feature to Apache::AuthCookie to allow customization of the access cookie name. I needed to be able to have a different cookie name than AuthType_AuthName. Includes the following documentation section addition: =item 5 You can optionally specify the name of yo

Re: MPM worker and ithreads

2004-02-23 Thread Richard F. Rebel
On Mon, 2004-02-23 at 20:34, Stas Bekman wrote: > Richard F. Rebel wrote: > > > Speaking of, does anyone know of a way to tell exactly how many > > interpreters are running in a given process? > > Sounds like a job for Apache::Status. Though it will need an API to query the > interpreter pools w

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-23 Thread Morbus Iff
>Hmm. You must have some things inside a BEGIN or that are called from a >"use" that need these libs to be in @INC during the compile phase. Yeah, I'm not entirely sure what it is - I'm not using any BEGIN's myself. >More to the point, I would expect you to have the same problem that you >had wi

Re: MPM worker and ithreads

2004-02-23 Thread Stas Bekman
Richard F. Rebel wrote: Speaking of, does anyone know of a way to tell exactly how many interpreters are running in a given process? Sounds like a job for Apache::Status. Though it will need an API to query the interpreter pools which AFAIK don't exist yet. Or may be it'll better suite Apache::VM

Re: MPM worker and ithreads

2004-02-23 Thread modperl
Somehow a high volume site for your reference: System: P4 1.6G, 1G memory, Linux 7.2, Perl 5.6, customized kernel. Front-end plain apache, and backend mod_perl, + a local mysql database(!). The system currently handles 130K unique IP per day. At the peak time, the proxy serves typically 500 clie

Re: MPM worker and ithreads

2004-02-23 Thread Richard F. Rebel
On Mon, 2004-02-23 at 19:48, Perrin Harkins wrote: > On Mon, 2004-02-23 at 19:37, Richard F. Rebel wrote: > > Eh well, do I get points for making a prod > > system run with mp2 and mpm-worker? > > Certainly. We are all eager for this kind of info. Yay, points. > > Most of our clients are *slow*

[ANNOUNCE] Apache::Test 1.08 RC1

2004-02-23 Thread Stas Bekman
We would like to release Apache::Test 1.08. It includes multiple changes and improvements, therefore we need your help to test it and report any problems you may have noticed. http://apache.org/~stas/Apache-Test-1.08-dev.tar.gz Thanks. Changes so far: Instead of hard-coding listen directive t

Re: MPM worker and ithreads

2004-02-23 Thread Perrin Harkins
On Mon, 2004-02-23 at 19:37, Richard F. Rebel wrote: > Eh well, do I get points for making a prod > system run with mp2 and mpm-worker? Certainly. We are all eager for this kind of info. > Most of our clients are *slow*, so perhaps this is why things seem to > work so well. Actually, if your cl

Re: MPM worker and ithreads

2004-02-23 Thread Richard F. Rebel
On Mon, 2004-02-23 at 18:01, Perrin Harkins wrote: > On Mon, 2004-02-23 at 17:16, Richard F. Rebel wrote: > > Interesting. I just noticed documentation on the web site about these > > directives. Were these docs here about 1 year ago (when I wrote this > > app???). > > Those have been there for

Re: ANNOUNCE: Apache::SMTP

2004-02-23 Thread Stas Bekman
Geoffrey Young wrote: By commenting on Apache::TieBucketBrigade I was trying to reserve that or a similar namespace for the modperl core. So later there would be no collision/confusion. oh, I didn't get that from your comment. anyway, if something like that ever makes it into core it probably oug

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-23 Thread Perrin Harkins
On Sat, 2004-02-21 at 20:43, Morbus Iff wrote: > Well, without the BEGIN, running it as a normal CGI script failed entirely, > with the scripts not being able to find the modules. Hmm. You must have some things inside a BEGIN or that are called from a "use" that need these libs to be in @INC duri

Re: ANNOUNCE: Apache::SMTP

2004-02-23 Thread Geoffrey Young
>> hey, you weren't quite as enthusiastic when I mentioned it ;) >> >> http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=107514358415593&w=2 > > > That's a totally different thing. What I said above is that it's > probably not the most urgent thing to do, if we ever want to get 2.0 > released

Re: MPM worker and ithreads

2004-02-23 Thread Perrin Harkins
On Mon, 2004-02-23 at 17:16, Richard F. Rebel wrote: > Interesting. I just noticed documentation on the web site about these > directives. Were these docs here about 1 year ago (when I wrote this > app???). Those have been there for years. I remember that stuff being in Doug's slides before the

embperl with Apache2 and mod_perl2

2004-02-23 Thread Collin Peters
I am new to the scene and am trying to get embperl to run with Apache2 and mod_perl2 on Windows XP (w/ activestate perl 5.8). I found the following posts: http://www.gossamer-threads.com/archive/mod_perl_C1/embperl_F6/how_to_install_Embperl_with_Apache2_P50329/ http://www.gossamer-threads.com/ar

Re: ANNOUNCE: Apache::SMTP

2004-02-23 Thread Stas Bekman
Stas Bekman wrote: [...] I'm having a little difficulty figuring out how to create request which isn't HTTP. I'll move TestTieBucketBrigade and rerelease just as soon as I figure out how to make Apache::TestRequest do what I want. See: http://perl.apache.org/docs/2.0/user/handlers/http.html#Pe

Re: ANNOUNCE: Apache::SMTP

2004-02-23 Thread Stas Bekman
mock wrote: On Mon, Feb 23, 2004 at 11:27:33AM -0800, Stas Bekman wrote: Cool. It looks nice, but you shouldn't have rushed to release things on CPAN, IMHO. Why taking over the Apache::SMTP namespace if you don't implement a full SMTP protocol? It's usually a good idea to post a proposal here s

Re: ANNOUNCE: Apache::SMTP

2004-02-23 Thread Stas Bekman
Geoffrey Young wrote: As for Apache::TieBucketBrigade, it's probably a good idea to make it a part of the mp2 core and implement it in C. hey, you weren't quite as enthusiastic when I mentioned it ;) http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=107514358415593&w=2 That's a totally diffe

Re: MPM worker and ithreads

2004-02-23 Thread Richard F. Rebel
On Mon, 2004-02-23 at 16:49, Perrin Harkins wrote: > On Mon, 2004-02-23 at 16:40, Richard F. Rebel wrote: > > Umm, maybe we are talking about different things. If I run my > > application with 500+ httpd's in the process list using prefork, it uses > > a lot more memory than running 10 httpds with

Re: ANNOUNCE: Apache::SMTP

2004-02-23 Thread Geoffrey Young
>> Note that it uses >> Apache::TieBucketBrigade, which is my attempt at making bucket >> brigades look >> like IO::Handles. heh, I started APR::TieBrigade (actually APR::TieBrigadePerl and APR::TieBrigadeC) a while ago but haven't quite finished them yet. > As for Apache::TieBucketBrigade, it'

Re: MPM worker and ithreads

2004-02-23 Thread Nigel Hamilton
> > Umm, maybe we are talking about different things. If I run my > application with 500+ httpd's in the process list using prefork, it uses > a lot more memory than running 10 httpds with 64 threads each using > worker. It also gets worse over time (as shared pages get altered). > Hi Richard,

Re: MPM worker and ithreads

2004-02-23 Thread Perrin Harkins
On Mon, 2004-02-23 at 16:40, Richard F. Rebel wrote: > Umm, maybe we are talking about different things. If I run my > application with 500+ httpd's in the process list using prefork, it uses > a lot more memory than running 10 httpds with 64 threads each using > worker. It also gets worse over t

Re: MPM worker and ithreads

2004-02-23 Thread Richard F. Rebel
On Mon, 2004-02-23 at 16:04, Perrin Harkins wrote: > On Mon, 2004-02-23 at 10:03, Richard F. Rebel wrote: > > I am using ap2 + mp2 with the worker mpm and ithreads to serve about 12 > > million dynamically generated pages per day. This includes RPC calls > > via HTTP and database queries. I am cu

Re: ANNOUNCE: Apache::SMTP

2004-02-23 Thread mock
On Mon, Feb 23, 2004 at 11:27:33AM -0800, Stas Bekman wrote: > Cool. It looks nice, but you shouldn't have rushed to release things on > CPAN, IMHO. > > Why taking over the Apache::SMTP namespace if you don't implement a full > SMTP protocol? It's usually a good idea to post a proposal here so w

Re: MPM worker and ithreads

2004-02-23 Thread Perrin Harkins
On Mon, 2004-02-23 at 10:03, Richard F. Rebel wrote: > I am using ap2 + mp2 with the worker mpm and ithreads to serve about 12 > million dynamically generated pages per day. This includes RPC calls > via HTTP and database queries. I am currently experimenting with > creating pools of threads insi

Serving specific files with some authentication

2004-02-23 Thread Sasan Dashtinezhad
Hi guys, My question is more site-development related. What I plan to do is to distribute tasks to clients which will connect to the Web server. Jobs are defined in files, residing on the server, and clients have to be somehow authenticated (nothing really serious, they just need to be privous

Re: ANNOUNCE: Apache::SMTP

2004-02-23 Thread Stas Bekman
mock wrote: A while ago I attended an interesting talk by Stas at the Vancouver pm. The idea of building an SMTP server using mod_perl was mentioned and the task kind of appealed to me, so here's my first attempt at it. Note that it uses Apache::TieBucketBrigade, which is my attempt at making buc

Re: MPM worker and ithreads

2004-02-23 Thread Richard F. Rebel
On Mon, 2004-02-23 at 14:05, Stas Bekman wrote: > Ged Haywood wrote: > > > > I see your experience with the -er- people at P5P was similar to mine. > > That's very untrue, guys. p5p cares a lot for mod_perl and helps a lot to fix > things so that mod_perl will be happy. Not once a major release

Re: MPM worker and ithreads

2004-02-23 Thread Stas Bekman
Richard F. Rebel wrote: Hello, I am using ap2 + mp2 with the worker mpm and ithreads to serve about 12 million dynamically generated pages per day. This includes RPC calls via HTTP and database queries. I am currently experimenting with creating pools of threads inside the perl interpreter for h

Re: MPM worker and ithreads

2004-02-23 Thread Stas Bekman
Ged Haywood wrote: Hi there, On Mon, 23 Feb 2004, Richard F. Rebel wrote: I am using ap2 + mp2 with the worker mpm and ithreads to serve about 12 million dynamically generated pages per day. ... expense ... performance ... bugs ... ithreads ... snots on P5P Thanks very much for that report, it

Re: [mp2] Problem w/Set-Cookie header and Internet Explorer

2004-02-23 Thread Larry Leszczynski
Hi Scott - > when I connect with Internet Explorer (6, on XP) I don't seem to be > getting the Set-Cookie headers (I've turned on "prompt" for cookies, and > deleted the entire list of "allowed" sites). Other headers, like the > Location header, seem to be fine. For certain security settings, IE

Re: [OT-ish] Good name for generic wrapper around Apache::Session?

2004-02-23 Thread Perrin Harkins
I would suggest Apache::SessionGlue (problematic, since it doesn't belong under Apache) or CGI::SessionGlue. If you plan to expand it later to offer use of CGI::Session, or a different storage mechanism altogether, then the latter would be better. - Perrin -- Report problems: http://perl.apach

ap2+ mp2 with FreeBSD

2004-02-23 Thread Stefan Cars
Hi! I got alot of good input on my question regarding ap2+mp2+worker now I have some questions on performance and problems using ap2+mp2 with FreeBSD and threads, is there any people that is doing this sucessfully and how is performance compared to Linux ? Kind Regards, Stefan Cars -- Report pr

Re: [OT-ish] Good name for generic wrapper around Apache::Session?

2004-02-23 Thread Ged Haywood
Hi Dave, On Mon, 23 Feb 2004, Dave Rolsky wrote: > On Mon, 23 Feb 2004, Jean-Michel Hiver wrote: > > > Well if you write 'a wrapper around Apache::Session', then I think you > > should call it Apache::Session::Wrapper since that's what you say it is... > > True enough, I guess. But the original

Re: MPM worker and ithreads

2004-02-23 Thread Ged Haywood
Hi there, On Mon, 23 Feb 2004, Richard F. Rebel wrote: > I am using ap2 + mp2 with the worker mpm and ithreads to serve about 12 > million dynamically generated pages per day. ... expense ... performance > ... bugs ... ithreads ... snots on P5P Thanks very much for that report, it's really usefu

Re: [OT-ish] Good name for generic wrapper around Apache::Session?

2004-02-23 Thread Dave Rolsky
On Mon, 23 Feb 2004, Jean-Michel Hiver wrote: > Well if you write 'a wrapper around Apache::Session', then I think you > should call it Apache::Session::Wrapper since that's what you say it is... True enough, I guess. But the original Apache::Session namespace was a mistake, because it's not mod

Re: MPM worker and ithreads

2004-02-23 Thread Richard F. Rebel
Hello, I am using ap2 + mp2 with the worker mpm and ithreads to serve about 12 million dynamically generated pages per day. This includes RPC calls via HTTP and database queries. I am currently experimenting with creating pools of threads inside the perl interpreter for handling communicating wi

Re: [OT-ish] Good name for generic wrapper around Apache::Session?

2004-02-23 Thread Jean-Michel Hiver
Dave Rolsky wrote: I'd like to create a wrapper around Apache::Session that would Well if you write 'a wrapper around Apache::Session', then I think you should call it Apache::Session::Wrapper since that's what you say it is... automatically create the session based on either a query/POST par

ANNOUNCE: Apache::SMTP

2004-02-23 Thread mock
A while ago I attended an interesting talk by Stas at the Vancouver pm. The idea of building an SMTP server using mod_perl was mentioned and the task kind of appealed to me, so here's my first attempt at it. Note that it uses Apache::TieBucketBrigade, which is my attempt at making bucket brigades