You are here

System.gc() and memory management

relihanl

March 31, 2014 - 9:35pm, 1555 views

Hi...

can anyone tell me how System.gc() is implemented for the EGS5, etc. When I issue this command, can I be sure that all garbage is collected? I'm suspicious as it seems to execute very quickly.

Also, what should happen when I run out of memory? In my application when free memory gets to about 112K, some of my threads terminate with no warning or Java exception.

L