title: Upload files to AWS S3 takes a lot of CPU
body: <p>I'm currently working on a server app (JEE) and getting some problems to upload files to AWS S3. I'm using the Java SDK (S3client.putObject) to upload these files. When the server starts, everything happens as expected. Files are generated in the server (EC2 instance) and uploaded to S3 in a few seconds. But after some days, the performance degrades a lot. Files that usually took 5 or 6 seconds to be uploaded need now 10 to 30 minutes (yes, minutes). I profiled the app and the culprit here is the section that does the upload using the AWS Java SDK. Strangely  the CPU utilization goes near 100% and stays there for minutes. As this is basically an IO operation, I don't understand why it may need so many CPU cyles to run.
  Has anyone eve experienced this behavior?
  Any tips on where to look?</p>
  
  <p>PS: file size goes from 1 to 50 MB.</p>
  
  <p>Thanks a lot!</p>
  
  <p>Updates:
  The EC2 instance that creates the files and uploads them to S3 is m1.large.
  I'm using the 1.6.4 AWS SDK version .</p>