Open tarunKoyalwar opened 8 months ago
What worked for me while debugging nuclei is this approach. It will dump the goroutines stack trace and memory allocations on a regular interval until stopped.
pprof.WriteHeapProfile()
runtime.ReadMemStats(&memStat)
pprof.Lookup("goroutine").WriteTo(f, 0)
Running these on an interval will create a new dump file every X minutes which might be what you need. You can then inspect the memory and goroutine stack trace using go tool pprof file.dump
Proposed Changes
Detection Logic ( Task 3)
time
as keytime
as keyIMP/CRITICAL
profiles and share them instead of sharing all xGB of profilesReferences