Work around a keep-alive bug in clients earlier than 3.3.4 - Amazon Neptune
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Work around a keep-alive bug in clients earlier than 3.3.4

Only for client versions 3.3.3 and below:

There is a bug in earlier version of the Gremlin client causing a new KeepAlive request to be sent to the server with every query instead of once per websocket connection. This consumes precious server resources as the server processes unnecessary keep-alive requests. For more information, see TINKERPOP-2030.

You can avoid this problem by upgrading to Gremlin Java Client version 3.3.4 or above.

A workaround is to disable the keep-alive from the client by setting its interval to 0:

Cluster.Builder readerBuilder = Cluster.build() .port(8182) ... .keepAliveInterval(0)