AMQ is utilizing a very high number of file descriptors after a recent JDK upgrade

Solution Verified - Updated -

Issue

  • AMQ is holding too many open file descriptors with very few established connections.
  • AMQ is failing with java.net.SocketException: Too many open files and java.io.IOException: Too many open files after a recent JDK update.
  • lsof on the AMQ process shows a high number of sockets of type "sock" :
java    1902 user  440u     sock                0,7       0t0 864742213 protocol: TCPv6
java    1902 user  441u     sock                0,7       0t0 864822414 protocol: TCPv6
java    1902 user  442u     sock                0,7       0t0 864129821 protocol: TCPv6
java    1902 user  443u     sock                0,7       0t0 864329774 protocol: TCPv6
java    1902 user  444u     sock                0,7       0t0 864929720 protocol: TCPv6
java    1902 user  445u     sock                0,7       0t0 864929675 protocol: TCPv6
java    1902 user  446u     sock                0,7       0t0 864929633 protocol: TCPv6

Environment

  • Red Hat AMQ
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content