overleaf/libraries/metrics
James Allen 8db30020ae Monitor event loop by looking for skew
If we monitor with setImmediate, we miss big blocking loops. For example,
suppose we have 1000 1ms loops then a single bad 1000ms loop. setImmediate
will only be called at the right time 1/1000 of the time (it has to be the
loop just before the bad one). So this monitoring method gives a good average
if the std dev is low, but doesn't pick up spikes.

Instead, we can monitor the skew from the expected time between setIntervals.
In the case above, with a setInterval for 1000ms, we will pick up a skew
proportional to the amount of time that it overlaps the bad loop. So 50%
change of picking up skew > 500ms, and thus getting a good sense of any
spikes.
2015-12-03 16:32:20 +00:00
..
.gitignore
event_loop.coffee Monitor event loop by looking for skew 2015-12-03 16:32:20 +00:00
http.coffee Revert "reduce memory capture in http logger" 2015-05-14 16:14:24 +01:00
index.js
LICENSE Create LICENSE 2014-09-08 09:19:39 +01:00
memory.coffee log memory usage every minute 2015-08-20 17:03:58 +01:00
metrics.coffee add memory check and periodic gc 2015-08-14 14:38:24 +01:00
mongodb.coffee remove bug in optional argument handling 2015-08-18 11:23:10 +01:00
open_sockets.coffee Set maxSockets to Infinity for all services 2015-08-31 14:02:03 +01:00
package.json Set maxSockets to Infinity for all services 2015-08-31 14:02:03 +01:00