users@jersey.java.net

[Jersey] Limit thread count for GrizzlyConnectorProvider and JettyConnectorProvider

From: Eugene Prokopiev <enp_at_itx.ru>
Date: Fri, 13 Feb 2015 15:44:34 +0400

Hi,

Only clients based on default and ApacheConnectorProvider can accepts
register(new RequestExecutorProvider()), so after many request calls
with GrizzlyConnectorProvider and JettyConnectorProvider I got
java.lang.OutOfMemoryError: unable to create new native thread

Is possible to fix it?

Another problem with JettyConnectorProvider is response buffer size
which is limited to 2Mb by default. Is it possible to increase it?

-- 
WBR,
Eugene Prokopiev