<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Server Consistently reaching "Too many client sessions open"]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Currently every couple of days we have to restart our NetXMS-Server as we will not be able to connect to it through any method (desktop client, web client). When i check the logs in /var/log/netxmsd i see the following line repeated numerous times<br />
" 2022.04.13 10:00:44.397 *W* [client.session     ] Too many client sessions open - unable to accept new client connection"</p>
<p dir="auto">When i run the nxadm command "show sessions" i see 240 sessions defined as "DESKTOP &lt;not logged in&gt; [n/a]" this would sometimes be 255 however usually Grafana will occupy around 15 sessions (and still not be able to get data).</p>
<p dir="auto">I have attached the output from the show session command and the netxmsd log file from when the server was started.</p>
<p dir="auto">Versions<br />
Desktop Client - 4.0.2227<br />
NetXMS Server (Linux/Ubuntu) - 4.0.2227<br />
radensolutions-netxms-datasource - 1.2.3<br />
Grafana - 8.3.0<br />
Java Version:<br />
    openjdk 11.0.14.1 2022-02-08<br />
    OpenJDK Runtime Environment (build 11.0.14.1+1-Ubuntu-0ubuntu1.18.04)<br />
    OpenJDK 64-Bit Server VM (build 11.0.14.1+1-Ubuntu-0ubuntu1.18.04, mixed mode, sharing)</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000005670-NetXMS_Show_Sessions_Output.txt">NetXMS_Show_Sessions_Output.txt</a></p>
<p dir="auto"><a href="/assets/uploads/files/smf/0000000005671-NetXMS_Log.txt">NetXMS_Log.txt</a></p>
]]></description><link>https://forum.netxms.org/topic/7349/server-consistently-reaching-too-many-client-sessions-open</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:04:50 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7349.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Apr 2022 01:08:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Server Consistently reaching "Too many client sessions open" on Mon, 04 Dec 2023 13:41:55 GMT]]></title><description><![CDATA[<p dir="auto">We made a fix recently (in 4.4.x) for stalled client sessions from web API - that may fix this issue too.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/33042</link><guid isPermaLink="true">https://forum.netxms.org/post/33042</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 04 Dec 2023 13:41:55 GMT</pubDate></item><item><title><![CDATA[Reply to Server Consistently reaching "Too many client sessions open" on Tue, 01 Aug 2023 08:32:28 GMT]]></title><description><![CDATA[<pre><code> 41  | 10.177.2.4                     | 127.0.0.1            | WEB     | NONE     | DashBoards           | nxjclient/4.3.7 (Linux 5.10.170-std-def-alt1; libnxcl 4.3.7)
 67  | 10.177.2.4                     | 127.0.0.1            | WEB     | NONE     | DashBoards           | nxjclient/4.3.7 (Linux 5.10.170-std-def-alt1; libnxcl 4.3.7)
 76  | 10.177.2.4                     | 127.0.0.1            | WEB     | NONE     | DashBoards           | nxjclient/4.3.7 (Linux 5.10.170-std-def-alt1; libnxcl 4.3.7)
 57  | 10.177.2.4                     | 127.0.0.1            | WEB     | NONE     | DashBoards           | nxjclient/4.3.7 (Linux 5.10.170-std-def-alt1; libnxcl 4.3.7)
 40  | 10.177.2.4                     | 127.0.0.1            | WEB     | NONE     | DashBoards           | nxjclient/4.3.7 (Linux 5.10.170-std-def-alt1; libnxcl 4.3.7)
 95  | 10.177.2.4                     | 127.0.0.1            | WEB     | NONE     | DashBoards           | nxjclient/4.3.7 (Linux 5.10.170-std-def-alt1; libnxcl 4.3.7)
 11  | 10.177.2.4                     | 127.0.0.1            | WEB     | NONE     | DashBoards           | nxjclient/4.3.7 (Linux 5.10.170-std-def-alt1; libnxcl 4.3.7)
 52  | 10.177.2.4                     | 127.0.0.1            | WEB     | NONE     | DashBoards           | nxjclient/4.3.7 (Linux 5.10.170-std-def-alt1; libnxcl 4.3.7)
 50  | 10.177.2.4                     | 127.0.0.1            | WEB     | NONE     | DashBoards           | nxjclient/4.3.7 (Linux 5.10.170-std-def-alt1; libnxcl 4.3.7)

99 active sessions


MOBILE DEVICE SESSIONS
 ID  | CIPHER   | USER                 | CLIENT
-----+----------+----------------------+----------------------------

0 active sessions
</code></pre>
<p dir="auto">Can be added  timestamp for session open time and idle time in seconds  for opened sessions?</p>
]]></description><link>https://forum.netxms.org/post/32628</link><guid isPermaLink="true">https://forum.netxms.org/post/32628</guid><dc:creator><![CDATA[Nem0]]></dc:creator><pubDate>Tue, 01 Aug 2023 08:32:28 GMT</pubDate></item><item><title><![CDATA[Reply to Server Consistently reaching "Too many client sessions open" on Tue, 01 Aug 2023 07:07:44 GMT]]></title><description><![CDATA[<p dir="auto">Version 4.3.7 - problem not resolved</p>
<p dir="auto">Altlinux 10 + PostgreSQL 14 + TimeScaleDB</p>
]]></description><link>https://forum.netxms.org/post/32627</link><guid isPermaLink="true">https://forum.netxms.org/post/32627</guid><dc:creator><![CDATA[Nem0]]></dc:creator><pubDate>Tue, 01 Aug 2023 07:07:44 GMT</pubDate></item><item><title><![CDATA[Reply to Server Consistently reaching "Too many client sessions open" on Thu, 09 Jun 2022 15:51:50 GMT]]></title><description><![CDATA[<p dir="auto">Yes, grafana users logging out 5-10 mins later is normal.</p>
<p dir="auto">Also, sessions that are marked as DESKTOP but without any user could be some connections to port 4701 (e.g. just telnet to that port would give such thing). You can use netstat to check from which IPs these connections may be coming.</p>
<p dir="auto">If data collection interruption is observed, it could be that something actually hangs in netxmsd process. The other possible options is some issues with the DB.</p>
<p dir="auto">I've attached script that collects debug information. If you observe the issue, pls run this script and share the results.</p>
<p dir="auto">The second script is here: <a href="https://raw.githubusercontent.com/netxms/netxms/master/tools/capture_netxmsd_threads.sh" rel="nofollow ugc">https://raw.githubusercontent.com/netxms/netxms/master/tools/capture_netxmsd_threads.sh</a><br />
It collects information about netxmsd threads. When the issue happens, please run this script 3 times with 20-60 seconds interval. It will produce files in /tmp. It requires gdb on the system.</p>
<p dir="auto">There's a new release. We suggest upgrading as, anyways, if a bug will be found it will be fixed in the new version.</p>
<p dir="auto">P.S. nx-collect-server-diag script uses nxadm which requires authentication in 4.1. The script is not updated yet to do that. You can turn off this by changing server parameter Server.Security.RestrictLocalConsoleAccess</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000005716-nx-collect-server-diag">nx-collect-server-diag</a></p>
]]></description><link>https://forum.netxms.org/post/31560</link><guid isPermaLink="true">https://forum.netxms.org/post/31560</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Thu, 09 Jun 2022 15:51:50 GMT</pubDate></item><item><title><![CDATA[Reply to Server Consistently reaching "Too many client sessions open" on Wed, 08 Jun 2022 00:12:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi Filipp,</p>
<p dir="auto">I checked the audit log and found no failed login attempts. It appears that the grafana user (Used by Grafana over the API) logs in successfully and then 5-10mins later logs out. I believe this would be normal behavior?</p>
<p dir="auto">I have also attached a screenshot should this help (Was unable to attach the image, received entity to large error from nginx so instead i have uploaded to imgur <a href="https://imgur.com/a/aHEaSMp" rel="nofollow ugc">https://imgur.com/a/aHEaSMp</a>)</p>
<p dir="auto">A little more information should that help as well.</p>
<ul>
<li>When this max session problem happens, NetXMS seems to stop collecting metrics as once we restart it there is missing data in our graphs</li>
<li>If i enter "nxadm -i" and try to kill the dead sessions with "kill %SESSION_ID%" it says the sessions was killed yet "show sessions" shows that the session is still there, so it appears these sessions can't be killed either the only way around is to restart the server</li>
</ul>
]]></description><link>https://forum.netxms.org/post/31529</link><guid isPermaLink="true">https://forum.netxms.org/post/31529</guid><dc:creator><![CDATA[michaelk]]></dc:creator><pubDate>Wed, 08 Jun 2022 00:12:46 GMT</pubDate></item><item><title><![CDATA[Reply to Server Consistently reaching "Too many client sessions open" on Mon, 06 Jun 2022 15:06:49 GMT]]></title><description><![CDATA[<p dir="auto">Can you check in Audit Log in netxms if there are any unsuccessful logins happening?</p>
]]></description><link>https://forum.netxms.org/post/31510</link><guid isPermaLink="true">https://forum.netxms.org/post/31510</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 06 Jun 2022 15:06:49 GMT</pubDate></item><item><title><![CDATA[Reply to Server Consistently reaching "Too many client sessions open" on Fri, 03 Jun 2022 06:13:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi Team,</p>
<p dir="auto">Sorry for the delay, as this problem only happens every couple of days-weeks it is annoying to reproduce. I did some testing and was able to narrow it down to netxms-websvc.war web service. I use this integration to build Grafana dashboards. I test with no war files and then with the root only and with netxms-websvc only and it was when the netxms-websvc was re-introduced that the problem came back. Has this been experienced by anyone else? as we would really like to continue using our Grafana dashboards.</p>
]]></description><link>https://forum.netxms.org/post/31491</link><guid isPermaLink="true">https://forum.netxms.org/post/31491</guid><dc:creator><![CDATA[michaelk]]></dc:creator><pubDate>Fri, 03 Jun 2022 06:13:16 GMT</pubDate></item><item><title><![CDATA[Reply to Server Consistently reaching "Too many client sessions open" on Thu, 14 Apr 2022 02:35:06 GMT]]></title><description><![CDATA[<p dir="auto">Hi Filipp,</p>
<p dir="auto">Thank you for your reply and advice, I will update the debug level now and will have to wait a bit for those logs to come through as it can sometimes happen randomly when the queue fills.</p>
<p dir="auto">I will post back here in the coming days when I find something, and currently no it is only the Grafana integration and the WebUI</p>
]]></description><link>https://forum.netxms.org/post/31231</link><guid isPermaLink="true">https://forum.netxms.org/post/31231</guid><dc:creator><![CDATA[michaelk]]></dc:creator><pubDate>Thu, 14 Apr 2022 02:35:06 GMT</pubDate></item><item><title><![CDATA[Reply to Server Consistently reaching "Too many client sessions open" on Wed, 13 Apr 2022 10:18:13 GMT]]></title><description><![CDATA[<p dir="auto">We will add displaying of IP address in list of sessions in a future version.<br />
Currently you can set debug to level 5. This could be done on the fly in Tools-&gt;Server Console</p>
<pre><code>debug 5
</code></pre>
<p dir="auto">The messages that we want to see are these:</p>
<pre><code>2022.04.13 13:10:01.442 *D* [                   ] SocketListener/Clients: Incoming connection from 127.0.0.1
2022.04.13 13:10:01.442 *D* [                   ] SocketListener/Clients: Connection from 127.0.0.1 accepted
</code></pre>
<p dir="auto">so you can grep your server log by "SocketListener/Clients"</p>
<p dir="auto">This way we will see from where these connections are coming.<br />
Do you have any other integrations besides Grafana (nxshell, WEB API)?</p>
]]></description><link>https://forum.netxms.org/post/31225</link><guid isPermaLink="true">https://forum.netxms.org/post/31225</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Wed, 13 Apr 2022 10:18:13 GMT</pubDate></item></channel></rss>