Java ThreadPoolExecutor don't create new threads

I have a servlet in AEM (Adobe Experience Manager) that create a new thread per request. I use a Apache Sling threadpool to manage the threads. All is ok, but if the servlet receives haundreds request in a few seconds the thread is not created and the threadpool is converted in useless. I have to restart the AEM instance to the threadpool The threadpool uses a queue without limit with a core pool of ten elements. The configuration is the next:

ThreadPool configuration

Debuging the java.util.concurrent.ThreadPoolExecutor class, my code enter into the...

Read More »

By: StackOverFlow - 5 days ago

Related Posts