Garbage collecting at ColdFusion CFC
Posted
by Sergii
on Stack Overflow
See other posts from Stack Overflow
or by Sergii
Published on 2010-03-15T16:22:56Z
Indexed on
2010/03/15
18:49 UTC
Read the original article
Hit count: 352
Hello.
I have a CFC as singletone object in Application scope.
One of the methods is used for massive data processing and periodically causes the "Java heap space" errors.
EDIT All variables inside the method are VAR-scoped, so they should not be kept in the object scope when invokation ended.
It can be a bit dumb question for Java people, but I'd like to know how Java garbage collector cleans up the CFC methods memory: only when whole request ends, or maybe right after each method/function invokation?
Second option is interesting because it can allow me to split my large method into the few, as one of the possible optimizations.
© Stack Overflow or respective owner