I recently worked with WSO2 Message Broker(Ver: 3.1.0) to publish and consume messages using JMeterjms as a client. So, I have my program for the publisher, where I publish messages, and I try to publish 4000 messages per second. If necessary, I could provide a snippet.
I use these messages by running the command JMeter jmeter -n -t C:\Users\ctsadmin\Downloads\wso2MB\apache-jmeter-2.13\bin\GamesSubscriber.jmx -l C:\Users\ctsadmin\Downloads\wso2MB\apache-jmeter-2.13\bin\mytest_results.jtlin headless mode. I also opened a window VisualVmto see the memory consumption for the test. For the first 15 minutes, the publication and consumption were in order, as shown in the image below, but after that it suddenly VisualVmshowed ads and memory runs out. I am attaching a screenshot VisualVmbelow.

heap dump WSO2 MB, JProfiler. .

? ? - heap? .
EDIT: .