Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / February 2004

Tip: Looking for answers? Try searching our database.

JVM doesn't free memory on WIndows 2000

Thread view: 
Anders F Jansson - 25 Feb 2004 14:13 GMT
Hi!

Does anyone have a solution or workaround for the following problem;

We run a GUI-application for 48 hours. We have intensive CORBA communication
and presents the result in a map (based on ILOG software). We have tested
our application with JProbe and it seems like we haven't got any memory
leaks.

We start our application with an initial heap of 256M and a maximum heap of
256 M. When we check in the Windows task manager we see that the jvm process
consumes roughly 340 M. The total memory consumed in the windows system sums
up approximately to the total som of memory used by the kernel and the
processees.

After 48 hours we check the task manager again. Now the memory consumed in
the system is 1.2 GB. According to the task manager the java process has
still 240 M allocated. The total sum of all process and kernel memory
doesn't match 1.3 GB by far.

But when I kill the JVM all memory is made free! It seems like the JVM
itself holds memory that is not reported free to the operating system.

br

/Anders Jansson
Mark A. Washburn - 26 Feb 2004 17:08 GMT
If you get then same results with Linux then
"JVM doesn't free memory on ..." is a reasonable
question, otherwise, however, the question maybe
a problems with Win 2000, restating the assertion
as "Windows 2000 doesn't free memory deallocated
by JVM X.X"

Also, have you tried forcing GC?

Have you tried Thread.sleep(XXXX)?  ( to permit
Windows 2000 time to garbage collect it's heap.)

Mark A. Washburn
maw

http://mywebpage.netscape.com/mawcowboy/homepage.html
http://www.geocities.com/dolphinconsultant/myforth.html


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.