Results 1 to 2 of 2
  1. #1
    itaipee is offline Member
    Join Date
    Dec 2008
    Posts
    99
    Rep Power
    0

    Default ow many objects I have open in the memory

    I have memery problem ( standard GUI application that consume 700MB when it open more then a few days) I guess -some object were not deleted at the end of the method that open these object

    How can I have some report that tell me how many objects I have open in the memory - for each Class for example


    My class and java class

    something like that
    class name objects in memery

    javax.swing.JOptionPane 221
    javax.swing.JScrollPane 101
    myPackage.myClass 222

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

    Default

    Take a heap dump with something like jmap, and feed it into an analyser (Eclipse has a fairly decent one), which'll often point you in the direction of your leak.

Similar Threads

  1. Different Files Open in File -> Open Workspace
    By mgm2010 in forum JCreator
    Replies: 0
    Last Post: 04-11-2009, 02:14 PM
  2. Replies: 1
    Last Post: 01-22-2009, 04:25 PM
  3. Jotm (Java Open Transaction Management)- Heap Memory Issues
    By hariprashanth in forum Advanced Java
    Replies: 0
    Last Post: 12-18-2008, 11:42 AM
  4. Replies: 2
    Last Post: 08-21-2008, 07:33 PM
  5. Memory
    By mew in forum CLDC and MIDP
    Replies: 0
    Last Post: 12-28-2007, 11:02 AM

Posting Permissions

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