I have a cookbook where we generate a particular execute resource in a loop. Recently, the number of items in the loop has been growing so large that the chef-client runs out of memory trying to hold all of the execute resources in memory.
I have tried adding execute_resource.run_action(:run) in the hopes that it would simply execute the resource at compile time and then not have to hold them all but to no avail.
Any thoughts on how we could prevent chef-client from running out of memory while attempting to do this??