Can you look and see what kind of objects are retained? Gary On Feb 2, 2016 2:33 AM, "David Skalka" <[email protected]> wrote:
> Why this code causes a memory leak?
>
> code:
>
> *while(true){*
> * CloseableHttpClient httpclient = HttpClientBuilder.create().build();*
> * httpclient.close();*
> * Thread.sleep(5);*
> * }*
>
>
> Here is a graph of memory allocation:
>
> https://drive.google.com/file/d/0B8cERbS5JTTtMnUyVXJNZDRFbHM/view
>
