{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/711","labels_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/711/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/711/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/711/events","html_url":"https://github.com/aws/aws-sdk-ruby/issues/711","id":57988697,"number":711,"title":"Leaking/bloating memory for v1","user":{"login":"bradleyd","id":151280,"avatar_url":"https://avatars.githubusercontent.com/u/151280?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleyd","html_url":"https://github.com/bradleyd","followers_url":"https://api.github.com/users/bradleyd/followers","following_url":"https://api.github.com/users/bradleyd/following{/other_user}","gists_url":"https://api.github.com/users/bradleyd/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleyd/subscriptions","organizations_url":"https://api.github.com/users/bradleyd/orgs","repos_url":"https://api.github.com/users/bradleyd/repos","events_url":"https://api.github.com/users/bradleyd/events{/privacy}","received_events_url":"https://api.github.com/users/bradleyd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/labels/Version%201","name":"Version 1","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-17T21:56:27Z","updated_at":"2015-02-18T14:58:45Z","closed_at":null,"body":"We have started using SQS in production and noticed that our consumers memory is growing unbound.  We have tried it on ruby 2.0,2.1.5, 2.0, rbx-2.5.2 and the results are the same.  I provided a test script to show what we are doing. The memory goes to 90MB within 1 hour. This is with no messages in queue..just polling.\r\nIf the daemons are left unchecked the memory will keep on growing until the box is out of memory.\r\n\r\nHere is the script\r\n```ruby\r\ngem 'aws-sdk', '~> 1.0'\r\n\r\nrequire 'aws-sdk'\r\n\r\nAWS.config(:sqs_region => ENV['AWS_REGION'] || 'us-west-1')\r\n\r\nsqs = AWS::SQS.new(\r\n        :access_key_id => ENV[\"ACCESS_KEY\"],\r\n        :secret_access_key => ENV[\"SECRET_KEY\"])\r\n\r\nqueue = sqs.queues[ENV[\"SQS_URL\"]]\r\n\r\np dbg: sqs\r\nputs \"polling for messages\"\r\nqueue.poll(wait_time_seconds: 10) { |m| p m }\r\n```\r\n\r\nGem list\r\n```ruby\r\n*** LOCAL GEMS ***\r\n\r\naws-sdk (1.62.0, 1.61.0)\r\naws-sdk-v1 (1.62.0, 1.61.0)\r\nbigdecimal (1.2.4)\r\nbundler (1.8.1)\r\ndaedalus-core (0.2.0)\r\newes-db (0.0.1)\r\newes-mailmessage (0.0.1)\r\newes-sqs (0.0.1)\r\nio-console (0.4.2)\r\njson (1.8.2, 1.8.1)\r\nmini_portile (0.6.2)\r\nminitest (4.7.5)\r\nnokogiri (1.6.6.2)\r\npg (0.18.1)\r\npsych (2.0.5)\r\nrake (10.4.2, 10.1.0)\r\nrdoc (4.1.0)\r\nredcard (1.1.0)\r\nrubinius-ast (2.3.1)\r\nrubinius-bridge (1.1.0)\r\nrubinius-build_tools (2.0.0)\r\nrubinius-compiler (2.3.1)\r\nrubinius-melbourne (2.3.1.0)\r\nrubinius-processor (2.3.0)\r\nrubinius-toolset (2.3.1)\r\nsequel (4.19.0)\r\ntest-unit (2.1.5.0)\r\n```\r\n\r\nNot sure where to pivot from here..any help is greatly appreciated."},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/comments/74877285","html_url":"https://github.com/aws/aws-sdk-ruby/issues/711#issuecomment-74877285","issue_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/711","id":74877285,"user":{"login":"bradleyd","id":151280,"avatar_url":"https://avatars.githubusercontent.com/u/151280?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleyd","html_url":"https://github.com/bradleyd","followers_url":"https://api.github.com/users/bradleyd/followers","following_url":"https://api.github.com/users/bradleyd/following{/other_user}","gists_url":"https://api.github.com/users/bradleyd/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleyd/subscriptions","organizations_url":"https://api.github.com/users/bradleyd/orgs","repos_url":"https://api.github.com/users/bradleyd/repos","events_url":"https://api.github.com/users/bradleyd/events{/privacy}","received_events_url":"https://api.github.com/users/bradleyd/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T14:58:45Z","updated_at":"2015-02-18T14:58:45Z","body":"will do."}}