×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    46

    Memory Full problem

    Hi all,
    I am developing a multimedia messaging application. My app has become so large and it uses a large amount heap.
    At some times I catch outofmemory error and also run the GC.
    But main problem is that still it is not releasing memory and about running application after 2-3 hours it goes out of memory again.
    And now at this time even it does not come in "catch(OutofMemoryError me)" block. and my application exits.

    Is there any known bug in KVM related with memory or GC is not implemented efficiently in KVM or this bug is related with phone.

    I am using Nokia's high end devices of 40 series like 6300, 5300, 6233 etc.


    Please let me know if you guys know any issue related with this.
    Regards,

    Vishal

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Memory Full problem

    You cannot catch an Error, only an Exception. If the application runs out of memory, then the application will just exit. You have to be careful with you memory use. Try to cache/pool objects.

    See also an on-going discussion on KVM mailing list
    http://archives.java.sun.com/cgi-bin...vm-interest#13

    Hartti

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    46

    Re: Memory Full problem

    Hi Hartti,


    I got some knowledge about memory by the topic you refer to me.

    Thanks alot
    Regards,

    Vishal

  4. #4
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Memory Full problem

    In case you have missed, please do check for some memory leaks. If you are using Players, hope you have tried with closing the unwanted(no longer used) players and making the player object to null.

    Also give a try with optimising your code. Juarez has already posted some memory related tips here.
    http://discussion.forum.nokia.com/fo...00&postcount=7

    May be of some interest to you.

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

Similar Threads

  1. VERY strange memory full problem..
    By etamburini in forum Mobile Java General
    Replies: 9
    Last Post: 2005-05-17, 15:50
  2. Full canvas problem in Nokia 7650
    By chandanp in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2002-10-01, 15:00
  3. Problem using Full Canvas
    By chandanp in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2002-08-30, 04:49
  4. Internet : Memory Problem
    By raj_vijayarajan in forum Symbian
    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
  •  
×