繰り返しスタックしているスレッド、メモリリーク、バッファー、またはハンドルをクリアするために、MID サーバーの定期的な再起動をスケジュールする方法Issue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } MID サーバーで実行されているジョブがスタックし、いずれかのワーカースレッドがブロックされ、最終的に MID サーバーで何も実行できるスレッドがなくなる可能性があります。これは、カスタム JavascriptProbe ジョブの設計が不十分であったり、ジョブの終了後にスレッドが滞ったままになる製品の欠陥があったりすることが原因で発生する可能性があります。 メモリとハンドルのリークは、既知の問題によっても発生し、最終的に MID サーバーが使用できなくなったり、サービスがまだ実行されているにもかかわらず [ダウン] に表示されたりする可能性があります。 MID サーバーを再起動すると、スタックしたスレッド、リークされたメモリ、およびハンドルがクリアされます。スタックするスレッドの原因が解決されるまで、回避策の 1 つは、スケジュール済みスクリプトを定期的に実行して、MID サーバーに再起動するように指示することです。 Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } すべての MID サーバーのリストを開きます。ナビゲーション MID サーバー -> サーバー で選択します。(ecc_agentテーブル)リストをフィルタリングして、再起動する必要がある MID サーバーのみを表示します。例: 名前に「Disco」が含まれています。実行中の MID サーバーのみを再起動するように、 ステータス IS Up の条件を追加します。青いフィルター線を右クリックして [クエリをコピー]。これにより、スクリプトで使用するこのリストフィルターの エンコードされたクエリ文字列 が得られます。 例:「nameLIKEdisco^status=Up」新しいスケジュール済みスクリプトレコード (sysauto_script) を開きます ( システム定義 - >スケジュール済みジョブ、 新規、 選択したスクリプトの自動実行 をクリックします。名前を入力:(カスタム) MID サーバーを再起動してスタックしているスレッドをクリアします。スケジュールフィールドに入力します。例: Run: Weekly、Day: Sunday、Time: 07:00:00。 MID サーバーで実行されているジョブがない可能性がある時間を選択します。次のスクリプトを このスクリプトを実行 フィールドに貼り付けます。 // scheduled script to regularly restart MID Servers to clear out stuck threads (KB0692080) var midGr = new GlideRecord('ecc_agent'); midGr.addEncodedQuery('<paste query string here>'); // This query string limits which MID Servers are restarted. midGr.query(); while(midGr.next()) { var agent_name = midGr.name.replace(/'/g, "\\'"); var midmanage = new MIDServerManage(); midmanage.restartService(agent_name); // This line writes the restart ecc_queue output to the mid server. gs.info('(custom) Restart MID Servers to clear stuck threads job: Restarting MID Server: ' + agent_name); } 前にコピーしたクエリ文字列を、上記で強調表示された addEncodedQuery 関数に貼り付けます。線は次のようになります。 midGr.addEncodedQuery('nameLIKEdisco^status=Up'); // This query string limits which MID Servers are restarted. [Submit (送信)] をクリックします。これで、スクリプトは次のスケジュールされた時刻に実行されます。このスクリプトをテストしたり、オンデマンドで実行したりするには、[ 今すぐ実行ボタンを使用します。 Related Links<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } KB0832784/PRB1414364 Orlando パッチ 5 にアップグレードした後、SNMP ディスカバリーによってファイルハンドラーリークが発生し、MID サーバーが不安定になるか停止する