🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

503: Too Many Connections For Client-Username

Yogi
Yogi Member Posts: 24

Hi All,

Getting error as : JNDI lookup failed - 503: Too Many Connections For Client-Username

Configured Max Connections Per Username but no luck, please suggest way forward.

Answers

  • Aaron
    Aaron Member, Administrator, Moderator, Employee Posts: 644 admin
    edited May 2023 #2

    Hi @Yogi. Well, that's interesting. What have you configured your "max clients per username" setting to? You can find this in the Client Profile for your particular Client Username.

    That definitely sounds like you hit the value configured for your client profile. Getting the exact same error with a JMS client if I have maxed out the # of connections for a particular username:

    Initialization error: client creation failed.
    javax.naming.NamingException: JNDI lookup failed - 503: Too Many Connections For Client-Username
    

    This is different if the Message VPN has hit its max limit:

    Initialization error: client creation failed.
    javax.naming.NamingException: JNDI lookup failed - 503: Too Many Connections For VPN
    

    Or if the broker has reached its maximum system limit:

    Initialization error: client creation failed.
    javax.naming.NamingException: JNDI lookup failed - 503: Too Many Clients
    


    If you look through the event.log on the broker, you will see entries that should correspond to your connection limit being breached. From CLI:

    solace1040> show log event find VPN_CLIENT_USERNAME_CONNECTIONS
    2023-05-15T15:13:21.255+00:00 <local3.warning> solace1040 event: VPN: VPN_CLIENT_USERNAME_CONNECTIONS_HIGH: default - Message VPN (0) default client-username aaron connections threshold 4(80%) reached: 4 Service (Combined)
    2023-05-15T15:13:24.581+00:00 <local3.warning> solace1040 event: VPN: VPN_CLIENT_USERNAME_CONNECTIONS_EXCEEDED: default - Message VPN (0) default client-username aaron Maximum connections exceeded : 5 Service (Combined)
    

    Do you monitor the active number of connections on the broker? Like, polling SEMP and storing in a time-series database? Is there a connection spike around the time of your error?

This Week's Leaders