--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/9696d9b8-6afd-401e-a287-c91ca51a4e1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/cc63967d-b480-4126-a377-b7035f9d6058%40googlegroups.com.
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(
asyncPolicy.asyncMaxCommands / 2, asyncPolicy.asyncMaxCommands,
60L, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(
asyncPolicy.asyncMaxCommands + 50));
threadPoolExecutor.allowCoreThreadTimeOut(true);
asyncPolicy.asyncTaskThreadPool = threadPoolExecutor;
asyncPolicy.asyncMaxCommands is set to 2000
and
asyncPolicy.asyncSelectorThreads is set to 5 on an 8 CPU core server.
We tried multiple variants of this; even using a cached thread pool - to no avail though.
Can this be causing unnecessary spawning of threads, and hence more context switches?
And are these context switches causing more CPU usage, or are we debugging down the wrong path?
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/e533db0e-af4d-4e2a-bc24-daf1b7927c86%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/e533db0e-af4d-4e2a-bc24-daf1b7927c86%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/e4528df2-654f-48af-b703-21953e2ebef7%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/f91bc955-baaa-42b3-bd8a-dbce6c01aa57%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/8f5cc021-64d8-4818-b2f0-f9ce658d2aa7%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/b84a38a4-570e-42b7-8d03-6a447c61f6f7%40googlegroups.com.
On 14 Jun 2018, at 11:32, ankur gupta <ankurgu...@gmail.com> wrote:
Hi Julien ,
Yes we are creating new httpclient for each request .
Can we create a singleton for httpclient and use across the application.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/d03d3643-9b30-472a-8721-4aabf4de4b4a%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/0380d42f-b5d3-43a1-a616-62a1a12bdd57%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/0380d42f-b5d3-43a1-a616-62a1a12bdd57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/MWdV8d8hGWk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/09E5D9F5-2612-4862-9B94-6D03DB8C91F0%40julienviet.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CAFroaSHZFZEtiCtxh5fe%2BP5a1rqRVZAYM8B8dqLT-zNCSZbQHg%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/0380d42f-b5d3-43a1-a616-62a1a12bdd57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/MWdV8d8hGWk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/09E5D9F5-2612-4862-9B94-6D03DB8C91F0%40julienviet.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/b6cbd7b9-5df2-4884-84ab-d6b443047199%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/a05e8260-c0fc-4553-835c-e25e5b81908b%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/210464f1-1f9c-4e2b-9398-d0c4e3cb3a90%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/148da60b-f7a3-483e-b4bb-f854752b0b14%40googlegroups.com.