You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by M A <ge...@googlemail.com> on 2006/01/14 00:10:10 UTC

Possible BUG --- Tomcat 5.5.15 APR .. page not loading page size approx 14KB

Hi All,

My config ..

tomcat 5.5.15
jdk1.5._06
apr 1.2.2
tomcat-jni 1.1.1
Debian machine ..

server.xml
 <Connector port="80" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               compression="on"
               compressionMinSize="2048"
               noCompressionUserAgents="gozilla, traviata"
               compressableMimeType="text/html,text/xml"
               protocol="org.apache.coyote.http11.Http11AprProtocol"
               connectionTimeout="20000" disableUploadTimeout="true" />

The problem is this, I have a jsp page with will result in about 14KB worth
of HTML..

with compression off .. this page doesnt not load, wget output is shown
below. if the page is static it comes through eventually not so for a jsp
page.
I thought this might be a sendfile bug, so turned that off .. set the value
to -10 in conf/web.xml ..

The page loads perfectly with APR disabled, hence me thinks this is a bug.


FOR THE HTML FILE -------------------------------------------
wget www.mydomain.com/foo.html
--22:32:38--  http://www.mydomain.com:80/foo.html<http://www.mydomain.com/foo.html>
Connecting to www.mydomain.com:80 <http://www.mydomain.com/>... connected!
HTTP request sent, awaiting response... 200 OK
Length: 13,202 [text/html]
0K -> .......... ..                                          [ 97%]
22:32:59 ( 641.20 B/s) - Read error at byte 12824/13202 (No such file or
directory). Retrying.

--22:32:59--  http://www.mydomain.com:80/foo.html<http://www.mydomain.com/foo.html>
  (try: 2) =>
Connecting to www.mydomain.com:80 <http://www.mydomain.com/>... connected!
HTTP request sent, awaiting response... 206 Partial Content
Length: 13,202 (378 to go) [text/html]

    0K -> ,,,,,,,,,, ,,                                          [100%]

22:32:59 (369.14 KB/s) - `foo.html.3' saved [13202/13202]

FOR THE JSP FILE


C:\wget>wget www.mydomain.com/p.jsp?id=4
--22:36:28--  http://www.mydomain.com:80/p.jsp?id=4<http://www.mydomain.com/p.jsp?id=4>
           => `p.jsp@id=4.4' <%60p.jsp@id=4.4'>
Connecting to www.mydomain.com:80 <http://www.mydomain.com/>... connected!
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

    0K -> .......... ..

22:36:48 (639.90 B/s) - Read error at byte 12798 (No such file or
directory).Ret
rying.

--22:36:48--  http://www.mydomain.com:80/p.jsp?id=4
<http://www.mydomain.com/p.jsp?id=4>
  (try: 2) => `p.jsp@id=4.4' <%60p.jsp@id=4.4'>
Connecting to www.mydomain.com:80 <http://www.mydomain.com/>... connected!
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

    0K -> .......... ..

22:37:09 (639.90 B/s) - Read error at byte 12798 (No such file or
directory).Ret
rying.

--22:37:09--  http://www.mydomain.com:80/p.jsp?id=4<http://www.mydomain.com/postanswer.jsp?id=4>
  (try: 3) => `p.jsp@id=4.4' <%60p.jsp@id=4.4'>
Connecting to www.mydomain.com:80 <http://www.mydomain.com/>... connected!
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

    0K -> .......... ..

22:37:29 (639.90 B/s) - Read error at byte 12798 (No such file or
directory).Ret
rying.

--22:37:29--  http://www.mydomain.com:80/p.jsp?id=4<http://www.mydomain.com/postanswer.jsp?id=4>
  (try: 4) => `p.jsp@id=4.4' <%60p.jsp@id=4.4'>
Connecting to www.mydomain.com:80 <http://www.mydomain.com/>... connected!
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

JSP WGET END

From

Mo