3

The web application [ROOT] appears to have started a thread named [jersey-client-async-executor-0] but has failed to stop it.

How to gracefully shutdown the jersey-client-async-executor?

This is used with Spring Boot, JerseyRxClient with embedded tomcat.

Paul Samsotha
  • 205,037
  • 37
  • 486
  • 720
ethan
  • 1,881
  • 2
  • 17
  • 31

1 Answers1

0

Jersey Gracefully terminates the thread once the request is complete. I am using spring boot scheduler to make asynchronous request using rx jersey client.

I had the same doubt as everytime a scheduler runs, jersey client creates new threads incrementing the number. To be sure that the thread is terminated,

Simple Test:

In your subscriber, 
    Set<Thread> threadSet = Thread.getAllStackTraces().keySet();

this will not list the jersey-client-async-executor-* which was used to make the request.

Bharath
  • 1,787
  • 1
  • 20
  • 37