I am working with HornetQ 2.2.5 Final and JAVA TCP listener. My listener class able to read data packet from GPS device and store in hornetQ. My system is working very well, But suddenly after 3 hours my system behaves very badly. Suppose while storing data from TCP listener to hornetQ and get an exception, code reach to finally block and in finally block, i am calling contextInitialized(event) method again so serverSocket object and hornetQ intialization happens again, but at the time of hornetQ initialization , i am getting this error :
SEVERE: Failed to create netty connection
java.net.SocketException: No buffer space available (maximum connections reached?): connect
Please help me how to fix it.