You probably need to tune JVM Settings, and also ping intervals.
This chapter brings some information about dead connection detection and how to configure these parameters:
http://docs.jboss.org/hornetq/2.4.0.Final/docs/user-manual/html/connection-ttl.html
And as I said on the first paragraph, tune JVM and Garbage collection options by setting proper sizes and parallel garbage collection. You can probably find good information on this by googling about it.