You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Duncan Houston <ho...@mweb.co.za> on 2004/08/17 17:18:36 UTC
Tomcat and Apache by Proxy http connections slow but https fast
Hi
Background: Firstly I should state that I am running Tomcat 4.0.1 with JBoss
2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All of this is
running on RedHat. Requests are passed through to Tomcat by proxy, using
rewrite rules. I know, I should be running a newer version of JBoss &
Tomcat, and should be using mod_jk, but haven't had the time to upgrade
quite yet.
The problem: Connections to webapps run on Tomcat via http are slow over the
internet. It appears that establishing a new connection (for page, images on
page etc) takes time - once established (seconds later) the data gets
transferred quickly. But, interestingly, connecting via https is fast. My
test server, when hit on a test intranet, is very quick to respond.
Any ideas? I have set enableLookups="false", for what that is worth.
Help would be much appreciated.
Thanks
Duncan
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Tomcat and Apache by Proxy http connections slow but https fast
Posted by Duncan Houston <ho...@mweb.co.za>.
Thanks for the help - problem solved!
Was running a box with LVS, and running DNS. I don't think all the zone
files were there, but stopping named worked like a charm - all webapps fast!
What a stupid error (on my part).
> -----Original Message-----
> From: Tim Funk [mailto:funkman@joedog.org]
> Sent: 18 August 2004 01:13
> To: Tomcat Users List
> Subject: Re: Tomcat and Apache by Proxy http connections slow but https
> fast
>
>
> AFAIK - mod_proxy does not cache DNS lookups. It is looked up on every
> request. So a slow lookup could be your problem.
>
> -Tim
>
> Duncan Houston wrote:
> > Sorry folks, more info (hope somebody will has experienced
> these problems as
> > well!).
> >
> > I can hit 2 JSPs in different webapps, both proxied behind
> Apache, both on
> > HTTP. The one is fast, the other slow. What could be causing
> this? Apache
> > config? DNS lookup issues?
> >
> >
> >>-----Original Message-----
> >>From: Duncan Houston [mailto:houstond@mweb.co.za]
> >>Sent: 17 August 2004 23:28
> >>To: Tomcat Users List
> >>Subject: RE: Tomcat and Apache by Proxy http connections slow but https
> >>fast
> >>
> >>
> >>OK, I made a mistake there (sorry). The issue does still seem to be that
> >>connecting to a webapp over SSL is faster than connecting to
> >>another webapp
> >>over non-SSL, both running in the same Tomcat (JBoss) instance
> and proxied
> >>behind Apache.
> >>
> >>Any ideas why the SSL version would be fast and the normal
> (HTTP) version
> >>not?
> >>
> >>
> >>>-----Original Message-----
> >>>From: Duncan Houston [mailto:houstond@mweb.co.za]
> >>>Sent: 17 August 2004 18:03
> >>>To: Tomcat Users List
> >>>Subject: RE: Tomcat and Apache by Proxy http connections slow but https
> >>>fast
> >>>
> >>>
> >>>Some more info. The problem does not seem to be with HTTP vs HTTPS (was
> >>>testing app A on HTTPS, app B on HTTP B - problem seems that A
> is faster
> >>>than B whether on HTTP or HTTPS).
> >>>
> >>>I have a number of .war files deployed to JBoss's /deploy directory
> >>>(automatic deployment). Let's call them A and B, and let's say
> >>
> >>each has an
> >>
> >>>image folder. Accessing an image from inside A's folder is fast, but
> >>>accessing an image from B's folder is slow.
> >>>
> >>>Proxy setup appears to be the same for both apps.
> >>>
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: Duncan Houston [mailto:houstond@mweb.co.za]
> >>>>Sent: 17 August 2004 17:19
> >>>>To: tomcat-user@jakarta.apache.org
> >>>>Subject: Tomcat and Apache by Proxy http connections slow but
> >>
> >>https fast
> >>
> >>>>
> >>>>Hi
> >>>>
> >>>>Background: Firstly I should state that I am running Tomcat 4.0.1
> >>>>with JBoss
> >>>>2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All
> >>>
> >>>of this is
> >>>
> >>>>running on RedHat. Requests are passed through to Tomcat by
> >>
> >>proxy, using
> >>
> >>>>rewrite rules. I know, I should be running a newer version of JBoss &
> >>>>Tomcat, and should be using mod_jk, but haven't had the time
> >>
> >>to upgrade
> >>
> >>>>quite yet.
> >>>>
> >>>>The problem: Connections to webapps run on Tomcat via http are
> >>>>slow over the
> >>>>internet. It appears that establishing a new connection (for
> >>>>page, images on
> >>>>page etc) takes time - once established (seconds later) the data gets
> >>>>transferred quickly. But, interestingly, connecting via https
> >>>
> >>>is fast. My
> >>>
> >>>>test server, when hit on a test intranet, is very quick to respond.
> >>>>
> >>>>Any ideas? I have set enableLookups="false", for what that is worth.
> >>>>
> >>>>Help would be much appreciated.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat and Apache by Proxy http connections slow but https fast
Posted by Tim Funk <fu...@joedog.org>.
AFAIK - mod_proxy does not cache DNS lookups. It is looked up on every
request. So a slow lookup could be your problem.
-Tim
Duncan Houston wrote:
> Sorry folks, more info (hope somebody will has experienced these problems as
> well!).
>
> I can hit 2 JSPs in different webapps, both proxied behind Apache, both on
> HTTP. The one is fast, the other slow. What could be causing this? Apache
> config? DNS lookup issues?
>
>
>>-----Original Message-----
>>From: Duncan Houston [mailto:houstond@mweb.co.za]
>>Sent: 17 August 2004 23:28
>>To: Tomcat Users List
>>Subject: RE: Tomcat and Apache by Proxy http connections slow but https
>>fast
>>
>>
>>OK, I made a mistake there (sorry). The issue does still seem to be that
>>connecting to a webapp over SSL is faster than connecting to
>>another webapp
>>over non-SSL, both running in the same Tomcat (JBoss) instance and proxied
>>behind Apache.
>>
>>Any ideas why the SSL version would be fast and the normal (HTTP) version
>>not?
>>
>>
>>>-----Original Message-----
>>>From: Duncan Houston [mailto:houstond@mweb.co.za]
>>>Sent: 17 August 2004 18:03
>>>To: Tomcat Users List
>>>Subject: RE: Tomcat and Apache by Proxy http connections slow but https
>>>fast
>>>
>>>
>>>Some more info. The problem does not seem to be with HTTP vs HTTPS (was
>>>testing app A on HTTPS, app B on HTTP B - problem seems that A is faster
>>>than B whether on HTTP or HTTPS).
>>>
>>>I have a number of .war files deployed to JBoss's /deploy directory
>>>(automatic deployment). Let's call them A and B, and let's say
>>
>>each has an
>>
>>>image folder. Accessing an image from inside A's folder is fast, but
>>>accessing an image from B's folder is slow.
>>>
>>>Proxy setup appears to be the same for both apps.
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: Duncan Houston [mailto:houstond@mweb.co.za]
>>>>Sent: 17 August 2004 17:19
>>>>To: tomcat-user@jakarta.apache.org
>>>>Subject: Tomcat and Apache by Proxy http connections slow but
>>
>>https fast
>>
>>>>
>>>>Hi
>>>>
>>>>Background: Firstly I should state that I am running Tomcat 4.0.1
>>>>with JBoss
>>>>2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All
>>>
>>>of this is
>>>
>>>>running on RedHat. Requests are passed through to Tomcat by
>>
>>proxy, using
>>
>>>>rewrite rules. I know, I should be running a newer version of JBoss &
>>>>Tomcat, and should be using mod_jk, but haven't had the time
>>
>>to upgrade
>>
>>>>quite yet.
>>>>
>>>>The problem: Connections to webapps run on Tomcat via http are
>>>>slow over the
>>>>internet. It appears that establishing a new connection (for
>>>>page, images on
>>>>page etc) takes time - once established (seconds later) the data gets
>>>>transferred quickly. But, interestingly, connecting via https
>>>
>>>is fast. My
>>>
>>>>test server, when hit on a test intranet, is very quick to respond.
>>>>
>>>>Any ideas? I have set enableLookups="false", for what that is worth.
>>>>
>>>>Help would be much appreciated.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Tomcat and Apache by Proxy http connections slow but https fast
Posted by Duncan Houston <ho...@mweb.co.za>.
Sorry folks, more info (hope somebody will has experienced these problems as
well!).
I can hit 2 JSPs in different webapps, both proxied behind Apache, both on
HTTP. The one is fast, the other slow. What could be causing this? Apache
config? DNS lookup issues?
> -----Original Message-----
> From: Duncan Houston [mailto:houstond@mweb.co.za]
> Sent: 17 August 2004 23:28
> To: Tomcat Users List
> Subject: RE: Tomcat and Apache by Proxy http connections slow but https
> fast
>
>
> OK, I made a mistake there (sorry). The issue does still seem to be that
> connecting to a webapp over SSL is faster than connecting to
> another webapp
> over non-SSL, both running in the same Tomcat (JBoss) instance and proxied
> behind Apache.
>
> Any ideas why the SSL version would be fast and the normal (HTTP) version
> not?
>
> > -----Original Message-----
> > From: Duncan Houston [mailto:houstond@mweb.co.za]
> > Sent: 17 August 2004 18:03
> > To: Tomcat Users List
> > Subject: RE: Tomcat and Apache by Proxy http connections slow but https
> > fast
> >
> >
> > Some more info. The problem does not seem to be with HTTP vs HTTPS (was
> > testing app A on HTTPS, app B on HTTP B - problem seems that A is faster
> > than B whether on HTTP or HTTPS).
> >
> > I have a number of .war files deployed to JBoss's /deploy directory
> > (automatic deployment). Let's call them A and B, and let's say
> each has an
> > image folder. Accessing an image from inside A's folder is fast, but
> > accessing an image from B's folder is slow.
> >
> > Proxy setup appears to be the same for both apps.
> >
> >
> > > -----Original Message-----
> > > From: Duncan Houston [mailto:houstond@mweb.co.za]
> > > Sent: 17 August 2004 17:19
> > > To: tomcat-user@jakarta.apache.org
> > > Subject: Tomcat and Apache by Proxy http connections slow but
> https fast
> > >
> > >
> > > Hi
> > >
> > > Background: Firstly I should state that I am running Tomcat 4.0.1
> > > with JBoss
> > > 2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All
> > of this is
> > > running on RedHat. Requests are passed through to Tomcat by
> proxy, using
> > > rewrite rules. I know, I should be running a newer version of JBoss &
> > > Tomcat, and should be using mod_jk, but haven't had the time
> to upgrade
> > > quite yet.
> > >
> > > The problem: Connections to webapps run on Tomcat via http are
> > > slow over the
> > > internet. It appears that establishing a new connection (for
> > > page, images on
> > > page etc) takes time - once established (seconds later) the data gets
> > > transferred quickly. But, interestingly, connecting via https
> > is fast. My
> > > test server, when hit on a test intranet, is very quick to respond.
> > >
> > > Any ideas? I have set enableLookups="false", for what that is worth.
> > >
> > > Help would be much appreciated.
> > >
> > > Thanks
> > > Duncan
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Tomcat and Apache by Proxy http connections slow but https fast
Posted by Duncan Houston <ho...@mweb.co.za>.
OK, I made a mistake there (sorry). The issue does still seem to be that
connecting to a webapp over SSL is faster than connecting to another webapp
over non-SSL, both running in the same Tomcat (JBoss) instance and proxied
behind Apache.
Any ideas why the SSL version would be fast and the normal (HTTP) version
not?
> -----Original Message-----
> From: Duncan Houston [mailto:houstond@mweb.co.za]
> Sent: 17 August 2004 18:03
> To: Tomcat Users List
> Subject: RE: Tomcat and Apache by Proxy http connections slow but https
> fast
>
>
> Some more info. The problem does not seem to be with HTTP vs HTTPS (was
> testing app A on HTTPS, app B on HTTP B - problem seems that A is faster
> than B whether on HTTP or HTTPS).
>
> I have a number of .war files deployed to JBoss's /deploy directory
> (automatic deployment). Let's call them A and B, and let's say each has an
> image folder. Accessing an image from inside A's folder is fast, but
> accessing an image from B's folder is slow.
>
> Proxy setup appears to be the same for both apps.
>
>
> > -----Original Message-----
> > From: Duncan Houston [mailto:houstond@mweb.co.za]
> > Sent: 17 August 2004 17:19
> > To: tomcat-user@jakarta.apache.org
> > Subject: Tomcat and Apache by Proxy http connections slow but https fast
> >
> >
> > Hi
> >
> > Background: Firstly I should state that I am running Tomcat 4.0.1
> > with JBoss
> > 2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All
> of this is
> > running on RedHat. Requests are passed through to Tomcat by proxy, using
> > rewrite rules. I know, I should be running a newer version of JBoss &
> > Tomcat, and should be using mod_jk, but haven't had the time to upgrade
> > quite yet.
> >
> > The problem: Connections to webapps run on Tomcat via http are
> > slow over the
> > internet. It appears that establishing a new connection (for
> > page, images on
> > page etc) takes time - once established (seconds later) the data gets
> > transferred quickly. But, interestingly, connecting via https
> is fast. My
> > test server, when hit on a test intranet, is very quick to respond.
> >
> > Any ideas? I have set enableLookups="false", for what that is worth.
> >
> > Help would be much appreciated.
> >
> > Thanks
> > Duncan
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Tomcat and Apache by Proxy http connections slow but https fast
Posted by Duncan Houston <ho...@mweb.co.za>.
Some more info. The problem does not seem to be with HTTP vs HTTPS (was
testing app A on HTTPS, app B on HTTP B - problem seems that A is faster
than B whether on HTTP or HTTPS).
I have a number of .war files deployed to JBoss's /deploy directory
(automatic deployment). Let's call them A and B, and let's say each has an
image folder. Accessing an image from inside A's folder is fast, but
accessing an image from B's folder is slow.
Proxy setup appears to be the same for both apps.
> -----Original Message-----
> From: Duncan Houston [mailto:houstond@mweb.co.za]
> Sent: 17 August 2004 17:19
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat and Apache by Proxy http connections slow but https fast
>
>
> Hi
>
> Background: Firstly I should state that I am running Tomcat 4.0.1
> with JBoss
> 2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All of this is
> running on RedHat. Requests are passed through to Tomcat by proxy, using
> rewrite rules. I know, I should be running a newer version of JBoss &
> Tomcat, and should be using mod_jk, but haven't had the time to upgrade
> quite yet.
>
> The problem: Connections to webapps run on Tomcat via http are
> slow over the
> internet. It appears that establishing a new connection (for
> page, images on
> page etc) takes time - once established (seconds later) the data gets
> transferred quickly. But, interestingly, connecting via https is fast. My
> test server, when hit on a test intranet, is very quick to respond.
>
> Any ideas? I have set enableLookups="false", for what that is worth.
>
> Help would be much appreciated.
>
> Thanks
> Duncan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org