Hi all,
I've been using org.apache.xmlrpc (still using 1.2) together with servlet in jetty.
Recently I got the following scary exception and had to restart the server.
java.lang.RuntimeException: System overload
error is in XmlRpcServer.java on line 179.
After looking over the code it seems that number of workers exceeds the permitted number of threads (100).
I then figured my servlet does the following in constructor:
public XmlRpcServlet () {
this.server = new XmlRpcServer();
}
So if jetty uses one instance of that servlet to handle many requests, the number of workers (nbrWorkers) will
never be reset, and I could possibly get System overload exception.
That is the only reason I can think of.
I am careful / scared to place new XmlRpcServer() call into doPost method of Servlet for performance reasons.
But if it is the only solution, I have no choice (I could look into jetty, but that's for another topic)
Another more direct question is how is XmlRpcServer expected to be used?
I am pretty desperate for ideas/opinions/experiences.... Anything please?!
Thanks,
--MB
- XmlRpcServer exception and intended usage Massive Boisson
- Re: XmlRpcServer exception and intended usage Massive Boisson
