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.