The code mostly nullifies objects in finally block.Then the code is poorly written, and it therefore probably exhibits numererous other fallacies as well, some of which may be causing excess memory usage. Nulling out local references in finally blocks accomplishes precisely nothing, and strongly suggests that the authors lacked competence.
952687 wrote:Different machine, different environment, simply not the same. So different behavior.
the question is why same code runs out of memory in one server and not in another?