I spent the whole day debugging a process with a lot of stuff happening inside, going out of memory.
At the and of the day, the “solution” was to set the Workflow logging level from “Task success and failure with details” to “Task failure”. After that everything behaved as expected!
May I suggest that if your memory problem were due to the logging level of Workflow, you might need to increase you memory?
The logging only occurs once the process is finished. It is not written in live time. And for this to make any difference, you would need a production environment that has a very high load, hence, increasing the memory resources.