You can configure the maximum memory used by the JMS cache. If there are more messages, they are written to the backup storage (ie database or file in older versions).
If the default memory is larger than the memory of your JVM,
then the OutOfMemory comes before the cache decides to swap out any messages.
thank you very much
I wonder if I need to set run.bat file for memory in Jboss?
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
and How can I check JVM memory?
Cuurenlty I don't set database from my queue, I know the messages are persistent. which file these messages are saved to?