Commit graph

10 commits

Author SHA1 Message Date
Lord Hepipud
9a2e793be8 Fix GC collection on every REST connection 2022-04-06 13:59:31 +02:00
Tobias Deiminger
d215cfd568 Use a BlockingCollection to avoid busy loop in REST API threads
The former implementation had 5 threads permanently spinning fast
(10ms sleep) while waiting for a REST connection to process.
This causes higher load in general and it breaks systems where
"Turn on PowerShell Script Block Logging policy" is enabled,
because then each PS statement including Start-Sleep is logged -
resulting in 500 event log entries per second. It's a suggested
setting in some hardening guidelines.

We can easily replace the Queue with a BlockingCollection backed
by a ConcurrentQueue, which has the built-in feature to sleep until
there are new items. Now the REST API threads consumes zero CPU time
while waiting.
2022-03-30 11:13:03 +02:00
Lord Hepipud
046074d468 Increase REST-Api default timeout from 30s to 120s 2022-03-18 17:41:37 +01:00
Lord Hepipud
954e69fde1 Reworks background daemon for JEA context 2022-01-28 21:06:18 +01:00
Lord Hepipud
a23a40b23f Rewrite IfW service check daemon 2022-01-25 10:00:19 +01:00
Lord Hepipud
4ef55bddb4 Fixes lots of code styling, spelling and script analyzer
Disabling UseConsistentIndentation because it is not
properly working for multi-line commands with arguments
and array/hashtable objects
2022-01-14 22:26:53 +01:00
Lord Hepipud
5ed5f0b5e2 Fixes Icinga for Windows memory leak 2021-12-09 17:22:48 +01:00
Lord Hepipud
79d22ef127 Fixes Rest-Api address argument not being used 2021-11-16 16:28:00 +01:00
Lord Hepipud
495e0d05c3 Adds developer utilities 2021-11-07 12:10:05 +01:00
Lord Hepipud
253cb7f4dd Adds Rest-Api and Api-Checks into framework 2021-10-27 10:06:13 +02:00