<?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[Best Practice to analyse event "SYS_THREAD_HANG"?]]></title><description><![CDATA[<p dir="auto">We have a lot of events "SYS_THREAD_HANG" (Thread "Item Poller" is not responding).<br />
Most of time only for a few seconds, then "SYS_THREAD_RUNNING" again.</p>
<p dir="auto">What is the best way to analyse this and find the root cause?<br />
(maybe a good point for the troubleshooting paragraph of the administrator guide)</p>
<p dir="auto">In server log we get:</p>
<pre><code>[14-Apr-2015 15:30:51.580] [ERROR] Thread "Item Poller" does not respond to watchdog thread
</code></pre>
<p dir="auto">Server debug log is attached.</p>
<p dir="auto">We use NetXMS V2.0-M3 (linux x64, PostgreSQL).</p>
<p dir="auto">Thanks!</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000002225-server-debuglog-thread_hang.txt">server-debuglog-thread_hang.txt</a></p>
]]></description><link>https://forum.netxms.org/topic/3698/best-practice-to-analyse-event-sys_thread_hang</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 16:55:38 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3698.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Apr 2015 14:00:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Fri, 27 May 2016 06:38:36 GMT]]></title><description><![CDATA[<p dir="auto">No, origin need to be "NetXMS agent". Yes, this is the main reason why agent needs SQLite. Usually no additional configuration required, agent will create local database in reasonable location ($install_prefix/var/lib/netxms if built from sources, /var/lib/netxms if installed from deb package).<br />
There is a bug in 2.0.3 (fixed in 2.0.4) that cached mode actually works only for servers listed as MasterServers in agent configuration.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19952</link><guid isPermaLink="true">https://forum.netxms.org/post/19952</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 27 May 2016 06:38:36 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Mon, 23 May 2016 15:29:02 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for necroing this topic, we have the same issue and just upgraded to 2.0.3 we are now able to use this AgentCache function.</p>
<p dir="auto">On Source node, there is a script polling custom Services for values.<br />
Without agent cache this would give 1 poll each second, with cache on it polls much more within one second.<br />
But it does not save any data to DCI history, do "Origin" need to be "Push" and not "NetXMS agent" when AgentCache function is On?</p>
<p dir="auto">Is this function the reason of SQLite requirment on agent and are there any agent side configuration needed (ie db location)?</p>
]]></description><link>https://forum.netxms.org/post/19933</link><guid isPermaLink="true">https://forum.netxms.org/post/19933</guid><dc:creator><![CDATA[Borgso]]></dc:creator><pubDate>Mon, 23 May 2016 15:29:02 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Wed, 21 Oct 2015 13:16:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">it should be fully functional in 2.0-RC2. We will update documentation soon. In short:</p>
<ol>
<li>DefaultAgentCacheMode can be either 1 (on) or 2 (off);</li>
<li>agent level "default" means using DefaultAgentCacheMode settings;</li>
<li>DCI level "default" means using agent level settings.</li>
</ol>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/18081</link><guid isPermaLink="true">https://forum.netxms.org/post/18081</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 21 Oct 2015 13:16:47 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Tue, 20 Oct 2015 10:21:54 GMT]]></title><description><![CDATA[<p dir="auto">Is there a documentation of the cache feature?<br />
There are 3 level for this feature:</p>
<ol>
<li>server default setting 'DefaultAgentCacheMode' (which number is which setting?)</li>
<li>settings on the agent (on, off, default, is default the setting from the server settings?</li>
<li>settings on the individual DCI (on, off, default)</li>
</ol>
<p dir="auto">Are there limitations with V2.0-RC2?</p>
<p dir="auto">thanks<br />
Dani</p>
]]></description><link>https://forum.netxms.org/post/18041</link><guid isPermaLink="true">https://forum.netxms.org/post/18041</guid><dc:creator><![CDATA[user54119]]></dc:creator><pubDate>Tue, 20 Oct 2015 10:21:54 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Mon, 23 May 2016 15:46:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor</p>
<p dir="auto">Thanks you for your analyse.<br />
I changed all 'Service-Check'-DCIs to Agent Cache Mode = ON (are all DCIs with Soucre-node = NetXMS server). Seems to be the solution (ok a little bit early for all-clear)!</p>
<p dir="auto">Is this feature fully implemented now in V2.0-RC1?<br />
Is there also a disadvantage of Cache-mode=on or is it ok to change all agent-DCIs to cache-mode=on?<br />
What are the possible values for server configuration variable "DefaultAgentCacheMode"? I couldn't found it in the Wiki.<br />
Is there a short documentation of the agent-cache-mode feature?</p>
<p dir="auto">thanks<br />
Dani</p>
]]></description><link>https://forum.netxms.org/post/17828</link><guid isPermaLink="true">https://forum.netxms.org/post/17828</guid><dc:creator><![CDATA[user54119]]></dc:creator><pubDate>Mon, 23 May 2016 15:46:58 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Mon, 21 Sep 2015 20:37:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">from the trace I see that server is blocked on reading one of Service.Check(...) parameters (and I see there are lot of them) which probably takes some time to complete. As DCI is locked when it is being polled, when item poller thread attempts to access this DCI it locks, and so watchdog warning is triggered.<br />
Actually new feature called "agent side DCI cache" introduced in 2.0-RC1 can help - you can turn on agent cache for those DCIs (or all DCIs). This will switch then from polling mode to push mode, thus eliminating long locks on server side.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/17815</link><guid isPermaLink="true">https://forum.netxms.org/post/17815</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 21 Sep 2015 20:37:31 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Mon, 21 Sep 2015 09:59:03 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor</p>
<p dir="auto">Here the output.</p>
<p dir="auto">thanks<br />
Dani</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000002499-putty.log">putty.log</a></p>
]]></description><link>https://forum.netxms.org/post/17812</link><guid isPermaLink="true">https://forum.netxms.org/post/17812</guid><dc:creator><![CDATA[user54119]]></dc:creator><pubDate>Mon, 21 Sep 2015 09:59:03 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Thu, 10 Sep 2015 16:15:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">when you encounter hang next time, could you please capture process state using following instruction?</p>
<ol>
<li>Check netxmsd PID</li>
<li>Run</li>
</ol>
<p dir="auto">gdb netxmsd</p>
<p dir="auto">(use full path if necessary). It will show (gdb) prompt.</p>
<ol start="3">
<li>Within gdb run</li>
</ol>
<p dir="auto">attach &lt;netxmsd_pid&gt;</p>
<p dir="auto">it should show (gdb) prompt again.</p>
<p dir="auto">4.  Run</p>
<p dir="auto">thread apply all bt</p>
<p dir="auto">and send me the output (could be quite long, so make sure you have adequate buffer length in terminal).</p>
<ol start="5">
<li>Run</li>
</ol>
<p dir="auto">detach</p>
<p dir="auto">to detach from netxmsd and let it run.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/17773</link><guid isPermaLink="true">https://forum.netxms.org/post/17773</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 10 Sep 2015 16:15:38 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Mon, 23 May 2016 15:46:21 GMT]]></title><description><![CDATA[<p dir="auto">We also have no solution yet.</p>
]]></description><link>https://forum.netxms.org/post/17752</link><guid isPermaLink="true">https://forum.netxms.org/post/17752</guid><dc:creator><![CDATA[user54119]]></dc:creator><pubDate>Mon, 23 May 2016 15:46:21 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Wed, 09 Sep 2015 05:39:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/user55116" aria-label="Profile: user55116">@<bdi>user55116</bdi></a> said in <a href="/post/17636">Best Practice to analyse event "SYS_THREAD_HANG"?</a>:</p>
<blockquote>
<p dir="auto">As a workaround, i increased the polling interval (from 60-&gt;120 sec) for most of the DCIs.</p>
<p dir="auto">No thread hang so far, but still a bit early to celebrate.</p>
<p dir="auto">Size of my setup:</p>
<pre><code>Total number of objects:     17788
Number of monitored nodes:   401
Number of collectable DCIs:  2959
</code></pre>
</blockquote>
<p dir="auto">Well, the error occurs every week now, not whenever the server feels like it, only I partially success. I can now schedule a restart to prevent this from happening, but I would still prefer a proper solution.</p>
]]></description><link>https://forum.netxms.org/post/17751</link><guid isPermaLink="true">https://forum.netxms.org/post/17751</guid><dc:creator><![CDATA[user55116]]></dc:creator><pubDate>Wed, 09 Sep 2015 05:39:34 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Tue, 25 Aug 2015 09:26:40 GMT]]></title><description><![CDATA[<p dir="auto">As a workaround, i increased the polling interval (from 60-&gt;120 sec) for most of the DCIs.</p>
<p dir="auto">No thread hang so far, but still a bit early to celebrate.</p>
<p dir="auto">Size of my setup:</p>
<pre><code>Total number of objects:     17788
Number of monitored nodes:   401
Number of collectable DCIs:  2959
</code></pre>
]]></description><link>https://forum.netxms.org/post/17636</link><guid isPermaLink="true">https://forum.netxms.org/post/17636</guid><dc:creator><![CDATA[user55116]]></dc:creator><pubDate>Tue, 25 Aug 2015 09:26:40 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Mon, 24 Aug 2015 10:56:55 GMT]]></title><description><![CDATA[<p dir="auto">We see this problem also again, here on V2.0-RC1 on Linux x64.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002433-eventlog.png" alt="eventlog.png" class="img-markdown  img-fluid" width="957" height="308" /></p>
]]></description><link>https://forum.netxms.org/post/17619</link><guid isPermaLink="true">https://forum.netxms.org/post/17619</guid><dc:creator><![CDATA[user54119]]></dc:creator><pubDate>Mon, 24 Aug 2015 10:56:55 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Mon, 24 Aug 2015 08:13:41 GMT]]></title><description><![CDATA[<p dir="auto">1.2.17 has a few bugs that can cause this.</p>
<p dir="auto">I really recommend you try 2.0-RC1, it has a lot of fixes and optimizations that will probably fix this for you.</p>
]]></description><link>https://forum.netxms.org/post/17616</link><guid isPermaLink="true">https://forum.netxms.org/post/17616</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Mon, 24 Aug 2015 08:13:41 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Mon, 24 Aug 2015 06:17:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm facing the same problem. NetXMS started with this recently. Sometimes the server seems able to recover, but still ... this is not good.</p>
<p dir="auto">I'm running version 1.2.17 on a Windows 2008R2 64-bit, with a MSSQL DB on a different server.</p>
<pre><code>netxmsd: sh que
Condition poller                 : 0
Configuration poller             : 0
Topology poller                  : 0
Data collector                   : 0
Database writer                  : 0
Database writer (IData)          : 0
Database writer (raw DCI values) : 0
Event processor                  : 0
Network discovery poller         : 0
Node poller                      : 0
Routing table poller             : 0
Status poller                    : 0
Syslog processing                : 0
Syslog writer                    : 0
</code></pre>
<p dir="auto">What's the recommended debug level to help to resolve this issue?</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002428-NetXMS_Server.PNG" alt="NetXMS_Server.PNG" class="img-markdown  img-fluid" width="919" height="188" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002430-NetXMS_Event.PNG" alt="NetXMS_Event.PNG" class="img-markdown  img-fluid" width="832" height="152" /></p>
]]></description><link>https://forum.netxms.org/post/17613</link><guid isPermaLink="true">https://forum.netxms.org/post/17613</guid><dc:creator><![CDATA[user55116]]></dc:creator><pubDate>Mon, 24 Aug 2015 06:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Mon, 20 Apr 2015 15:55:20 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Victor. I didn't saw anything in 'show queues. At the moment I have no more such events. But I don't know why <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";-)" alt="😉" /> I will come back to this if it re-occures.</p>
]]></description><link>https://forum.netxms.org/post/16560</link><guid isPermaLink="true">https://forum.netxms.org/post/16560</guid><dc:creator><![CDATA[user54119]]></dc:creator><pubDate>Mon, 20 Apr 2015 15:55:20 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practice to analyse event "SYS_THREAD_HANG"? on Fri, 17 Apr 2015 17:00:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">there could be different reasons for such messages. Most often it's a bug in a server code, or lack of resources. Item poller may hang if data collection configuration of one of the nodes is locked for too long. Do you monitor server internal queues? Also you can check size of the queues when item poller hangs (by running command <strong>show queues</strong> on server's debug console).</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/16492</link><guid isPermaLink="true">https://forum.netxms.org/post/16492</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 17 Apr 2015 17:00:28 GMT</pubDate></item></channel></rss>