hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Skalka <david.ska...@gmail.com>
Subject Re: HttpClientBuilder Memory Leak
Date Tue, 02 Feb 2016 20:16:14 GMT
what is it "own data" ?

2016-02-02 21:11 GMT+01:00 Oleg Kalnichevski <olegk@apache.org>:

> On Tue, 2016-02-02 at 20:58 +0100, David Skalka wrote:
> > it is simple test application with one while. here is whole source code:
> >
>
> Have you looked at your own data?
>
> Oleg
>
> >
> > import java.io.IOException;
> >
> > import org.apache.http.impl.client.CloseableHttpClient;
> > import org.apache.http.impl.client.HttpClientBuilder;
> >
> >
> > public class Program {
> >
> >     public static void main(String[] args) throws IOException,
> > InterruptedException {
> >
> >         while(true){
> >             CloseableHttpClient httpclient =
> > HttpClientBuilder.create().build();
> >             httpclient.close();
> >             Thread.sleep(5);
> >         }
> >
> >
> >     }
> >
> > }
> >
> >
> > 2016-02-02 20:51 GMT+01:00 Oleg Kalnichevski <olegk@apache.org>:
> >
> > > On Tue, 2016-02-02 at 20:42 +0100, David Skalka wrote:
> > > > sorry i dont understand you. What do you mean by "what does this all
> tell
> > > > you" ?
> > > >
> > >
> > > Have you taken even a cursory look at your own data?
> > >
> > > What makes you think there is a leak in HttpClient?
> > >
> > > Oleg
> > >
> > > > 2016-02-02 20:21 GMT+01:00 Oleg Kalnichevski <olegk@apache.org>:
> > > >
> > > > > On Tue, 2016-02-02 at 19:30 +0100, David Skalka wrote:
> > > > > > Here is long running snapshot with types
> > > > > >
> > > > > > https://drive.google.com/open?id=0B8cERbS5JTTtZkVpWmhVWS11UkU
> > > > >
> > > > > And what does this all tell you?
> > > > >
> > > > > Oleg
> > > > >
> > > > > >
> > > > > > 2016-02-02 17:22 GMT+01:00 Gary Gregory <garydgregory@gmail.com
> >:
> > > > > >
> > > > > > > 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
> > > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> > > > > For additional commands, e-mail:
> httpclient-users-help@hc.apache.org
> > > > >
> > > > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> > > For additional commands, e-mail: httpclient-users-help@hc.apache.org
> > >
> > >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

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