title: "ActiveMQ Broker[localhost] Scheduler" java.lang.OutOfMemoryError: GC overhead limit exceeded && Exception in thread "ActiveMQ Transport Server: "
body: <p>Getting below exception in application startup log, after 5 to 1 week gap.</p>
  
  <pre><code>Exception in thread "ActiveMQ Broker[localhost] Scheduler" java.lang.OutOfMemoryError: GC overhead limit exceeded
      at org.apache.activemq.command.ActiveMQDestination.getQualifiedName(ActiveMQDestination.java:232)
      at org.apache.activemq.broker.region.Queue.expireMessages(Queue.java:928)
      at org.apache.activemq.broker.region.Queue.access$100(Queue.java:106)
      at org.apache.activemq.broker.region.Queue$2.run(Queue.java:149)
      at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
      at java.util.TimerThread.mainLoop(Timer.java:555)
      at java.util.TimerThread.run(Timer.java:505)
  
  Exception in thread "ActiveMQ Transport Server: ssl://&lt;ip&gt;:&lt;port&gt;?socket.needClientAuth=true" java.lang.OutOfMemoryError: GC overhead limit exceeded
          at sun.security.ssl.InputRecord.&lt;init&gt;(InputRecord.java:93)
          at sun.security.ssl.AppInputStream.&lt;init&gt;(AppInputStream.java:50)
          at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:640)
          at sun.security.ssl.SSLSocketImpl.&lt;init&gt;(SSLSocketImpl.java:524)
          at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:343)
          at org.apache.activemq.transport.tcp.TcpTransportServer.doRunWithServerSocket(TcpTransportServer.java:403)
          at org.apache.activemq.transport.tcp.TcpTransportServer.run(TcpTransportServer.java:325)
          at java.lang.Thread.run(Thread.java:748)
  Exception in thread "pool-3-thread-123443" Exception in thread "ActiveMQ Broker[localhost] Scheduler" Exception in thread "pool-3-thread-123443" java.lang.OutOfMemoryError: GC overhead limit exceeded
  </code></pre>
  
  <p>and application got killed after writing the GC statement.</p>
  
  <p>Can anyone please help me on these issue to get more understanding on solution perspective.</p>
  
  <p>Note: Not changed the default system usage memory comes with activemq. This entire application is to consume messages from activemq queue ssl://:?socket.needClientAuth=true. should i need to modify the broker URL to add anything? please help</p>