logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: reverse proxy: socket write error
Author
koendp



Joined: 19 Dec 2006
Posts: 3

PostPosted: Tue 19 Dec '06 20:02    Post subject: reverse proxy: socket write error Reply with quote

Hi all,

I'm an Apache newbie. I've set up Apache 2.2.3 as a reverse proxy to an application server on the same Win2003 machine, but different port.

....
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
....
ProxyRequests Off

ProxyPass / http://localhost:9001/
ProxyPassReverse / http://localhost:9001/
....

The traffic is just Web services calls (HTTP + SOAP) to the application server and callbacks in the other direction. Once in a while (seems random) I get this error from my localhost:9001 application server:

SERVICE FAULT:
Code:java.net.SocketException
String:Software caused connection abort: socket write error

I don't know anything about Apache, I know I should read the manual, but I'm guessing there's an obvious quick answer to this?

Best regards,
Koen
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 19 Dec '06 21:51    Post subject: Reply with quote

You can try mod_proxy_ajp

Code:

<Location /manager/status/>
ProxyPass ajp://localhost:8009/manager/status/
ProxyPassReverse ajp://localhost:8009/manager/status/
</Location>


I haven't tried that out, cause I do not run tomcat. It is taken from the docs.
Back to top
koendp



Joined: 19 Dec 2006
Posts: 3

PostPosted: Tue 19 Dec '06 22:17    Post subject: Reply with quote

James Blond wrote:
You can try mod_proxy_ajp

Code:

<Location /manager/status/>
ProxyPass ajp://localhost:8009/manager/status/
ProxyPassReverse ajp://localhost:8009/manager/status/
</Location>


I haven't tried that out, cause I do not run tomcat. It is taken from the docs.


I'm not running Tomcat, so I guess I can't use AJP.

Maybe I need to set ttl or keepalive ?

Koen

edit: I'm sorry, I was wrong about the callbacks. There are no callbacks, everything is synchronous.
Back to top
koendp



Joined: 19 Dec 2006
Posts: 3

PostPosted: Tue 19 Dec '06 22:46    Post subject: Reply with quote

Could it be that I needed to set smax ?

I've set smax to 10 now, and at first sight it seems to be solved.

Tomorrow I'll do some extensive testing.
Back to top


Reply to topic   Topic: reverse proxy: socket write error View previous topic :: View next topic
Post new topic   Forum Index -> Apache