I have CFC as a single object in the application area.
One of the methods is used for massive data processing and periodically causes Java heap space errors.
EDIT All the variables inside the VAR region method, so they should not be stored in the object region at the end of the call.
This might be a bit of a dumb question for Java people, but I would like to know how the Java garbage collector clears the memory of CFC methods: only when the whole request is completed or maybe right after every method / function call
The second option is interesting in that it allows me to divide my large method into several, as one of the possible optimizations.
source share