Let me second everything that Aaron mentioned.
Please post some code that demostrates your trouble and we will take a look.
Gnerally I have to say that RT applications are rather demanding in the area of memory.
I find myself avoiding data types that can vary in size, like strings. These can demand increases in buffer allocations such that the buffer previously allocated are insufficient, are tossed on the heap and another larger block is allocated. Too much of this happening can kill you in RT. Building strings is bad.
Building arrays is just not allowed.
LV2 globals (when properly coded) are useful in keeping memory useage static or diminishing. This dovetails with Aarons circular buffer.
Review all code that is executed repeatedly using
Tools >>> Advanced >>> Show Buffer Allocations
In a nutshell, one or more of thes is killing you.
Post your code so we can make specific suggestions.
Trying to help,
Ben