Can I allocate memory to a specific java process (jms listener process)? -


i have create jms client application multiple messagelisteners, , want allocate specific memory each messagelistener (i create separate process each one). there way programmatically in java?

i have read comments below query , after understanding why trying do, imho, got below suggestions side:

the famous performance rule "measure & don't guess".

so measure performance peak load & know break point load. once execute performance tests, measure/find statistics , know application capable of. also, ensure doing right amount of resilience (non-functional) tests.

then according performance findings/results:

(1) configure jvm (one process) memory arguments properly

(2) choose right gc algorithm

if follow these rules, there no need go messagelistener level tuning.


Comments