Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7093791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:29:01+00:00 2026-05-28T08:29:01+00:00

I’ve been fighting with a TransferManager issue for a few weeks now and I

  • 0

I’ve been fighting with a TransferManager issue for a few weeks now and I am hoping to get some feedback,

I have a server application that waits for tasks to be sent to it. Some of these tasks require an upload to S3. The task contains all of the upload information I need including the access keys.

In my actual upload code, I need to create a new S3Client and TransferManager object every time I need to do an upload because I do not know my access keys ahead of time.

After the system processes approximately 1200 uploads I received an error indicating that the JVM could not obtain any more native threads. I attached a profiler to the application and noticed that the TransferManager object was not getting cleaned up properly, there were thousands of “s3-transfer-manager-worker-1” threads sitting idle.

I attempted to add a call to TransferManager.shutdownNow() after the upload was complete. That did clean up the threads. However, I started receiving a RejectedExecutionException whenever a new TransferManager was created and an upload was attempted.

TransferManager contains an UploadMonitor and UploadMonitor has a static ScheduledExecutorService. TransferManager.shutdownNow() calls the static method UploadMonitor.shutdownNow() which calls shutdownNow() on the executor service. This makes it so that I can no longer use any TransferManager objects, even if I try to create a new one.

How do I go about using multiple transfer objects without running out of threads? This seems like it is a bug.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:29:01+00:00Added an answer on May 28, 2026 at 8:29 am

    This was confirmed by Amazon as a bug. See details here https://forums.aws.amazon.com/thread.jspa?threadID=83520&tstart=0

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.