<div dir="ltr"><div>Hello!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 13, 2021 at 8:35 PM Alexander Petrovsky <<a href="mailto:askjuise@gmail.com">askjuise@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br>
<br>
I wonder, what is the best way to find out the "culprit" of GC:<br>
<br>
> msacc:start(1000), msacc:print().<br>
Thread aux check_io emulator gc other port sleep<br>
...<br>
scheduler( 1) 1.68% 1.12% 55.34% 9.05% 3.44% 13.91% 15.45%<br>
scheduler( 2) 1.53% 1.13% 55.17% 9.94% 4.76% 9.59% 17.88%<br>
scheduler( 3) 1.64% 1.21% 58.12% 10.88% 3.45% 8.93% 15.78%<br>
scheduler( 4) 1.61% 1.29% 57.22% 11.80% 3.97% 8.42% 15.69%<br>
...<br>
<br>
Using erlang:trace ang catch garbage_collection events?</blockquote><div><br></div><div>I would trace on garbage_collection events. By diffing the time from the gc_start to gc_end events it should give you a good idea of which processes it is that are doing the GC. </div><div><br></div><div>Lukas</div></div></div>