×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    12

    Smile HashTable - Out of Memory

    Hi,
    I am using an Hashtable in my application. Some 'n' modules are accessing that
    HashTable.Each module is inserting some data and the same data is accessed by all modules at
    different stages throughout the lifecycle of the application.

    Now the problem is the usage of Heap memory by the HashTable. In the sense some data
    in the Hashtable may not be accessed for a very long which will be unnecessarily occuping the Heap
    memory. So in this case how to overcome the out of memory situation or clean up the memory
    at regular intervals.

    Kindly help me in resolving this issue.

    Thanks & Regards,
    Sakthi

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

    Re: HashTable - Out of Memory

    well you can remove items yourself from the HashTable...
    Or maybe try to use weakreferences, if I'm not mistaken Graham once posted some information regarding that on the forum, so you might want to use the Search...

  3. #3
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    53

    Re: HashTable - Out of Memory

    What kind of data you saved in HashTable ? Use can use switch ...case instead of using Hashtable and implement your logic.
    Keep all the keys as integers and use case <integer1> : <do_some_operations>.

Similar Threads

  1. memory jump while running game
    By TacB0sS in forum Mobile Java Games
    Replies: 21
    Last Post: 2009-06-20, 11:56
  2. Excessive midlet memory consumption
    By paulip in forum Mobile Java General
    Replies: 1
    Last Post: 2007-10-09, 19:24
  3. Hashtable memory performance
    By yonan32 in forum Mobile Java General
    Replies: 0
    Last Post: 2004-02-18, 06:30
  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. 9210 and 9210i java memory
    By allams in forum Mobile Java General
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

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