bitcoin-sv / alert-system

Alert System Microservice
Other
3 stars 1 forks source link

[Bug]: High CPU usage stemming from kad-go-dht #63

Closed galt-tr closed 4 months ago

galt-tr commented 6 months ago

What happened?

We are seeing high cpu usage of alert-system even though at rest (meaning no jobs are running) it should remain fairly idle.

Here is some analysis from pprof:

File: ___205go_build_main_go
Type: cpu
Time: Feb 21, 2024 at 4:25pm (EST)
Duration: 30s, Total samples = 1.66s ( 5.53%)
Entering interactive mode (type "help" for commands, "o" for options)
(pprof) top
Showing nodes accounting for 620ms, 37.35% of 1660ms total
Showing top 10 nodes out of 560
      flat  flat%   sum%        cum   cum%
     200ms 12.05% 12.05%      200ms 12.05%  runtime/internal/syscall.Syscall6
     110ms  6.63% 18.67%      110ms  6.63%  runtime.futex
      50ms  3.01% 21.69%       50ms  3.01%  crypto/internal/edwards25519/field.feSquare
      50ms  3.01% 24.70%      180ms 10.84%  runtime.mallocgc
      40ms  2.41% 27.11%       40ms  2.41%  crypto/sha256.block
      40ms  2.41% 29.52%       40ms  2.41%  github.com/mr-tron/base58/base58.FastBase58EncodingAlphabet
      40ms  2.41% 31.93%       40ms  2.41%  runtime.usleep
      30ms  1.81% 33.73%       30ms  1.81%  crypto/internal/edwards25519/field.feMul
      30ms  1.81% 35.54%       30ms  1.81%  runtime.(*gcBits).bitp
      30ms  1.81% 37.35%       30ms  1.81%  runtime.duffcopy

pprof002

How can we reproduce this?

Run the alert-system and analyze with pprof.

Search

Code of Conduct

Additional context

No response

github-actions[bot] commented 4 months ago

This issue has become stale due to in-activity.