On 27/11/2010 14:22, Suchada Pakapongpan wrote:
> 
> Hi,
> 
> In my projet has 3 webservers(Tomcat-httpd-integration:mod_proxy_ajp) with 
> LVS loadbalancer(less connection).
> 
> In the first case: All 3 webservers start to serve http load with LVS, it's 
> ok no errors.
> But in the case: one webserver serves http workload before then I start 
> another 2 servers during load test I got the connection reset  or 5xx status 
> code errors. 

This description doesn't tell me anything other than: you get errors
when you have some servers which are not running.  Perhaps you can
provide more meaningful information?


> Or when I just change weigth from 0 to 1 of the realserver that already 
> started(for sure that tomcat/httpd working), I also get connection reset 
> errors.

This isn't enough information to help you either: where is the reset
occurring?  LVS, HTTPD, or Tomcat?


> what is the cause of that errors and how to resolve that? 
> Is it my config of Tomcat-httpd-integration(mod_proxy_ajp) problem?
> 
> I use Centos5.4, tomcat5-5.5.23, Apache2.2.3 (by yum install httpd 
> httpd-devel tomcat tomcat5-webapps tomcat5-admin-webapps)

That's an old version of Tomcat.  Try using the latest version.  Or
indeed 6.0.

That's, potentially, an old version of Apache HTTPD.  If you are indeed
running 2.2.3 then it was the first version in which mod_proxy_ajp was
released and it had bugs.


p

> my /etc/httpd/conf.d/proxy_ajp.conf flie here
> LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
> ProxyPass /tomcat/ http://127.0.0.1:8080/
> 
> my /var/lib/tomcat5/webapps/ROOT/WEB-INF/web.xml
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
> version="2.4">
> <servlet>
> <servlet-name>DemoServlet</servlet-name>
> <servlet-class>DemoServlet</servlet-class>
> </servlet>
> </web-app>
> 
> Thank in advance,
> Suchada
>                                         

Attachment: 0x62590808.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to