First, I made another post about this on SO, but ended up with no results -
http://stackoverflow.com/questions/31176998/amazon-s3-issue-in-web-applications
Please have a look at the below code.
I am using this code to list the buckets I have in amazon s3. However this process is extremely slow, it takes almost 1 minute or more. Not only that, this takes lot of memory, almost freezing the Google Chrome. My bucket is in US standard region and my application is running in a PC located in south asia.
The delay is in connection configuration. I noticed this is not taking any time delays when it is running in non web
java applications. I ran this in a simple `Main` class which is not web based, and it worked fine, fast.
I am using Netbeans
IDE and the above code is a part of a
servlet. The server I am using is apache
tomcat 7.
Any ideas why this is taking this much of time? I added all the JAR files came with Amazon SDK for Java as well. It has no use to me if this takes this long.