I have a JMS Service that handles DB query data fetching and setting them in Objects and returning the ArrayList of Objects (~3000 of size) to the calling client. I use active mq to implement the JMS. My doubt is my JMS service dies of OutOfMemoryError after handling some requests. Is there a chance that JMS does not release the resources after it sends the messages back to the client. The client and server uses Serialized classes for communication.
There are many java files with many lines of codes in them. I dont think I have the possibility of posting it here. Its just a general question i had. Is there a possibility that JMS holds the resources it uses to calculate or address a client request even after replying to the message?
Here is the stack trace for the issue. Might be an ActiveMQ issue.
Exception in thread "Thread-43" java.lang.OutOfMemoryError: Java heap space
Exception in thread "InactivityMonitor WriteCheck" java.lang.OutOfMemoryError: Java heap space