hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: HttpClientBuilder Memory Leak
Date Tue, 02 Feb 2016 16:22:45 GMT
Can you look and see what kind of objects are retained?

Gary
On Feb 2, 2016 2:33 AM, "David Skalka" <david.skalka@gmail.com> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message