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

Excessive RAM consumption #44

Open
DemonRx opened this issue Jun 13, 2021 · 2 comments
Open

Excessive RAM consumption #44

DemonRx opened this issue Jun 13, 2021 · 2 comments

Comments

@DemonRx
Copy link

DemonRx commented Jun 13, 2021

It seems that Qortal is using quite a bit of RAM allocation. So I had to go hunting down as what is possibly the cause.

The best I could pinpoint this to is this:
Screenshot from 2021-06-12 21-21-05

I don't know how Qortal is operating with the java system. But is this normal to be using nearly 2gb? I've seen over 3gb during IBD, but once fully synchronized it's still holding up quite a bit of RAM.

@DemonRx
Copy link
Author

DemonRx commented Jun 13, 2021

For the time being I occasionally flush the data to disk with echo 3 > /proc/sys/vm/drop_caches, due to the reason my system gets a little sluggish but also the Qortal daemon is using enough ram that for the first time I've seen over 1gb of swap space used even after the z-ram compressed zone has been utilized 😮

Filename				Type		Size	Used	Priority
/dev/sda3                              	partition	7815164	0	-2
/dev/zram0                             	partition	947452	500068	5
/dev/zram1                             	partition	947452	494484	5
/dev/zram2                             	partition	947452	494528	5
/dev/zram3                             	partition	947452	481072	5
demon@Bionic18:~/coins/qortal$ free -h
              total        used        free      shared  buff/cache   available
Mem:          7.2Gi       3.8Gi       2.0Gi       155Mi       1.4Gi       2.0Gi
Swap:          11Gi       1.9Gi       9.2Gi

Believe me this is the first time I've seen this while running a coin daemon on my system.

@crowetic
Copy link
Member

on linux you can set the max amount of RAM the core will use up to, with start.sh... there are JVM_MEMORY_ARGS options there.

Xmx=RAMamount will set the amount of RAM total the core will attempt to use.

By default, if you don't set that setting, it will use UP TO 1/4 of the total system RAM.

I would suggest modifying this if you would like it to use less than that.

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

No branches or pull requests

2 participants