A demo of a uniquely resilient simulated "server" made possible by unique features of Erlang VM, the BEAM
cd src
erl
>c(juggler).
>juggler:accept(10000). %% 10,000 = NumRequests we'll handle
> %% (of them every Nth request will result in inf loop) can be modified by changing define of BUG_MOD
**** 9620 [INF]*****
INDICATES INFINITE LOOP WAS SPAWNED by request # 9620
...9392 [3090]......9393 [2083]
INDICATES a "request_handler" process was finished in [millis]
,
in this case request #9392 finished in 3090 millis and request # 9393 finished in 2083 millis
.
.
.
9000 finished, 1000 running forever
ok
TELLS us that 1000 processes are still running, so be careful, your entire system might be affected
>c(killer_juggler).
>killer_juggler:accept(10000).