title: What is the cause and how to fix 503 errors with this in Apache error_log: "Broken pipe: ajp_ilink_send(): send failed"
body: <p>I'm having intermittent problems with a servlet running on JBoss, with Apache forwarding it all requests via mod_proxy_ajp.so.</p>
  
  <p>Sometimes, for REST requests, I get 503 errors from Apache. When this happens, the Apache error_log has this in it:</p>
  
  <pre><code>[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)
  </code></pre>
  
  <p>After a few failed attempts, it starts working again.</p>
  
  <p>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).</p>
  
  <p>The strange thing about this problem is that there are other servlets running in this JBoss and I don't have the problem there.</p>
  
  <p>The servlet is CXF JAX-RS based.</p>
  
  <p>Apache is 2.2.6.</p>