Jruby.memory.max and non-threadsafe mode

Hopefully this is an easy question but I couldn’t seem to find it
online…

Does the “jruby.memory.max” setting apply to each “runtime” in a
Glassfish environment running in non-threadsafe mode? Or is this applied
somehow across all runtimes?

Thanks!

John