You can use VisualVM if you are using Oracle Java. This will show you how
much time is spent where.

Gary

On Sat, Jul 23, 2016 at 11:33 AM, Khare, Aparna <aparna.kh...@sap.com>
wrote:

> Hi Bernd,
>
>   The response is big which I get from the server  5MB it’s a json
> response .The chartset is UTF-8.
> Also the time taken to read response is around 7 seconds .
>
> Can you tell me how can I check first and last byte.
>
> I need to improve the for reading the response and then later I have parse
> the json response.
> Any suggestion and help would be great
>
> Thanks,
> aparna
>
> From: e...@zusammenkunft.net [mailto:e...@zusammenkunft.net]
> Sent: Friday, July 22, 2016 11:39 PM
> To: Khare, Aparna <aparna.kh...@sap.com>; httpclient-users@hc.apache.org
> Subject: AW: EntityUtils.ToString() is too slow
>
> You need to provide more info, how big is the response, what charset, how
> long does the server take to provide the first and last byte? I would
> suspect the server takes 4,832s.
>
>
> Gruss
> Bernd
> --
> http://bernd.eckenfels.net
> From Win 10 Mobile
>
> Von: Khare, Aparna<mailto:aparna.kh...@sap.com>
> Gesendet: Freitag, 22. Juli 2016 14:54
> An: httpclient-users@hc.apache.org<mailto:httpclient-users@hc.apache.org>
> Betreff: EntityUtils.ToString() is too slow
>
> Dear All,
>
>    I'm trying to use EntityUtils.toString(responseEntity,
> RuntimeAdapterConstants.UTF_8)
>
> Where responseEntity is string to read the json response this is taking
> around 5 seconds.
>
> Can you please help how I can improve the turnaround time or use some
> other api
>
> Thanks,
> Aparna
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to