OOM Issue when using vertx HTTP Server with enabled SSL

33 views
Skip to first unread message

Hojat Irvani

unread,
Aug 21, 2017, 1:26:55 AM8/21/17
to vert.x
Hi everyone,
I have a big issue with vertx when i enable SSL in HTTP Server. after about 20K - 50K requests in 3 to 5 days i see OOM and server does not accept any new connection. lots of connections remains open and heap dumps show the problem is about lots of unfinalized SSLSessionImpl and NIOSocketChannel. about 75% of memory when Xms is 250M and Xmx is 2G.
I use vertx 3.4.2. 
Also i tried the latest netty 4.1.14 and latest jdk 1.8.0_144 but no difference.
Each request will end by response.end() but i can't understand why some connections remain in Established state after several days. the clients are android devices that use okhttp.

the running platform is windows server 2008 R2 service pack1

Regards,
Hojat

Julien Viet

unread,
Aug 21, 2017, 2:43:23 AM8/21/17
to ve...@googlegroups.com
Hi,

have you try to set TCP keep alive on your server ?

Julien

--
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/bbf93519-fdce-4df8-abfe-34ba24317385%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hojat Irvani

unread,
Aug 21, 2017, 3:30:53 AM8/21/17
to vert.x
No. I haven't used keep alive option in vertx. what's your opinion?

Julien Viet

unread,
Aug 21, 2017, 5:21:41 AM8/21/17
to ve...@googlegroups.com
I think you are having an issue at the TCP level and not directly related to Vert.x

you need to understand why you are keeping so many connections in ESTABLISHED state

you can try a TCP dump on a single connection that remains in this state and understand what is going on.

Reply all
Reply to author
Forward
0 new messages