BiglySoftware / BiglyBT

Feature-filled Bittorrent client based on the Azureus open source project
https://www.biglybt.com
GNU General Public License v2.0
1.55k stars 153 forks source link

memory is running low #3130

Closed exekutive closed 2 months ago

exekutive commented 9 months ago

Often I get these memory warnings in the notification area, and it progressively gets worse, even though I'm not adding any downloads or even using the program. It's just running in the background.

The "you have X MB remaining" gets lower and lower until BiglyBT stops working.

Screenshot 2023-12-08 at 23 02 33 Screenshot 2023-12-08 at 23 06 44
parg commented 9 months ago

Go to VIew->Logs->JVM Info and see what is going on. Sometime these notifications can be triggered when not really a problem

If you want you can increase the memory a bit via

Options->Startup & Shutdown [Java Options]: Max Heap memory size [blank=default,min=32 MB]

Put "350m" in there (for example) and restart

exekutive commented 9 months ago

Go to VIew->Logs->JVM Info and see what is going on. Sometime these notifications can be triggered when not really a problem

it actually does seem low

Screenshot 2023-12-09 at 02 13 10
parg commented 9 months ago

It isn't terrible - you probably have 80MB free.

You are running the I2P plugin, this can use a fair amount of memory. If you have memory to spare then bump the max up a bit and see how that goes.

exekutive commented 9 months ago

Thanks. I'll keep an eye on it.

exekutive commented 9 months ago

I increased it to 350 and it still seems to get eaten up. when I first open Bigly there's lot of memory. (image 1 - 200MB free). As time goes on it drops and gets almost used up (image 2 - 20MB free). Is this normal?

bigly Screenshot 2023-12-11 at 22 39 04
parg commented 9 months ago

You need to look at the "alloc" value. The "max" is the maximum that the JVM will be allowed to grow to if needed. The "alloc" is how much has currently been allocated, i.e. the memory actually in use. "free" shows how much of the "alloc" is currently not in use.

The JVM is a "garbage collected" virtual machine. It is normal for there to be big fluctuations in how much of the "alloc" is "free" due to the way memory is managed.

exekutive commented 2 months ago

I am still getting low memory warnings. Especially when I have more than about 20-25 torrents. Heap size is set to 478MB right now. Can I just keep increasing it?

parg commented 2 months ago

Yes