--
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/c0b026c4-eb7d-46ff-9c33-d43a3ad007d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
your test is not realistic.
to prevent that you can set the maxQueueWaitSize on HttpClientOptions to a value that will prevent to enqueue too many requests, the default value is unbounded.
On Sep 19, 2016, at 6:11 PM, Kevin Clarke <kscl...@gmail.com> wrote:On Monday, September 19, 2016 at 11:51:59 AM UTC-4, Julien Viet wrote:your test is not realistic.Well, it is what I need to do in my real use case. :-)
to prevent that you can set the maxQueueWaitSize on HttpClientOptions to a value that will prevent to enqueue too many requests, the default value is unbounded.Ah, thanks! So I can catch that exception when it's too congested and keep checking back for when it's not to finish submitting the rest of the requests.
Thank you,KevinOn Sep 19, 2016, at 5:06 PM, Kevin Clarke <kscl...@gmail.com> wrote:Or is it just that it's creating too many requests before they can be processed? I'm new to this style of programming.Thanks,Kevin
On Monday, September 19, 2016 at 11:01:53 AM UTC-4, Kevin Clarke wrote:Hi,I'm not sure if I'm doing something wrong or just missing an important step when using HttpClient. I have a case where I want to submit a lot of PUTs using a single HttpClient. I've distilled my usage down to some sample code at: https://github.com/ksclarke/vertx-httpclient-test/blob/master/src/main/java/test/Test.javaI thought calling request.end(Buffer) would be all that's needed to conclude the use of an individual request but when I run this sample code eventually I run out of memory (I can set my test application's Xmx memory to 2G or something to make it happen quickly). If I look at the crash report I see: 'One instance of "io.vertx.core.http.impl.ConnectionManager$ConnQueue' loaded by 'sun.misc.Launcher$AppClassLoader @ 0x6000592d0' occupies 5,624,581,384 (99.66%) bytes. The memory is accumulated in one instance of "java.lang.Object[]" loaded by "<system class loader>." It seems there are a bunch of io.vertx.core.http.impl.HttpClientRequestImpl$2 instances hanging around in an ArrayDeque.Would someone mind looking at my example code and let me know if I'm missing some step to cleanup the PUT request after it's completed?Thanks,Kevin--
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/c0b026c4-eb7d-46ff-9c33-d43a3ad007d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.--
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/312e0c14-6b1e-4d0c-8acc-545ce7243567%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/b5593564-722c-4fe0-a7bb-01cc6db679e3%40googlegroups.com.