Skip to content

Very slow API response times for S3 when using dual stack on IPv6 only EC2 instance #4930

Answered by debora-ito
anca-jalbum asked this question in Q&A
Discussion options

You must be logged in to vote

Did some research, and you need to tell your JVM to prefer IPv6:

By default, IPv4 addresses are preferred over IPv6 addresses, for example, when querying the name service 
(for instance, DNS service), IPv4 addresses would be returned ahead of IPv6 addresses. 

(...) 

This setting can be changed through the system property java.net.preferIPv6Addresses=<true|false>

Can you try using the system property -Djava.net.preferIPv6Addresses=true and see if it works?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@anca-jalbum
Comment options

@debora-ito
Comment options

Answer selected by anca-jalbum
@anca-jalbum
Comment options

@debora-ito
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants