How to free memory?Dispose doesn't work

Hi to everybody!
I've a big problem. In my program I open a JFrame where I render a java3d scene.
When I close this JFrame,calling dispose,memory remains always busy.
I try to put all objects to null, and call System.gc()....but nothing memory always remain busy.
So,considering that each JFrame is about 30 Mb, when I reopen this frame for 2 or 3 times I get
a Java.lang.OutOfMemory errror.
Can Anybody help me ???? PLEASE ,I'm going crazy !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Hi !
Thanks for your answer!
jshell I can't understand your request.Why I've to load a file? My programm generates 3d scene dinamically.
Maybe I can separate in 2 this programm,transforming 3d visualization in a separate programm.So when I close this second programm,the first one continue to run.
Can you tell me how to lunch a second programm inside my class,in a second javaw?
Thanks

Similar Messages

  • Jdev11g CPU profile and Memory Profile doesn't work for Mac

    I'm running Jdev11g on Mac OSX 10.5.5,
    CPU Profile and Memory Profile doesn't work. I got following message:
    Error occurred during initialization of VM
    Could not find agent library in absolute path: /Shared/jdevjavabase11110/jdeveloper/jdev/lib/profiler16.so
    The file actually is there. I don't understand why they looking for .so file, it supposed to be mapped as .jnilib on Mac.
    This is broken on TP4 as well.

    I'm still seeing this issue. Here is what I get:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -client "-agentpath:/Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler16.so=port=60950,jarpath=/Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler-agent.jar,enable=t,depth=1000,startup=connect,time" -classpath /Users/kamleshnanda/jdeveloper/mywork/MyJavaApplication/Project1/classes project1.Class1 Hello
    Error occurred during initialization of VM
    Could not find agent library in absolute path: /Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler16.so
    Process exited with exit code 1.
    I'm using the following build:
    About
    Oracle JDeveloper 11g Release 1 11.1.1.2.0
    Java Edition Version 11.1.1.2.0
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Copyright © 1997, 2009 Oracle and/or its affiliates. All rights reserved.
    IDE Version: 11.1.1.2.36.55.36
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.2.36.55.36
    Version
    Component     Version
    =========     =======
    CVS Version (External)     (CVS) 1.12.13 (client/server)
    Java(TM) Platform     1.6.0_17
    Oracle IDE     11.1.1.2.36.55.36
    PMD     JDeveloper Extension 4.2.5.3.0
    Team Productivity Center     11.1.1.2.36.55.36
    Versioning Support     11.1.1.2.36.55.36
    Here are the JVM properties:
    java.runtime.name     Java(TM) SE Runtime Environment
    java.runtime.version     1.6.0_17-b04-248-10M3025
    java.specification.name     Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.6
    java.vendor     Apple Inc.
    java.vendor.url     http://www.apple.com/
    java.vendor.url.bug     http://bugreport.apple.com/
    java.version     1.6.0_17
    java.vm.info     mixed mode
    java.vm.name     Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor     Apple Inc.
    java.vm.version     14.3-b01-101
    Here is the OS information:
    os.arch     x86_64
    os.name     Mac OS X
    os.version     10.6.2

  • How come free memory will be more than physical memory?

    Hello Guruz,
    Interesting, I installed one zone with 1Gb dedicated memory, But when I type top command I am getting o/p as below.
    Memory: 1024M phys mem, 1972M free mem
    How come free memory will be more than physical memory?
    If that so, how can we get exact memory utilization on non-global zones.
    Thanks in advance.
    Thanks & Regards
    Prakash K
    Off: +91 2022970906

    Hi Prakash,
    Please run the following command on the Global Zone and Non - Global Zone and upload the output.
    # prtconf |grep -i memory
    SK

  • Set get parameter but free memory id is not working

    Hi All,
    I am using set get parameter  to transfer data from one module to another .
    But when i am trying to clear the memory id using Free memory id .
    it is not doing that.
    Does it work with import export.
    What method i should use to clear this memory id ..
    Thanks in advance
    ANit gautam

    Clears the memory:
    SET PARAMETER ID pid FIELD space.

  • Why "free newlines Symbol" doesn't work? How to set it?

    I hope to wrap here,But it has no reaction.
    I does not get to know, How to set "free newlines symbol"
    Thank  you~
    The Sample files is here(ID CS6)

    If you want to share the file, please find a service that does not trigger virus warnings...
    If you post some screen shots, maybe we can tell what's going on without the file.

  • XMLTYPE.createxml - how to free memory?

    I use XMLTYPE.createxml to generate XML and my PGA memory use skyrockets. How can I free it?
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> select  n.NAME, t.VALUE
      2    from v$mystat t, v$statname n
      3   where t.STATISTIC# = n.STATISTIC#
      4     and n.NAME like 'session%memory%'
      5   order by name;
    NAME                                                                  VALUE
    session pga memory                                                  2236760
    session pga memory max                                              2236760
    session uga memory                                                  1729280
    session uga memory max                                              1729280
    SQL> declare
      2    v_ref_cur sys_refcursor;
      3    v_xmltypebuf XMLTYPE;
      4  begin
      5    for i in 1..10000 loop
      6       open v_ref_cur for select * from dual ;
      7       v_xmltypebuf := XMLTYPE.createxml(v_ref_cur);
      8       close v_ref_cur;
      9    end loop;
    10  end;
    11  /
    PL/SQL procedure successfully completed.
    SQL> select  n.NAME, t.VALUE
      2    from v$mystat t, v$statname n
      3   where t.STATISTIC# = n.STATISTIC#
      4     and n.NAME like 'session%memory%'
      5   order by name;
    NAME                                                                  VALUE
    session pga memory                                                101458264
    session pga memory max                                            101458264
    session uga memory                                                 99764800
    session uga memory max                                             99764800Thank you in advance,
    Tony

    Given you are on 11.2, I would open a bug with Oracle regarding this issue. It should not be leaking memory like this and you have a nice simple test case to work from. I tried some other variants including using DBMS_SESSION.FREE_UNUSED_USER_MEMORY; and none of them leaked memory in the first place. Here, for all to see, is your example using DBMS_SESSION.FREE_UNUSED_USER_MEMORY; and showing no change in memory used.
    Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
    SQL>
    SQL> select n.NAME, t.VALUE
      2    from v$mystat t, v$statname n
      3   where t.STATISTIC# = n.STATISTIC#
      4     and n.NAME like 'session%memory%'
      5   order by name;
    NAME                                                                  VALUE
    session pga memory                                                  1767576
    session pga memory max                                              1767576
    session uga memory                                                  1362360
    session uga memory max                                              1362360
    SQL> declare
      2     v_ref_cur sys_refcursor;
      3     v_xmltypebuf XMLTYPE;
      4  begin
      5     for i in 1..10000 loop
      6         open v_ref_cur for select * from dual ;
      7         v_xmltypebuf := XMLTYPE.createxml(v_ref_cur);
      8         close v_ref_cur;
      9     end loop;
    10  end;
    11  /
    PL/SQL procedure successfully completed
    SQL> select n.NAME, t.VALUE
      2    from v$mystat t, v$statname n
      3   where t.STATISTIC# = n.STATISTIC#
      4     and n.NAME like 'session%memory%'
      5   order by name;
    NAME                                                                  VALUE
    session pga memory                                                122550424
    session pga memory max                                            122550424
    session uga memory                                                121357872
    session uga memory max                                            121357872
    SQL>
    SQL> select n.NAME, t.VALUE
      2    from v$mystat t, v$statname n
      3   where t.STATISTIC# = n.STATISTIC#
      4     and n.NAME like 'session%memory%'
      5   order by name;
    NAME                                                                  VALUE
    session pga memory                                                122550424
    session pga memory max                                            122681496
    session uga memory                                                121357872
    session uga memory max                                            121481324
    SQL> -- Several minutes later
    SQL> /
    NAME                                                                  VALUE
    session pga memory                                                121895064
    session pga memory max                                            122681496
    session uga memory                                                121292408
    session uga memory max                                            121481324
    SQL> begin
      2     DBMS_SESSION.FREE_UNUSED_USER_MEMORY;
      3  end;
      4  /
    PL/SQL procedure successfully completed
    SQL>
    SQL> select n.NAME, t.VALUE
      2    from v$mystat t, v$statname n
      3   where t.STATISTIC# = n.STATISTIC#
      4     and n.NAME like 'session%memory%'
      5   order by name;
    NAME                                                                  VALUE
    session pga memory                                                121698456
    session pga memory max                                            122681496
    session uga memory                                                121096016
    session uga memory max                                            121481324So I went on to testing alternatives using your structure to verify where the leak was and what could be causing it.
    1) Using just
    v_xmltypebuf := XMLTYPE(v_ref_cur);
    produced the same results as above
    2) Commenting out that line produces memory results in line with my first sample in the previous post, where memory is freed up shortly after execution is done.
    3) Using again
    v_xmltypebuf := XMLTYPE('<root/>');
    does not produce a memory leak,
    4) Sending in a CLOB CLOB set outside the loop to '<root/>' does not produce a memory leak.
    5) Using ANYDATA uses a lot of memory but that gets freed up automatically
    Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
    SQL>
    SQL> select n.NAME, t.VALUE
      2    from v$mystat t, v$statname n
      3   where t.STATISTIC# = n.STATISTIC#
      4     and n.NAME like 'session%memory%'
      5   order by name;
    NAME                                                                  VALUE
    session pga memory                                                  1767576
    session pga memory max                                              1767576
    session uga memory                                                  1362360
    session uga memory max                                              1362360
    SQL> declare
      2     v_ref_cur sys_refcursor;
      3     v_xmltypebuf XMLTYPE;
      4  begin
      5     for i in 1..10000 loop
      6         open v_ref_cur for select * from dual ;
      7         v_xmltypebuf := XMLTYPE(anydata.convertVarchar2('root'));
      8         close v_ref_cur;
      9     end loop;
    10  end;
    11  /
    PL/SQL procedure successfully completed
    SQL> select n.NAME, t.VALUE
      2    from v$mystat t, v$statname n
      3   where t.STATISTIC# = n.STATISTIC#
      4     and n.NAME like 'session%memory%'
      5   order by name;
    NAME                                                                  VALUE
    session pga memory                                                 90831000
    session pga memory max                                             90831000
    session uga memory                                                 89477120
    session uga memory max                                             89477120
    SQL> /  -- one minute later
    NAME                                                                  VALUE
    session pga memory                                                  2095256
    session pga memory max                                             90962072
    session uga memory                                                  1624216
    session uga memory max                                             89600572I don't have everything setup to test a BFILENAME alternative yet but I'll try to get that setup done and update once done.
    Marco, see anything I missed?

  • HT201359 I made an apple id for free, but it doesn't work. I don't know what can I do.

    I saw in utube, how to make an apple id for free, but can't use it, it says my id can't be verified.

    By 'did not work' you mean ... ? Do you get any error messages ?

  • Why the dispose() doesn't work

    I have these code which pop up a dialog window for adding new record to my table but after that the dialog box stay there eventhough I call the dispose() funtion for closing dialog window. How can I make it work.
    public void AddRecord()
    JButton Done;
    final int r = Postings.getRowCount();
    final UnitDiaryPosting udp = new UnitDiaryPosting(editFrame);
    Done = udp.getAction();
    Done.setText("Done");
    Done.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    String t[] = udp.getInformation();
    mytable.addRow(t);
    mytable.fireTableRowsInserted(0,r+1);
    udp.dispose();
    }

    dispose () does not close windows! dispose () attempts to release resources held by the window. Try calling hide () or setVisible (false) before calling dispose ()

  • How to free memory,taken by 'Saved Messages' ??

    Has anyone figured this one yet ? After deleting all message threads ,under  ' Usage ' , ' Saved Messages ' still takes up a lot of memory . The only solutions I have found involved downloading some shady 3rd party app. Has anyone figured another way or does anyone know if apple is doing something about that issue ?

    a short and correct answer would be: you can't.
    As oracle uses a fair amount of shared memory, and that shared memory is attached to most of the oracle processes, the same memory appears a number of times.
    you should rephrase your question / what is it you want to achieve?
    you can ask oracle how much memory is assigned to it, v$sga, v$sgastat, v$process (for PGA). moreover, you as DBA are the one who configured that.
    you can look at major an minor faults per process to see what is causing the paging (if you have any).
    you can also look at the /proc/pid/statm pseudofilesystem for your oracle pids.

  • Satellite A60 memory upgrade doesn't work - help

    Hi, I have a Satellite A60-793 and I would like to upgrade the memory adding a 512 MB to currently installed memory.
    I tried to install a 512MB PC2700 DDR 333MHz SODIMM module, but system won't boot up: it emits a long whistle, then shuts down automatically. If I remove the module, system boots properly.
    I've allready updated my BIOS, i there anything more I can do to make it work?

    Well I apreciate your attention.
    But I still have a doud here, do you think it may be solved if I change the actual 8chip module for one 16chip module low density with the same caracteristics? I was told these were more compatible modules.
    Any advise for this?
    Thanks!
    David

  • Photoshop Elements12 free trial install doesn't work

    I'm a longtime Photoshop/mac user and am trying to download a trial version of Photoshop Elements 12 so that I can figure out and then show a client how to do something with it. The download assistant has been hung at "l...

    Try this link:
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us&PID=2159997
    Using the Adobe Download Assistant to find and install the product is normally the most straight forward method of installation.
    N.B. For PSE12 you need Mac OS X v10.7 through v10.9

  • A free program that doesn't work??

    I am new to my mac and I downloaded the freeware 'Plot 0.992' from the Mac downloads page. Well, stuffit expander did its thing and I have a Plot folder on my desktop with the program inside.
    When I click of the program Plot appears on my toolbar, and bounces a couple of times, and then disappears again. I never get to try the program out. Any ideas?
    Also, I downloaded another freeware program and what I think is the program itself looks like a document icon. I click 'get info' and it tells me it is a document. Is there a way to tell? If this is an installer then what can I use to open it?
    G4 dual 512 proccessor   Mac OS X (10.2.x)   HUGE SPEAKERS!!!!

    drum_mind,
    Yes, as Donny suggests, the System Requirements are for 10.4 and later. Have a look at this page for the SR's:
    http://www.apple.com/downloads/macosx/math_science/3ddatavisualizer.html
    hope that helps some,
    littleshoulders [:-)

  • How come my Apple ID doesn't work on my iphone?

    When I try and type in my Apple ID with my iphone it locks me out and tells me to reset the password. Can anyone tell me what to do?

    Did you buy the phone used? You've run into activation lock. It can only be activated using the credentials used to set up Find my iPhone on the device.
    If you don't have that information,  then you need to contact whoever you got the phone from. Only the owner of the account it is locked with can remove the lock. Other than that, there is no way to bypass the lock. It is designed as a theft deterrent that will render the phone useless to anyone other than the rightful owner.

  • How come "INTEL APP ACCELERATOR" doesn't work with the 875p NEO?

    i tried both versions, the raid and normal. says my hardware isnt compatible or cant be found or something like that. anyone got it running on there 875p? is there a patch or something, adifferent version im missing or something?

    On the Intel site where(I hope) you downloaded the APP Accelerator, if you scroll down the page http://www.intel.com/support/chipsets/iaa/> you will come across a line that says "Supported Chipsets". Click on it and read it. It tells you everything you need to know. The Intel Chipset Software Installation Utility, or INF Chipset utility, is already optimized for these chipsets. Use that instead. That is what is used for the new chipsets. DO NOT GORGET to uninstall APP Accelerator, or you might have problems. Good Luck!

  • Back Button Doesn't Work on Some Websites

    How come my Back Button Doesn't Work on Some Websites? It just keeps redisplaying the same page over and over. Example:
    http://abclocal.go.com/wabc/front

    Back button behaviour can be pretty wierd. I usually use the keyboard combination, but for some reason it doesn't work on PDF's and I have to end up using the graphical back button.
    There are some websites out there that for some reason or another break the Back button's behaviour. Sometimes I have to hold down the mouse button to get the back button menu in order to work around that problem.
    In another case there was this page in Amazon that wouldn't allow me to go back to. Everytime I went to that page the browser to automatically kick me to the next page. I had to disable javascript to work around that problem.

Maybe you are looking for