| Fast HTTP response header: | Slow HTTP response header (helloworld.html): |
|
|
<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.
<head><title>Test</title></head>
<body>Hello World</body>
</html>
My suspicion goes towards the http header - could a rogue content-length cause this kind of perfromance problem with pound?
/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