We have created Spring Listener/Consumer receives the messages form ActiveMQ and store it in RDBMS.This application runs continuously.we used ExecutorService for Listener to receive messages.Its threadpoolsize=15. If the application runs more than hours it stops with out of memory error.
- Someone please help to find the reason for this error.
- How the GC works with executorService,Since the service shutdown only when the application stops.