0

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 understand how to fix it.

Flexo
  • 87,323
  • 22
  • 191
  • 272
geekIndiana
  • 87
  • 4
  • 14

1 Answers1

0

Have you looked at others who had similar issues?

Mainly

  1. java.net.SocketException: No buffer space available (maximum connections reached?): connect
  2. No Buffer Space available(maximum connection reached?) Form Postgres EDB Driver
Community
  • 1
  • 1
uaarkoti
  • 3,659
  • 2
  • 20
  • 23
  • Yes i looked into that , but i am not able to find a solution, Please help me to understand why HornetQ object is creating more and more. thanks – geekIndiana Mar 23 '12 at 18:42
  • I think the documentation clearly described the behavior of the server socket. Depending on the type of the connection. Here is the documentation for NIOServerSocketFactory http://docs.jboss.org/netty/3.2/api/org/jboss/netty/channel/socket/nio/NioServerSocketChannelFactory.html – uaarkoti Mar 23 '12 at 18:51
  • i am using simple ServerSocket class not netty ServerSocketChannel, but i am using HornetQ, so might be this error is happening due to hornetQ, Please suggest me how to fix it. – geekIndiana Mar 24 '12 at 06:06