Filip Konvička wrote:
[...] I just want to know why the ozengine.exe process consumes hundreds of MB while the heap size is merely 20 MB according to {Property.get 'gc'}.active.

Many GC'd language implementations don't give memory back to the OS if the
size of the heap decreases. This is not necessarily a big problem, because
pages that are not actively used will be paged out if other processes need
that memory. However it can make the the OS's memory usage statistics difficult
to interpret.

It seems that you're using Windows. In Task Manager, choose 'Select columns...'
in the View menu, and tick 'VM Size'. Run your program until it has allocated
a lot of memory and then GC'd it. Then try running another memory-intensive
program, and see whether the resulting memory pressure causes some of the
memory reserved by ozengine.exe to be paged out -- if this is the case, you
should see that the 'Mem Usage' field for ozengine.exe decreases while the
'VM Size' field stays high.

(If 'Mem Usage' stays high, then so much for this theory; you probably have
a real memory leak.)

--
David Hopwood <[EMAIL PROTECTED]>



_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to