Whether the objects removed from a vector will be gc'ed?.
I am having a vector which will store application specific alarm records. The vector grows slowly in normal working condition. In some error conditions the the vector will grow very fastly. The condition is that the vector can have maximum of 4000 records. If it reaches beyond the limit then the oldest records to be removed from the vector and to maintain the size to 4000. When I am removing the oldest records they are not reclaimed from the memory by the GC, eventhough I forced the GC. So the memory size continuosly increasing for the process (thru' ps -aux). How to avoid the situation. I will be happy if anybody give solution that will work in java1.1.6