V
Velmurugan
hi
can we prevent a garpage Collection in java
if so how is it possible
can we prevent a garpage Collection in java
if so how is it possible
hi
can we prevent a garpage Collection in java
if so how is it possible
Ingo said:Hi,
Or... Yes - simply keep a reference to the Object you want to prevent
from being collected.
Or... Please describe your question in detail.
Go not to the Internet Elves for advice, for they will say both "WTF,
dude?!?" and "RTFM!!" ;-)
hey
not in program
while running the program is there any option to prvent the garpage
collection daemon
it means i ma talking abt garpage collectioon daemon
Velmurugan said:can we prevent a garpage Collection in java
if so how is it possible
Why?
Hi,
Then, the above answer is correct. The only possibility to influence the
GC is to use the commandline options and to call System.gc() (which does
the opposite of "preventing" gc).
Ciao,
Ingo
harborsparrow said:Usually the GC daemon will only "take over" if the heap has become
full. Possibly this can be made to happen much less often by properly
disposing of objects as you go along. If you are creating really
large objects in the heap and not disposing them properly, the GC will
have to run.
Ingo R. Homann said:Hi,
Then, the above answer is correct. The only possibility to influence the
GC is to use the commandline options and to call System.gc() (which does
the opposite of "preventing" gc).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.