×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    2

    How to find Heap Memory size?

    I have a webpage that collects environment variables for the phones that visit... This page then displays a dynamic URL depending on the phone type.

    I need to analyze the phones HS (Heap Memory Size) before creating the link.

    I am using environment variables HTTP_ACCEPT (to determine which video type to include) and HTTP_USER_AGENT to collect phone info.

    Basically, I need to know if it is possible to get the phones HS size dynamicly by using an environment variable or similar???

    Anybody know?
    Thanks.

  2. #2
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    82

    Re: How to find Heap Memory size?

    Do you mean:
    Code:
    Runtime.freeMemory();
    Runtime.totalMemory();

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    2

    Re: How to find Heap Memory size?

    Thanks for the info. Where would this be used?

    I need to tell the PHP webpage the HS memory of the phone dynamically - so the webpage would have to query the phone and return the HS result, I guess?

    OR Does the phone tell the page the HS size is an environment variable or something?

    So confused!

    Thanks.

  4. #4
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    82

    Re: How to find Heap Memory size?

    Oh I got you wrong!
    The code can be used in a java app to determine free space....
    Without using a java app I don't know how to solve your problem, sorry.

  5. #5
    Regular Contributor
    Join Date
    Mar 2005
    Posts
    249

    Re: How to find Heap Memory size?

    Imho, Just get the phone to send the size using the above method(s) as a variable to the page and have the page return the result - a link.

Similar Threads

  1. Max jar file size and heap memory for Black Berry Devices.
    By pankajbakal in forum Mobile Java General
    Replies: 0
    Last Post: 2005-04-30, 06:50
  2. Max Heap Size, outofmemoryerror
    By only_loooser in forum Mobile Java General
    Replies: 1
    Last Post: 2004-08-06, 04:40
  3. Negative Heap size in Nokia 7210i simulator
    By vanvu in forum Mobile Java General
    Replies: 2
    Last Post: 2003-10-29, 22:11
  4. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29
  5. About control heap memory size of Emulator...
    By hataijin in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2002-08-09, 07:51

Posting Permissions

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