Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    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 im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    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
    (Poster of the Month -Dec'12)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Registered User harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    How to check the amount of heap used by my application?
    Regards,
    Harsha

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,682
    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
    Nokia Developer Champion Tiger79's Avatar
    Join Date
    Apr 2007
    Posts
    2,697
    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 harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    Thank you very much guys..
    Regards,
    Harsha

  7. #7
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    try to run the app in emulator with diagnostics on to show the heap memory utilizations
    thanks,
    ~Amitabh
    (Poster of the Month -Dec'12)
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved