Article View: borland.public.jbuilder.java.swing
Article #7742Re: Why does my javaw.exe keep growing in size used in RAM?
From: Torsten Welches
Date: Sat, 06 Jan 2001 09:49
Date: Sat, 06 Jan 2001 09:49
45 lines
2596 bytes
2596 bytes
Matthew, which platform, which JDK do you use? What -Xms and -Xmx parameter values do you use? If you limit the vm to, say, -Xmx16m do you get an OutOfMemoryError? Did you check if garbage collection takes place? Did you try to "force" gc? What about the virtual machine memory, does it allocate 60 MB internally as well? You can check that with Runtime.getRuntime().totalMemory()/Runtime.getRuntime().freeMemory() You say you have "code to trim it to the size above and this is working" - are you referring to the 62 MB here? If so how do you do it? >Interestingly when I minimise the application all the RAM is released and it >goes back to 3-6 MB used. At least if you are under NT this is a normal behavior and it is in no way special to a java app. Try starting a bigger "native" app, activate the Task Manager, find the native process and check Mem Usage. Minimize it and check again. Typically if you restore it Mem Usage does not go as high as it was before minimizing it. This is an OS thing, not Java. Torsten Matthew Crosswell schrieb in Nachricht <3a56596d_1@dnews>... >I have a 10,000 byte JTextArea inside a jScrollPane and when I leave it >displaying output from a scheduled thread it consumes massive amounts of RAM >62MB was biggest seen yet. I have some code to trim it to the size above and >this is working. > >One idea that occured is that it could be pending region updates kept in RAM >can it? > >Interestingly when I minimise the application all the RAM is released and it >goes back to 3-6 MB used. > >What is going on? Am I missing something really simple. > >
Technical Details
Message-ID:
<3a56eab3$1_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fr.clara.net!heighliner.fr.clara.net!news.imp.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!213.168.73.223References:
<3a56596d_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,9d3514448c9e7f75 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-06 02:04:05 PST From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Newsgroups: borland.public.jbuilder.java.swing References: <3a56596d_1@dnews> Subject: Re: Why does my javaw.exe keep growing in size used in RAM? Date: Sat, 6 Jan 2001 10:49:20 +0100 Lines: 47 X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 NNTP-Posting-Host: 213.168.73.223 Message-ID: <3a56eab3$1_1@dnews> X-Trace: 6 Jan 2001 01:51:47 -0800, 213.168.73.223 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fr.clara.net!heighliner.fr.clara.net!news.imp.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!213.168.73.223