-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Guys,
InputStream is0 = new BufferedInputStream(new FileInputStream(f));
Date now = new Date();
System.out.println("uploading...@"+now+" "+f);
String storageConnectionString="DefaultEndpointsProtocol=http"+
";AccountName=mikebell" +
";AccountKey=";
CloudStorageAccount storageAccount = CloudStorageAccount.parse(storageConnectionString);
CloudBlobClient bc = storageAccount.createCloudBlobClient();
CloudBlobContainer c=bc.getContainerReference("retain");
CloudBlockBlob blob =c.getBlockBlobReference(f.getName());
blob.upload(is0,f.length());
System.out.println("File uploaded... took "+(System.currentTimeMillis()-now.getTime())+" ms");
hangs forever for me if file exceeds 3500 MB
Attempts to diagnose:
- Tried many files between 3500-7000KB. All fail pass the threshold which for me was about 3500-3800KB.
- All files that fail always fail.
- A .NET explorer gui works when uploading
- Windows 7 x64 laptop, plenty of RAM (8 GB).
- JVM given 1GB of RAM via xMx
- Run from Eclipse 3.7.1 in IDE (run from application)
- Java 1.6.0_24 JDK (oracle)
- Memory and Buffered Streams made no dfifference.
- Stack trace showed many threads all blocking while uploading in httpurlconnection, main coordinator thread waiting on take (pretty much as expected for a thread pool)
Metadata
Metadata
Assignees
Labels
No labels