Here I go again!!!

I've done some more testing and found that the slow performace is not limited to jsp's only!

I actually did a wget on the helloworld.jsp... saved the (html) contents as helloworld.html. I then performed a load test on helloworld.html.... and found it to also be VERY slow!

The headers returned from a fast html page (where pound DOMINATES over the apache rewrtie alternative) and the slow header are below:

Fast HTTP response header: Slow HTTP response header (helloworld.html):
  • HTTP/1.1 200 OK
  • Server:
    • Apache-Coyote/1.1
  • ETag:
    • W/"24433-1126065997000"
  • Last-Modified:
    • Wed, 07 Sep 2005 04:06:37 GMT
  • Content-Type:
    • text/html
  • Content-Length:
    • 24433
  • Date:
    • Thu, 08 Sep 2005 02:25:17 GMT
  • HTTP/1.1 200 OK
  • Server:
    • Apache-Coyote/1.1
  • ETag:
    • W/"132-1126144756000"
  • Last-Modified:
    • Thu, 08 Sep 2005 01:59:16 GMT
  • Content-Type:
    • text/html
  • Content-Length:
    • 132
  • Date:
    • Thu, 08 Sep 2005 02:33:21 GMT


The source for the slow html is:
<html>
<head><title>Test</title></head>
<body>Hello World</body>
</html>

Also, when the html is hosted on both Apache and Tomcat as the backend web server, the results is the same. So this does not appear to be an issue regarding Tomcat.

I cant see anything in the header that would cause this to run soooo slow! being able to serve 23/sec of the simple helloworld.html and serving the more complicated, larger and backend service calling html, with a fast response of 173/sec indicates that pound is really not happy about something!!!!

I'm completely out of ideas now and would appreciate anyone who has any ideas.


Thanks for reading,

Andrew




david walters wrote:
 
My suspicion goes towards the http header - could a rogue content-length cause this kind of perfromance problem with pound?

Since  I removed the jsp and replaced it with html, I doubt this is a content-length issue. Plus the problem exists in both Apache and Tomcat webservers.


 
/David

 
On 9/7/05, Andrew Hughes <ahughes@lisasoft.com> wrote:
Hi All,

I'm using pound to balance three workers at the backend... I have noticed that pound is quicker than an apache rewrite balancing in every instance, but one. Images from my application and html pages are delivered between 1.4 and 2.0 times faster! Yay for pound!

However, when I begin hitting backend jsp's the performance of pound slows massively. Im not talking about the actual response... I expect jsp's to be slow... but compared to an apache rewrite pound is dead in the water! Pound is around 70% slower than performing an apache rewrite, and normally its 1.4 to 2.0 times faster!!! This is grinding my application into the ground and I really need to fix things.

I noticed that the jsp application server Tomcat 5.5 was setting a cookie, so I turned this off. It made no difference.

I made the most simple of jsp's just to say "Hello World". This has NO session access and still runs much faster with Apache ReWrite balancing. (code below)

<%@ page contentType = "text/html;charset=windows-1252"%>
<%@ page import = "java.net.*"%>
<%@ page import = "javax.servlet.* " %>
<html>
    <head><title>TerraMap</title></head>
    <body>Hello World from: <%=InetAddress.getLocalHost().getHostName()%></body>
</html>



Further more, the html that is delivered by the jsp... I saved the html source in a html file, and performed loadtesting on the file. This sent me back to being twice as fast as an apache rewrite balance. So my problems dont appear to be anything to do with the html content I am returning, but possibly in the jsp's http transmission....

My pound.conf:

ListenHTTP 192.168.83.135,81
CheckURL 0
LogLevel 2

UrlGroup "/serviceOne/.*"
Session IP 0
LogLevel 2
BackEnd huey.localdomain.com.au,8080,1
BackEnd louie.localdomain.com.au,8080,1
BackEnd dewey.localdomain.com.au,8080,1
EndGroup

UrlGroup "/serviceTwo/.*"
Session IP 0
BackEnd huey.localdomain.com.au,80,1
BackEnd louie.localdomain.com.au,80,1
BackEnd dewey.localdomain.com.au,80,1
EndGroup




If anyone has any idea why this is occuring I would really appreciate some advice!


Many thanks in advance,

Andrew
-- To unsubscribe send an email with subject 'unsubscribe' to pound@apsis.ch. Please contact roseg@apsis.ch for questions. http://192.168.1.2:8080/Apsis/pound/pound_list/archive/2005/2005-09/1126079861000