Re: Speed of downloading problem.

2002-02-05 Thread Andreas J. Koenig

 On Mon, 4 Feb 2002 08:37:52 -0600 , Purcell, Scott [EMAIL PROTECTED] 
said:

   The test is taking a 50mb file and placing it in the doc root of the IIS and
   Apache/htdocs. Then just having a href link pointing to it. We have ruled
   out the firewall and any networking.

I know nothing about NT, but I'd play with the SendBufferSize config
variable.

-- 
andreas



RE: Speed of downloading problem.

2002-02-05 Thread Purcell, Scott

Thanks Perrin,
Here is the part of the httpd.conf that I believe you wanted to see.

#
# Apache on Win32 always creates one child process to handle requests.  If
it
# dies, another child process is created automatically.  Within the child
# process multiple threads handle incoming requests.  The next two
# directives control the behaviour of the threads and processes.
#

#
# MaxRequestsPerChild: the number of requests each child process is
# allowed to process before the child dies.  The child will exit so
# as to avoid problems after prolonged use when Apache (and maybe the
# libraries it uses) leak memory or other resources.  On most systems, this
# isn't really needed, but a few (such as Solaris) do have notable leaks
# in the libraries.  For Win32, set this value to zero (unlimited)
# unless advised otherwise.
#
# NOTE: This value does not include keepalive requests after the initial
#   request per connection. For example, if a child process handles
#   an initial request and 10 subsequent keptalive requests, it
#   would only count as 1 request towards this limit.
#
MaxRequestsPerChild 0

#
# Number of concurrent threads (i.e., requests) the server will allow.
# Set this value according to the responsiveness of the server (more
# requests active at once means they're all handled more slowly) and
# the amount of system resources you'll allow the server to consume.
#

#ThreadsPerChild 1 
# broke the IO socket

#Should be on 50 like below
ThreadsPerChild 50

-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 10:10 AM
To: Purcell, Scott; [EMAIL PROTECTED]
Subject: Re: Speed of downloading problem. 


 I have Apache/mod_perl installed on a NT box, and I am allowing customers
to
 do downloads of High-Resolution assets. My problem is the speed of
downloads
 is about 1/3 slower than the same box running IIS.

Can you post your httpd.conf?  Or at least the parts of it about threads and
processes?

It is possible that Apache is just not that fast on NT.  NT support is
experimental in the 1.3 series.

 One thought here was to go to 2.0

You can't run mod_perl 1.x on Apache 2.0.

Another thing you could try is having multiple servers.  One could handle
static requests and proxy the dynamic ones to mod_perl.  I don't know if IIS
knows how to do this or not, but there's probably something available for NT
that does it.

- Perrin



Re: Speed of downloading problem.

2002-02-05 Thread Perrin Harkins

 Here is the part of the httpd.conf that I believe you wanted to see.

Hmmm... I don't see anything wrong with this.  It seems like the problem is
simply that Apache 1.3.x is not as fast as IIS at sending static files on
NT.  Not too surprising.  I've been told that Apache 2 is significantly
better about this, but that won't help you right now.

If this is a big problem for your application, my advice would be to either
use a proxying system so that IIS (or something else) can send the static
files and mod_perl can handle the dynamic stuff, or look at mod_perl
alternatives for Win32 like PerlEx and FastCGI.

- Perrin




Re: Speed of downloading problem.

2002-02-04 Thread Perrin Harkins

 I have Apache/mod_perl installed on a NT box, and I am allowing customers
to
 do downloads of High-Resolution assets. My problem is the speed of
downloads
 is about 1/3 slower than the same box running IIS.

Can you post your httpd.conf?  Or at least the parts of it about threads and
processes?

It is possible that Apache is just not that fast on NT.  NT support is
experimental in the 1.3 series.

 One thought here was to go to 2.0

You can't run mod_perl 1.x on Apache 2.0.

Another thing you could try is having multiple servers.  One could handle
static requests and proxy the dynamic ones to mod_perl.  I don't know if IIS
knows how to do this or not, but there's probably something available for NT
that does it.

- Perrin




Re: Speed of downloading problem.

2002-02-04 Thread Ron Savage

Scott

See below.

Cheers
Ron Savage
[EMAIL PROTECTED]
http://savage.net.au/index.html

 Does anyone have any clues what to try? One thought here was to go to 2.0,
 but we don't know if that will screw up the mod-perl that is built for the
 Apache 1.3.20 and Ron Savages mod_perl binary.

I'm clueless of course :-).

But just for the record, I helped document this pre-built binary, but Randy Kobes 
deserves the credit.

Start here: http://savage.net.au/Perl.html#Configuring-Apache