Can you try using the binding from the marketplace linked below and tell us if it logs any WARN messages?
What makes you think you are running out of memory? Used memory does not mean what you probably think it does, use the binding below and it will log into DEBUG level the amount of ram that you actually have left in plain English.