The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Garbage collector

Posted by Sneha on December 26, 2000 at 1:04 AM

Hi
We had written a batchprogram in java which will do lot od db processing.
It is using lot of ResultSet objects,Transcation Objects etc.....
to support batch updates.

just before completion of the execution i am assigning null to
all objects which were created earlier.
and i am calling System.gc();
i know we can not predict when gc will be invoked.

After executing this program we are not able to do any thing in that machine as
it is giving outofmemory error always.
I dont have any alternative than restarting the machine.

So Please if any body suggests some solution it will be a great help.

Thanx & Regardss
Sneha




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us