Hi,
klar02 wrote:
We have a web server with 2GB of physical memory on it and we are seeing the
memory usage running over 800,000KB in Task Manager. We have seen instances
where the memory being this high(due to problems with ColdFusion) has caused
the server to hang but this server is not hanging. Can anyone give me a
little insight on when garbage collection should run and if it should be
running before we get to 800,000KB(800MBG)? We are wondering if the server
is just idle enough and the memory is not needed so garbage collection is
not running. We are receiving only about 70 applicants of the application
per day so I don't think the server is overwhelmed with traffic either.
If anyone has any thoughts on this I would certainly appriciate it.
Thanks!
Andy
This amount of memory lets me think that you have a memory leak
somewhere. We also had some in the beginning in our project, and had the
server hit 1GB RAM sometimes under stress conditions. The problem with
memory leak is that the GC cannot collect the garbage, as it is
circularly referenced. I recommend to check your code carefully for
circular references, etc... and to make sure that you release your
objects when they are not used anymore (sometimes simply setting them to
null helps). There are also tools available for this kind of search, but
I am not a specialist of them.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:
http://www.galasoft-LB.ch
Private/Malaysia:
http://mypage.bluewin.ch/lbugnion
Support children in Calcutta:
http://www.calcutta-espoir.ch