Update:
I performed a long running test over the weekend. I don't find any log entry which directly indicates a problem due to the long running JavaScript. The below snippet shows two log entries from my script (start and end) which logged 2 minutes after another (2 minutes delay, perfect!). Then a warning tells me that the timeslice processing was delayed and that timeslices will be combined. JavaScript still running!!
12/01/14 03:38:29.329 PM CET [INFO] [Harvest Engine Pooled Worker] [Manager.JavaScript|MBConnect-Alerts.js] WAIT
12/01/14 03:40:29.330 PM CET [INFO] [Harvest Engine Pooled Worker] [Manager.JavaScript|MBConnect-Alerts.js] END
12/01/14 03:40:29.819 PM CET [WARN] [master clock] [Manager.Clock] Timeslice processing delayed due to system activity. Combining data from timeslices 94496314 to 94496321
The JavaScript writes a metric to Introscope. Prior to the test, I thought that the value will be used for all timeslices between start and end of the JavaScript. This is not true because I see in the Investigator a metric value every 2 minutes.
My current conclusion:
- Long-lasting JavaScripts are not stopped.
- No information that the JavaScript delayed the system activity.
- Timeslice processing delayed due to system activity. Combining data from timeslices ... => can be a clue that the JavaScript takes too much time
- Long-lasting JavaScripts can falsify metrics because timeslices will be skipped