You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Suchada Pakapongpan <co...@hotmail.com> on 2010/11/27 15:22:40 UTC

Got error when add webserver during load test.

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. 
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.

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)

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
 		 	   		  

Re: Got error when add webserver during load test.

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pid,

On 11/27/2010 5:07 PM, Pid wrote:
> On 27/11/2010 14:22, Suchada Pakapongpan wrote:
>> 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, 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.

FWIW, I think that CentOS and others have stuck on 2.2.3, though they do
backport security updates, etc. Note that mod_proxy_ajp is unlikely to
have gotten any such backports to 2.2.3 unless they were security-related.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzz4TIACgkQ9CaO5/Lv0PDrhACeLQciCqyAdgLdHxLQp5w7O0od
MpUAnjQDTmg4vUDkP8wLK3Pp/YWNfGnr
=0u6N
-----END PGP SIGNATURE-----

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


Re: Got error when add webserver during load test.

Posted by Pid <pi...@pidster.com>.
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
>