Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

598
Views
AWS InterruptedException: sleep interrupted com.amazonaws.http.IdleConnectionReaper

we have a web application use AWS (Amazone api), in the coreConfiguration class we create a awsApi bean with predestroy method, the code for coreConfiguration is:

@Bean(destroyMethod = "destroy")
    public IGridStorageManager awsApi() {
.....
}

in awsApi class we have detroy methode, the code is:

@Override
    @PreDestroy
    public void destroy() {
        if (clientS3 != null) {
            clientS3.shutdown();
        }
    }

My problem is sometime in PROD when i use the API i see thos logs:

2020-08-03 11:27:00.090 DEBUG 25172 --- [java-sdk-http-connection-reaper] com.amazonaws.http.IdleConnectionReaper : Reaper thread:
java.lang.InterruptedException: sleep interrupted
        at java.lang.Thread.sleep(Native Method)
        at com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:188)

I read that this exception can cause memory leak, i found that we need to use a shutdown() method, the problem is i aleardy use @PreDestroy method with shutdown method, why i have those exceptions ?

Can you help me ?

Thanks

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!