Max Response data size handled by device
Hi all,
I have a JSON response with size 128kb, which has to be fetched in my application through HTTP request and stored in some vectors/arrays for further processing.
Can I know what is the max data size that can be handled in a HTTP Response, for mobiles with less heap memory such as C1-01(1MB Heap Memory).
As remaining form components such as images,forms, etc eat up some of the mobile heap.
Re: Max Response data size handled by device
Large responses will slow down the over all user experience of your applications, the client should be programmed to process the server response in chunks in case of such large responses and keep the UI updated.
Max response size that your app can handle on a low heap devices, depends on your app.. for good performance of the app try to work with 75% of the available heap only (for all your program needs).
Re: Max Response data size handled by device
How to check the amount of heap used by my application?
Re: Max Response data size handled by device
It is probably provided via [B]Runtime[/B], at least that is the way in desktop Java (Runtime.getRuntime().xyMemory(), where xy is total/free/max).
Re: Max Response data size handled by device
yup,
Runtime.getRuntime().freeMemory();
should work
Re: Max Response data size handled by device
Thank you very much guys..
Re: Max Response data size handled by device
try to run the app in emulator with diagnostics on to show the heap memory utilizations