Server stop accepting new clients

Started by Borgso, November 06, 2015, 09:55:05 AM

Previous topic - Next topic

Borgso

We are randomly getting problem with clients on different computers hang during login with NetXMS client.
This connection session do not timeout and we are not able to connect any new clients before server restart

1: Is it possible to boot/kick a client session with nxadm or other command?
2: Is there a limit/config for max active client sessions?
3: Would it be a problem connect nxjclient 1.2.16 to a server v1.2.17?

Borgso

#1
Found answer to "1": possible via Server Console with "kill <session>"

But it does not end the session.


netxmsd: show sess
CLIENT SESSIONS
============================================================
ID  STATE                    CIPHER   CLTYPE  USER [CLIENT]
0   CMD_GET_OBJECTS          NONE     DESKTOP [email protected] [nxjclient/1.2.16 (Linux 3.2.54; libnxcl 1.2.16)]
1   CMD_GET_OBJECTS          AES-128  DESKTOP [email protected] [nxmc/1.2.17 (Windows Server 2012 R2 6.3; libnxcl 1.2.17)]
2   CMD_GET_OBJECTS          NONE     DESKTOP [email protected] [nxjclient/1.2.9 (Linux 3.13.0-66-generic; libnxcl 1.2.9)]
3   CMD_GET_OBJECTS          AES-128  DESKTOP [email protected] [nxmc/1.2.17 (Windows Server 2012 R2 6.3; libnxcl 1.2.17)]
4   idle                     NONE     DESKTOP [email protected] [nxjclient/1.2.16 (Linux 3.16.0-4-amd64; libnxcl 1.2.16)]
5   CMD_GET_OBJECTS          AES-128  DESKTOP [email protected] [nxmc/1.2.16 (Windows 8 6.2; libnxcl 1.2.16)]
6   idle                     AES-256  DESKTOP [email protected] [nxjclient/1.2.16 (Linux 3.2.0-4-amd64; libnxcl 1.2.16)]
7   CMD_GET_OBJECTS          AES-128  DESKTOP [email protected] [nxmc/1.2.17 (Windows 8 6.2; libnxcl 1.2.17)]
8   idle                     AES-256  DESKTOP [email protected] [nxjclient/1.2.16 (Linux 3.2.0-43-generic; libnxcl 1.2.16)]
9   idle                     AES-256  DESKTOP [email protected] [nxjclient/1.2.16 (Linux 3.16.0-4-amd64; libnxcl 1.2.16)]
10  idle                     NONE     DESKTOP [email protected] [nxjclient/1.2.16 (Linux 3.2.0-4-amd64; libnxcl 1.2.16)]
11  CMD_GET_OBJECTS          AES-128  DESKTOP [email protected] [nxjclient/1.2.9 (Linux 3.2.0-37-generic; libnxcl 1.2.9)]
12  CMD_GET_OBJECTS          AES-128  DESKTOP [email protected] [nxmc/1.2.16 (Linux 3.2.0-37-generic; libnxcl 1.2.16)]
13  CMD_GET_OBJECTS          AES-128  DESKTOP [email protected] [nxmc/1.2.16 (Windows 8 6.2; libnxcl 1.2.16)]
14  CMD_GET_OBJECTS          AES-128  DESKTOP [email protected] [nxmc/1.2.17 (Windows 8.1 6.3; libnxcl 1.2.17)]
15  CMD_GET_OBJECTS          NONE     DESKTOP [email protected] [nxjclient/1.2.9 (Linux 3.13.0-66-generic; libnxcl 1.2.9)]
16  CMD_GET_OBJECTS          NONE     DESKTOP [email protected] [nxjclient/1.2.16 (Linux 3.2.54; libnxcl 1.2.16)]
17  CMD_GET_OBJECTS          NONE     DESKTOP [email protected] [nxjclient/1.2.16 (Linux 3.2.54; libnxcl 1.2.16)]
18  CMD_GET_OBJECTS          NONE     DESKTOP [email protected] [nxjclient/1.2.9 (Linux 3.13.0-66-generic; libnxcl 1.2.9)]
19  CMD_GET_OBJECTS          AES-128  DESKTOP [email protected] [nxmc/1.2.17 (Windows 8 6.2; libnxcl 1.2.17)]
20  idle                     NONE     DESKTOP [email protected] [nxalarm/1.2.17 (Linux 3.13.0-63-generic; libnxcl 1.2.17)]

Victor Kirhenshtein

Hi,

from mane sessions stuck in CMD_GET_OBJECTS most likely there is a deadlock in a server. The only way to recover from that situation is to restart the server. I would suggest to upgrade to 2.0-RC2 or wait for 2.0 release - we have fixed some deadlocks in 2.0 branch so there are good chance problem will gone.

Best regards,
Victor