Http keepalive

39 views
Skip to first unread message

Hemanth Shekar

unread,
Mar 28, 2019, 6:53:39 PM3/28/19
to ve...@googlegroups.com
Hi team 
I am relatively new to vertx and Java . 
I have built an API in vertx that will take a request and retrieve information from couchbase.  We wanted to do a load test on this using j meter . When I ran the test and looked at the tcp dump we saw that we have an ssl handshake for every call and also a disconnect. This is taking almost 80 Ms . I wanted to know how to keep alive the http connection after the 1st call . 

Will there be any code changes in the server end or do I need to send some information in my request I am not sure how to go about this

Any help is much appreciated.

Thanks 

Blake

unread,
Mar 28, 2019, 8:22:00 PM3/28/19
to vert.x
You're using a vertx client to connect to a vertx server?

To keep the connection alive you setKeepAlive to true on the client options. https://vertx.io/docs/vertx-core/java/#_http_1_x_pooling_and_keep_alive
There's also information there on setting the connection pool server side (how many to keep open).

If you're using some other http client set the keep-alive header.

Hemanth Shekar

unread,
Mar 28, 2019, 8:28:02 PM3/28/19
to ve...@googlegroups.com
I am using j meter 

Thanks

--
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/454862f7-9854-4eb4-831e-01f6bd76530a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages