you can configure persistence, see documentation for more details. With that process instances remain in memory only for duration when they are actually executing and stored in db in wait states.
HTH
Reply to this message by going to Community
Start a new discussion in jBPM at Community