Note that there are some explanatory texts on larger screens.

plurals
  1. POThread pool configuration Java app server
    primarykey
    data
    text
    <p>I'm maintaining an application which has few services exposed as SOAP webservices. I have come across some scaling issues off late, as application has been receiving more load than the normal.</p> <p>I would like to know if my understanding is correct regarding few pool configurations, 1. We have the thread pool configuration as below,</p> <pre><code>&lt;thread-pools&gt; &lt;thread-pool name="admin-thread-pool" max-thread-pool-size="50" max-queue-size="1024"&gt;&lt;/thread-pool&gt; &lt;thread-pool name="http-thread-pool" max-thread-pool-size="250"&gt;&lt;/thread-pool&gt; &lt;thread-pool name="http-thread-pool-internal" max-thread-pool-size="50"&gt;&lt;/thread-pool&gt; &lt;thread-pool name="thread-pool-1" max-thread-pool-size="200"&gt;&lt;/thread-pool&gt; &lt;/thread-pools&gt; </code></pre> <p>and</p> <pre><code>&lt;transports&gt; &lt;transport name="tcp" acceptor-threads="8"&gt;&lt;/transport&gt; &lt;/transports&gt; </code></pre> <p>and 2. EJB pool configuration as below,</p> <pre><code>&lt;ejb-container steady-pool-size="0" max-pool-size="50" pool-resize-quantity="10"&gt; </code></pre> <p>So now the questions.</p> <ol> <li><p>What will happen if http thread pool receives a task which need to be executed synchronously and if there are no enough EJB bean instances in pool (maximum configured is 50), because all EJB instances are serving other http requests ? Note : We are doing JNDI lookups and not using @EJB annotations.</p></li> <li><p>Does it make sense to increase the number of EJB instances (max) equal to http-threadpool value ?</p></li> </ol> <p>After doing some profiling it was noticed that the code which does lookup for the EJB instances take a long time to return. Does it mean that there was no EJB instances available and the request had to wait until an instance was release by the other running threads ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload