On 3 November 2014 09:42, Vikas Agarwal <vi...@infoobjects.com> wrote:
> Hi, > > We are using ActiveMQ for 3+ years, however, we didn't test it under heavy > load. Recently, we started using ActiveMQ in another project where > sometimes load increases exponentially as we are listening to twitter > stream which can pile up a lot of messages depending of occurrence of some > global event like iPhone 6 launch. Now, what we are seeing in ActiveMQ > admin UI is that one of the queues gets piled up with thousands of message > ranging from 50k-100k. Now, sometimes (almost daily) the ActiveMQ crashes > Do you mean: 1. The queues have 50-100,000 messages each, or 2. The queues have thousands of messages each of which may be 50-100k in size? > in between of my sleeping hours. :( And the strange thing is that when try > to view the log file for the reason of the crash, I am not able to find the > activemq.log file at all. We earlier faced ActiveMQ crash issues, but that > Ensure you have INFO logging switched on and that AMQ writes to this log on start-up. Also, that log could be rotated - ensure the process has permission to write to it. > was due to producer flow control and we disabled that to fix the issue and > main point is that in those cases we never had the case where the log file > was missing. I have to restart the process to fix the issue and that too, > twice because on first restart, it shows error about missing or corrupt > data log. > > So, please suggest me where to look for such issue or what should be my > next move for debugging. I am stuck with missing log file. > > For information here are the memory settings: > > <systemUsage> > <systemUsage> > <memoryUsage> > <memoryUsage limit="*256 mb*"/> > </memoryUsage> > <storeUsage> > <storeUsage limit="*100 gb*"/> > </storeUsage> > <tempUsage> > <tempUsage limit="*50 gb*"/> > </tempUsage> > </systemUsage> > </systemUsage> > You might want to start here and work out the model of usage you're seeing: http://activemq.apache.org/javalangoutofmemory.html For instance: thousands of messages, few clients; or thousands of messages and lots of clients.