www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Tsai <tt...@research.bell-labs.com>
Subject os-windows/3891: NT service has bad performance for client on same machine
Date Fri, 12 Feb 1999 18:43:06 GMT

>Number:         3891
>Category:       os-windows
>Synopsis:       NT service has bad performance for client on same machine
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Feb 12 10:50:01 PST 1999
>Originator:     ttsai@research.bell-labs.com
>Release:        1.3.3 (Win32)
Windows NT4.0 Service Pack 4
Not sure about compiler;  downloaded binary from www.apache.org
Server built:   Oct  7 1998 16:43:20
When I send Apache a request for a large file (ie, 5MB), it normally takes 8-10
seconds when the client and server machines are on the same LAN.  If the client
executes on the same machine as Apache, then the request for the same 5MB file
takes ~1.1 seconds.  However, if Apache is started as an NT service, then the
same client request takes ~90 seconds.  This is also the case if Apache is
started from within a Java program using Runtime.getRuntime().exec("apache").
My client program is written in Java.  The following is the relevant portion of
the client code:
                startTime = System.currentTimeMillis();

                URL url = new URL(request);
                CheckedInputStream in = new
                    CheckedInputStream(url.openStream(), new Adler32());
                while (in.read(buf, 0, BUFSIZE) != -1) {}

                endTime = System.currentTimeMillis();
                totalResponseTime += (endTime - startTime);
            } catch (ConnectException e) {
            } catch (MalformedURLException e) {
            } catch (IOException e) {

[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]

View raw message