Results 1 to 2 of 2
  1. #1
    oregon is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default swing application consumes much memory

    My swing application consumes the memory size of 50MB initially but If I open a new window the memory gets raised.
    If I closed that particular window which I have opened, the application doesn't released the memory.

    can you help me with this problem?

  2. #2
    cruxblack is offline Senior Member
    Join Date
    Jul 2007
    Rep Power


    50mb of memory?
    Wow that's a lot, for my computer spec that is, the largest program i ever use (excluding games that is) only reach 20 or 30
    What kinda application are u working actually?

    Memory release got some problem with garbage collector right?
    I haven't really understand that part, but maybe u should call the garbage collector explicitly instead of waiting for it to move on its initiative maybe?
    From what i read just yesterday, in JavaTips there if im not mistaken, garbage collector sometimes make the application a little slower cause it came at inproper times, maybe u should find some more info bout it
    And check ur default close operation also, just in case u miss some bugs or something, wouln't hurt to double check
    Sorry couldn't help too much :(


Similar Threads

  1. Out of memory
    By mew in forum New To Java
    Replies: 1
    Last Post: 01-20-2008, 09:55 AM
  2. EventHandling code for Swing application
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-07-2007, 01:06 PM
  3. Memory Leak using a Swing Application Project
    By iimasd in forum AWT / Swing
    Replies: 0
    Last Post: 11-27-2007, 11:20 AM
  4. Replies: 2
    Last Post: 07-04-2007, 06:58 AM
  5. Problems with consumes a lot of system resources
    By Eric in forum Advanced Java
    Replies: 2
    Last Post: 07-03-2007, 06:23 PM

Posting Permissions

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