Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heap leak #1863

Open
amigan opened this issue Feb 28, 2024 · 1 comment
Open

Heap leak #1863

amigan opened this issue Feb 28, 2024 · 1 comment
Labels

Comments

@amigan
Copy link

amigan commented Feb 28, 2024

sdrtrunk Version
master-branch

Describe the bug
I noticed on a couple occasions my two tuner raspberry pi 5 8GB would spin its fan up with occasional truncated calls, and suspected GC hell. I started using a JMX prometheus exporter to take a look. I haven't gotten it reproduce that specific behavior yet, but heap usage is definitely increasing over the long term.
image
image

The middle of those graphs was a restart. I am fairly certain the blip of concurrent GC before the restart was while the system was starting to truncate calls, but I'm no longer positive. I am continuing to leave this running to collect more data, but it definitely looks like the heap is growing? I'm not a java guy, so forgive me.

I am happy to take any dumps, or enable further profiling to assist in the effort to fix this.

To Reproduce
Steps to reproduce the behavior:

  1. Monitor the RISCON P25 Phase 1 trunk system (10MHz allocation, 4x simulcast sites) with two RTL-SDRs.
  2. Leave it running.

Expected behavior
Not fans spinning up with calls truncated.

Screenshots
If applicable, add screenshots to help explain your problem.

Application Log
If applicable, include either the full application log,or a snippet of the error logging.

Desktop (optional - complete the following information):

  • Raspberry Pi 5 8GB running Arch Linux ARM and liberica JDK
  • Fluxbox WM, Xvnc
  • Spectrograms always disabled
  • Two RTL-SDRs 2.4MSPS

Additional context
Streaming to rdio-scanner running on another machine and an icecast sink. This and icecast-kh are the sole workload of this system. The P25 system is moderately busy at times but not insane. I do think the problem manifests quicker during rare traffic spikes.

@amigan amigan added the bug label Feb 28, 2024
@amigan
Copy link
Author

amigan commented Mar 4, 2024

This is definitely happening right now. I have taken a heap dump hprof that I can furnish if necessary.

image
image

I have attached a heap histogram.
histogram.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant