Perrin Harkins wrote:
001c01c156c1$d5d0eac0$553dfea9@charlotte">
Unfortunately, I've now noticed that my server is unbearably slow -
setting 'ThreadsPerChild 1' in my httpd.conf made my server slow to a
snails pace (and it really is a pretty quick server on a T1 line
dedicated to it, pretty much).

That's odd. On Win32, mod_perl runs as a single blocking thread. I
wouldn't expect changing that setting to affect anything. Are you sure
you were running your script under Apache::Registry? (Maybe someone who
actually uses Win32 could supply some help here?)
By making 'ThreadsPerChild 1' - the entire server runs as a single thread, mod_perl and any other requests (e.g. images) that come in - this is why the server slows to a snails pace.  I've set up two instances now, one to handle all incoming requests, the other to serve as a backend proxy pass-thru for mod_perl requests.  It seems to be working out fairly well.
001c01c156c1$d5d0eac0$553dfea9@charlotte">
Have I missed something here?  Certainly
this isn't the only way mod_perl can run if it needs to make
IO::Socket::INET connections???

I do my mod_perl development on Linux, so I'm just repeating what others
have posted before. I've never heard of an actual solution for this
problem, just the workaround.
I wonder if this is something that has been addressed in Apache 2.x/mod_perl 2.x ... it'd be nice if it were.
001c01c156c1$d5d0eac0$553dfea9@charlotte">
Please help me out here - I'm truly just a Linux/*BSD guy trying to
get
a poor Win2K box w/ Apache to run the Perl scripts right ...

You would certainly get better performance on Linux or BSD. If you have
to use Win32 and need better performance, you may have to look at other
options like ActiveState's PerlEx.
Yes, I wish it were a Linux/BSD box ... but it isn't and at the moment its not my place to say anything about it.  As for ActiveState's PerlEx - I dunno, doesn't seem like a good solution to me :)
001c01c156c1$d5d0eac0$553dfea9@charlotte">
Thanks for the info, guys.

-Brice

-- WebProjkt, Inc. VP, Director of Internet Technology http://www.webprojkt.com/



Reply via email to