{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-java/issues/885","repository_url":"https://api.github.com/repos/aws/aws-sdk-java","labels_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/885/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/885/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/885/events","html_url":"https://github.com/aws/aws-sdk-java/issues/885","id":182341472,"number":885,"title":"Under MacOS Sierra SQS performance is really slow","user":{"login":"haskovec","id":1877330,"avatar_url":"https://avatars.githubusercontent.com/u/1877330?v=3","gravatar_id":"","url":"https://api.github.com/users/haskovec","html_url":"https://github.com/haskovec","followers_url":"https://api.github.com/users/haskovec/followers","following_url":"https://api.github.com/users/haskovec/following{/other_user}","gists_url":"https://api.github.com/users/haskovec/gists{/gist_id}","starred_url":"https://api.github.com/users/haskovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haskovec/subscriptions","organizations_url":"https://api.github.com/users/haskovec/orgs","repos_url":"https://api.github.com/users/haskovec/repos","events_url":"https://api.github.com/users/haskovec/events{/privacy}","received_events_url":"https://api.github.com/users/haskovec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-11T18:40:49Z","updated_at":"2016-10-11T19:47:38Z","closed_at":null,"body":"I upgraded my MacBookPro from El Capitian to Sierra and have noticed a massive performance drop in SQS. It seems to be hanging on the get credentials call.  Here is a snippet from a stack trace I took on 2 different apps when starting up. Our 1 app which connects to something like 8 different SQS queues used to launch in 11 seconds and now takes about 141 seconds to launch. I always find it in this place in jstack:\r\n\r\n```java\r\n   at java.net.PlainSocketImpl.socketConnect(Native Method)\r\n    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)\r\n    - locked <0x0000000773460e50> (a java.net.SocksSocketImpl)\r\n    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)\r\n    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)\r\n    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)\r\n    at java.net.Socket.connect(Socket.java:589)\r\n    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)\r\n    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)\r\n    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)\r\n    - locked <0x0000000773460dc8> (a sun.net.www.http.HttpClient)\r\n    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)\r\n    at sun.net.www.http.HttpClient.New(HttpClient.java:308)\r\n    at sun.net.www.http.HttpClient.New(HttpClient.java:326)\r\n    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)\r\n    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)\r\n    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)\r\n    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)\r\ncom.amazonaws.internal.EC2CredentialsUtils.readResource(EC2CredentialsUtils.java:70)\r\n    at com.amazonaws.auth.InstanceProfileCredentialsProvider$InstanceMetadataCredentialsEndpointProvider.getCredentialsEndpoint(InstanceProfileCredentialsProvider.java:117)\r\n    at com.amazonaws.auth.EC2CredentialsFetcher.fetchCredentials(EC2CredentialsFetcher.java:121)\r\n    - locked <0x00000006c0ebd3c0> (a com.amazonaws.auth.EC2CredentialsFetcher)\r\n    at com.amazonaws.auth.EC2CredentialsFetcher.getCredentials(EC2CredentialsFetcher.java:82)\r\n    at com.amazonaws.auth.InstanceProfileCredentialsProvider.getCredentials(InstanceProfileCredentialsProvider.java:104)\r\n    at com.amazonaws.auth.AWSCredentialsProviderChain.getCredentials(AWSCredentialsProviderChain.java:115)\r\nat com.amazonaws.http.AmazonHttpClient.getCredentialsFromContext(AmazonHttpClient.java:781)\r\n    at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:807)\r\n    at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:702)\r\n    at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:454)\r\n    at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:416)\r\n    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:365)\r\n    at com.amazonaws.services.sqs.AmazonSQSClient.doInvoke(AmazonSQSClient.java:1741)\r\n    at com.amazonaws.services.sqs.AmazonSQSClient.invoke(AmazonSQSClient.java:1711)\r\n    at com.amazonaws.services.sqs.AmazonSQSClient.getQueueAttributes(AmazonSQSClient.java:1010)\r\n    at com.amazonaws.services.sqs.buffered.AmazonSQSBufferedAsyncClient.getQueueAttributes(AmazonSQSBufferedAsyncClient.java:262)\r\n    at org.springframework.cloud.aws.messaging.listener.AbstractMessageListenerContainer.queueAttributes(AbstractMessageListenerContainer.java:298)\r\n    at org.springframework.cloud.aws.messaging.listener.AbstractMessageListenerContainer.initialize(AbstractMessageListenerContainer.java:270)\r\n    - locked <0x000000076ee7bc18> (a java.lang.Object)\r\n    at org.springframework.cloud.aws.messaging.listener.SimpleMessageListenerContainer.initialize(SimpleMessageListenerContainer.java:110)\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-java/issues/comments/253024325","html_url":"https://github.com/aws/aws-sdk-java/issues/885#issuecomment-253024325","issue_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/885","id":253024325,"user":{"login":"shorea","id":11096681,"avatar_url":"https://avatars.githubusercontent.com/u/11096681?v=3","gravatar_id":"","url":"https://api.github.com/users/shorea","html_url":"https://github.com/shorea","followers_url":"https://api.github.com/users/shorea/followers","following_url":"https://api.github.com/users/shorea/following{/other_user}","gists_url":"https://api.github.com/users/shorea/gists{/gist_id}","starred_url":"https://api.github.com/users/shorea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shorea/subscriptions","organizations_url":"https://api.github.com/users/shorea/orgs","repos_url":"https://api.github.com/users/shorea/repos","events_url":"https://api.github.com/users/shorea/events{/privacy}","received_events_url":"https://api.github.com/users/shorea/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T19:47:38Z","updated_at":"2016-10-11T19:47:38Z","body":"Does it work once launched? Where are your credentials supposed to be loaded from?"}}
{"actor":{"display_login":"shorea"}}