×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    62

    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.
    Regards,
    Harsha

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,073

    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).
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Registered User
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    62

    Re: Max Response data size handled by device

    How to check the amount of heap used by my application?
    Regards,
    Harsha

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,566

    Re: Max Response data size handled by device

    It is probably provided via Runtime, at least that is the way in desktop Java (Runtime.getRuntime().xyMemory(), where xy is total/free/max).

  5. #5
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Max Response data size handled by device

    yup,
    Runtime.getRuntime().freeMemory();
    should work
    Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them.

  6. #6
    Registered User
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    62

    Re: Max Response data size handled by device

    Thank you very much guys..
    Regards,
    Harsha

  7. #7
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,073

    Re: Max Response data size handled by device

    try to run the app in emulator with diagnostics on to show the heap memory utilizations
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. Maximum request/response size with Iso14443Connection.exchangeData?
    By hvuoltee in forum Near Field Communication
    Replies: 3
    Last Post: 2012-10-25, 13:16
  2. No response on Device
    By vdharankar in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2009-12-11, 15:58
  3. How is GPS data fetching handled in REST API
    By _Askin_ in forum Mobile Web Server
    Replies: 0
    Last Post: 2009-04-27, 04:54
  4. Can't create xml response using Syexpat For MP3 data
    By swapnil_mahajan in forum Symbian C++
    Replies: 0
    Last Post: 2008-09-05, 09:41
  5. Replies: 7
    Last Post: 2008-07-18, 02:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •