Why my CMS consumer application throws "Java Heap Space" exception
Issue
- I am using OpenWire ActiveMQ CMS client. I don't have Java code at all. When I am performing testing sometimes I met
Java Heap Spaceexception and consumer application aborted. The exception was captured by the CMSException:
// If something bad happens you see it here as this class is also been registered as an ExceptionListener with the connection.
virtual void onException(const CMSException& ex AMQCPP_UNUSED) {
printf("CMS Exception occurred. Shutting down client.\n", ex.getMessage().c_str());
exit(1);
}
I don't understand why the C++ Client throws Java exception. Does ActiveMQ CMS framework have any Java code that may cause the issue?
Environment
- Red Hat AMQ
- 6.x
- OpenWire ActiveMQ C++ Client (CMS)
- 3.9.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.