SEVERE: The web application  appears to have started a thread named [java-sdk-http-connection-reaper] but has failed to stop it. This is very likely to create a memory leak.”
This issue is caused by AWS Java SDK Client library which starts a thread in the background called com.amazonaws.http.IdleConnectionReaper.
Ideally, AWS should provide some cleaner to handle this error. Workaround is to call shutdown method yourslef in the code. Below example provides solution for Spring based applications using Java Config. High level, you have to do 2 things:
- Declare a bean.
- Add @Predestroy method in that bean which can invoke shutdown method explicitly.