tiger154 / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
1 stars 0 forks source link

Want to use thread pool for threaded RPC's #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently we do not limit the number of threads that can be used for threaded 
RPC's. Depending on the server resources that could result in an overload so we 
want to limit the number of thread by the jWebSocket.xml config file.

We should be able to custom set this values on the xml file:
corePoolSize
maximumPoolSize
keepAliveTime
corePoolSize=number of thread that are "waiting" even if the queue is empty

Original issue reported on code.google.com by fivefeetfurther@gmail.com on 3 Nov 2010 at 6:33

GoogleCodeExporter commented 9 years ago

Original comment by fivefeetfurther@gmail.com on 3 Nov 2010 at 6:33

GoogleCodeExporter commented 9 years ago
Thread pool configuration is avaible in the jwebsocket.xml file (it's a server 
configuration)
(also added the Size of the Queue as custom value)

ThreadpoolConfig.java is a seperate config (not a direct part of the 
ServerConfig), so it could be reused by other modules if needed.

Original comment by Quentin....@gmail.com on 17 Nov 2010 at 9:37