I'm having intermittent problems with a servlet running on JBoss, with Apache forwarding it all requests via mod_proxy_ajp.so.
Sometimes, for REST requests, I get 503 errors from Apache. When this happens, the Apache error_log has this in it:
[Mon Oct 12 09:10:19 2009] [error] (32)Broken pipe: ajp_ilink_send(): send failed
[Mon Oct 12 09:10:19 2009] [error] (32)Broken pipe: proxy: send failed to 127.0.0.1:8009 (localhost)
After a few failed attempts, it starts working again.
I've googled some and found that I'm not the only one who has encountered the problem. The only solution I've found is to make sure that Apache is started after JBoss (I restart Apache after restarting JBoss).
The strange thing about this problem is that there are other servlets running in this JBoss and I don't have the problem there.
The servlet is CXF JAX-RS based.
Apache is 2.2.6.