Producer stops producing messages after producing 1542 messages.

2008-08-30 Thread Jigar Naik
hi i am facing problem with producer, My producer stops producing messages after producing 1542 messages on active mq bellow is my output after running producer thread OUTPUT Message Sent : Hello This is a text message on active MQ : 1542 Exception in thread ActiveMQ Transport:

Re: Producer stops producing messages after producing 1542 messages.

2008-08-30 Thread Mario Siegenthaler
I'd say you run out of memory on the broker due to a memory leak in the connection handling, every closed connection leaves a thread open and still hogs some memory. You can check that with jConsole. Can you try reusing or pooling the connections? There's a PooledConnectionFactory that does this.

Re: Producer stops producing messages after producing 1542 messages.

2008-08-30 Thread Jigar Naik
yes you were right. connection.close(); was missing in finally block... and now the program is working fine... }finally{ producer = null; connectionFactory = null; connection = null; session =