Hi there,
I briefly spoke with Norman about this on IRC already but we decided to post it here.
I've some trouble with OutOfMemory Exceptions (and other) in vertx using HttpClient.
What I see:
* Exception in thread "vert.x-eventloop-thread-4" java.lang.OutOfMemoryError: Java heap space
* java.util.concurrent.TimeoutException: The timeout period of 10000ms has been exceeded
* javax.net.ssl.SSLHandshakeException: Failed to create SSL connection
PS old slowly but constantly increases resulting in an OutOfMemory after several hours (7-8h). I had this on 4 servers and was able to reproduce.
Code, Stacktraces, and jmap info can be found at https://gist.github.com/bquilitz/3b8b0fe807917b14ebee , a heap dump is at https://db.tt/jM0JFpUZ . The code uses a HttpClient and is fairly simple, the error occurs only after several hours. It seems as if byte[] are not freed from DefaultHttpClientResponse. The java file I posted in the gist it a reduced version - the original has an additional http server with a very simple handler. The API host is not publicly available but I could prepare a simple endpoint for testing.
With setKeepAlive(false) it seems to work ok - even after 9h+ memory looks good.
Best
Bastian