RestEasyClient JAX RS possible resource leak if not done correctly
问题 Issue: I had a rest client that was supposed to send request to a URL. The java application was a standalone java Application ( started with java -jar ) and then on exit all application context were closed. but the application would end but not shutdown and the PID remained for the java process. On each request I was doing an async call and getting the response in an InvocationCallback implementation. client = new ResteasyClientBuilder().connectTimeout(timeout, TimeUnit.SECONDS).readTimeout