You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tom <80...@gmail.com> on 2007/07/25 13:04:39 UTC

Half rendered pages with mod_jk and libtcnative

Hello,

We've been having problems where half complete pages are being returned from
an Apache2-->mod_jk-->Tomcat setup when the native Apache Tomcat libraries
are used.

The problem is easily reproducible with large pages where the content is
stopped at random points. Sometimes mod_jk detects a problem a reports:

[Wed Jul 25 11:18:38 2007] [21823:56208] [error]
ajp_get_reply::jk_ajp_common.c (1618): (worker1) Tomcat is down or network
problems. Part of the response has already been sent to the client

In this situation we end up with a page within a page as mod_jk retries the
request. More often than not though there are no problems logged.

The Tomcat and Apache2 servers are both running on the same machine. I've
recreated an environment with pretty much out-of-the-box settings using:

Apache (mpm-worker) 2.2.4
mod_jk 1.2.23
libapr 1.2.7
Tomcat 5.5.23 (libtcnative compiled from same archive)
Java 1.5.0_09

Making a request directly to the http connector with native libraries works.
Disabling the native libraries is our current workaround.

I'm not sure how I might debug this issue further so would welcome any help.

Tom

RE: Half rendered pages with mod_jk and libtcnative

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: HunterR [mailto:hunter.ritchie@fidelissecurity.com] 
> Subject: Re: Half rendered pages with mod_jk and libtcnative
> 
> 
> Where I could use a little help is... what is the official 
> source repository for tomcat-native?

http://archive.apache.org/dist/tomcat/tomcat-connectors/native/

If you're running on Windows, you can get pre-compiled binaries from:
http://tomcat.heanet.ie/native/

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Half rendered pages with mod_jk and libtcnative

Posted by HunterR <hu...@fidelissecurity.com>.
I found this bug also, and after some crawling around, found an apache forum
that said it was fixed as of tc-native 1.1.7

Where I could use a little help is... what is the official source repository
for tomcat-native?  I couldn't find an official download site thru
tomcat.apache.org  

Thanks!


Tom A wrote:
> 
> On 7/25/07, Rainer Jung <ra...@kippdata.de> wrote:
> 
>> Concerning tc-native: you might try version 1.1.10, which is available
>> as a separate download. Are there aditional log messages in the jk log?
> 
> 
> There were no additional logs and in most cases was failing silently.
> 
> I've just tried out 1.1.10 and it seems to have fixed the problem. Many
> thanks for pointing out that a separate release exists.
> 
> Regards,
> 
> Tom
> 
> 
> 
>>
>> Tom wrote:
>> > Hello,
>> >
>> > We've been having problems where half complete pages are being returned
>> > from
>> > an Apache2-->mod_jk-->Tomcat setup when the native Apache Tomcat
>> libraries
>> > are used.
>> >
>> > The problem is easily reproducible with large pages where the content
>> is
>> > stopped at random points. Sometimes mod_jk detects a problem a reports:
>> >
>> > [Wed Jul 25 11:18:38 2007] [21823:56208] [error]
>> > ajp_get_reply::jk_ajp_common.c (1618): (worker1) Tomcat is down or
>> network
>> > problems. Part of the response has already been sent to the client
>> >
>> > In this situation we end up with a page within a page as mod_jk retries
>> the
>> > request. More often than not though there are no problems logged.
>> >
>> > The Tomcat and Apache2 servers are both running on the same machine.
>> I've
>> > recreated an environment with pretty much out-of-the-box settings
>> using:
>> >
>> > Apache (mpm-worker) 2.2.4
>> > mod_jk 1.2.23
>> > libapr 1.2.7
>> > Tomcat 5.5.23 (libtcnative compiled from same archive)
>> > Java 1.5.0_09
>> >
>> > Making a request directly to the http connector with native libraries
>> > works.
>> > Disabling the native libraries is our current workaround.
>> >
>> > I'm not sure how I might debug this issue further so would welcome any
>> > help.
>> >
>> > Tom
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Half-rendered-pages-with-mod_jk-and-libtcnative-tf4141434.html#a12624074
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Half rendered pages with mod_jk and libtcnative

Posted by Tom <80...@gmail.com>.
On 7/25/07, Rainer Jung <ra...@kippdata.de> wrote:

> Concerning tc-native: you might try version 1.1.10, which is available
> as a separate download. Are there aditional log messages in the jk log?


There were no additional logs and in most cases was failing silently.

I've just tried out 1.1.10 and it seems to have fixed the problem. Many
thanks for pointing out that a separate release exists.

Regards,

Tom



>
> Tom wrote:
> > Hello,
> >
> > We've been having problems where half complete pages are being returned
> > from
> > an Apache2-->mod_jk-->Tomcat setup when the native Apache Tomcat
> libraries
> > are used.
> >
> > The problem is easily reproducible with large pages where the content is
> > stopped at random points. Sometimes mod_jk detects a problem a reports:
> >
> > [Wed Jul 25 11:18:38 2007] [21823:56208] [error]
> > ajp_get_reply::jk_ajp_common.c (1618): (worker1) Tomcat is down or
> network
> > problems. Part of the response has already been sent to the client
> >
> > In this situation we end up with a page within a page as mod_jk retries
> the
> > request. More often than not though there are no problems logged.
> >
> > The Tomcat and Apache2 servers are both running on the same machine.
> I've
> > recreated an environment with pretty much out-of-the-box settings using:
> >
> > Apache (mpm-worker) 2.2.4
> > mod_jk 1.2.23
> > libapr 1.2.7
> > Tomcat 5.5.23 (libtcnative compiled from same archive)
> > Java 1.5.0_09
> >
> > Making a request directly to the http connector with native libraries
> > works.
> > Disabling the native libraries is our current workaround.
> >
> > I'm not sure how I might debug this issue further so would welcome any
> > help.
> >
> > Tom
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Half rendered pages with mod_jk and libtcnative

Posted by Rainer Jung <ra...@kippdata.de>.
Concerning the nested pages: have a look at the worker attribute 
recovery_options on

http://tomcat.apache.org/connectors-doc/reference/workers.html

You might like to set this to "3" or "7".

Concerning tc-native: you might try version 1.1.10, which is available 
as a separate download. Are there aditional log messages in the jk log?

Regards,

Rainer

Tom wrote:
> Hello,
> 
> We've been having problems where half complete pages are being returned 
> from
> an Apache2-->mod_jk-->Tomcat setup when the native Apache Tomcat libraries
> are used.
> 
> The problem is easily reproducible with large pages where the content is
> stopped at random points. Sometimes mod_jk detects a problem a reports:
> 
> [Wed Jul 25 11:18:38 2007] [21823:56208] [error]
> ajp_get_reply::jk_ajp_common.c (1618): (worker1) Tomcat is down or network
> problems. Part of the response has already been sent to the client
> 
> In this situation we end up with a page within a page as mod_jk retries the
> request. More often than not though there are no problems logged.
> 
> The Tomcat and Apache2 servers are both running on the same machine. I've
> recreated an environment with pretty much out-of-the-box settings using:
> 
> Apache (mpm-worker) 2.2.4
> mod_jk 1.2.23
> libapr 1.2.7
> Tomcat 5.5.23 (libtcnative compiled from same archive)
> Java 1.5.0_09
> 
> Making a request directly to the http connector with native libraries 
> works.
> Disabling the native libraries is our current workaround.
> 
> I'm not sure how I might debug this issue further so would welcome any 
> help.
> 
> Tom

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org