Hi zabutimaxim, thanks for your help
Sorry for my late reply but had a hard time fitting with other issues with
my application.
Don't know really what's inside the COM object but running the code for half
an hour, the working-set and virtual memory usages get 3 times bigger (in
task manager), and never really go down. Running on a server after few days,
the application took more that 1 GB of virtual memory.
Following statistics are coming from the application process object
properties:
Start
after 30 minutes
-------------- ------------
--------
WorkingSet: 42,352,640 77,643,776
VirtualMemorySize: 184,360,960 209,412,096
PagedMemorySize: 25,321,472 60,436,480
PagedSystemMemorySize: 88,836 83,052
NonpagedSystemMemorySize: 16,344 14,912
According to following thread there may be a bug in the .net 1.1 about
memory leak, has someone more info on that, is there anything I can do to
reduce that memory consumption ?
http://groups.google.be/groups?hl=fr&lr=&threadm=eogdroX9DHA.696%40tk2msftngp13.
phx.gbl&rnum=6&prev=/groups%3Fq%3DMaxWorkingSet%26hl%3Dfr%26lr%3D%26selm%3Deogdr
oX9DHA.696%2540tk2msftngp13.phx.gbl%26rnum%3D6
SChikh
zabutimaxim@hotmail.com - 20 Dec 2004 13:52 GMT
Hi,
I would suggest you to check if the COM you using has memory leaks.
Just write some test application in unmanaged language (VB 6.0 or
Delphi or C++)
that creates in inifinite loop the object, uses same methods that you
use in your
managed code and release the object. Put this test to work for night
and monitor
the Virtual Memory and Private Bytes perfmon counters. Be carefull not
to create
memory leaks in your own test, because it will confuse your analyzing.
For example if your test will write log information into some ListBox
control
then memory will grow up not because COM object, but because your
test:))
Hope this helps.