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

Java Heap Space - Qubes #3343

Closed
tapir1 opened this issue Sep 28, 2019 · 9 comments
Closed

Java Heap Space - Qubes #3343

tapir1 opened this issue Sep 28, 2019 · 9 comments
Labels
a:bug an:investigation is:critical https://bisq.wiki/Critical_bug is:priority PR or issue marked with this label is up for compensation

Comments

@tapir1
Copy link

tapir1 commented Sep 28, 2019

Version: 1.1.7 and 0.8.0
OS: Both Debian 9 and Fedora 30
RAM: Up to 4GB, initial set max to 2GB

Log: https://anonfile.com/X8Z2ed78n7/bisq_log

@stale
Copy link

stale bot commented Jan 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the was:dropped label Jan 29, 2020
@stale
Copy link

stale bot commented Feb 5, 2020

This issue has been automatically closed because of inactivity. Feel free to reopen it if you think it is still relevant.

@ripcurlx
Copy link
Contributor

Related to: #3128, #3657, #3918, #3917, #3787, #3786, #3686, #3677, #3343

@pabpas
Copy link

pabpas commented Mar 12, 2020

I was having this same issue in a debian10 qube until today. It was the first time that bisq finished parsing the DAO transactions since I use Qubes.

They only recent change I can recall is updating the dom0 kernel to 5.5.7-1 (from 4.19.100).

My previous comment can be ignored, I successfully synced a new bisq from scratch and the only requirement is to set Max Memory for the Qube to 6GB and make sure that you have enough memory free.

@cd2357
Copy link
Contributor

cd2357 commented Apr 28, 2020

I confirm this now works (even with max memory for the qube of 4 GB)

So I'd say this issue can be closed.

cd2357 added a commit to cd2357/bisq that referenced this issue May 7, 2020
Update the gradle dependency to JavaFX 14.

This brings to Bisq the latest JavaFX fixes and improvements, especially
 in the areas of UI performance, memory management and security.

JavaFX can be upgraded independently of the JDK used to build the
application, so this change is modular and does not affect other parts
of the build process.

Related / likely related to: bisq-network#350 bisq-network#2135 bisq-network#2509 bisq-network#3128 bisq-network#3307 bisq-network#3308 bisq-network#3343
bisq-network#3430 bisq-network#3657 bisq-network#3677 bisq-network#3683 bisq-network#3686 bisq-network#3786 bisq-network#3787 bisq-network#3892 bisq-network#3917 bisq-network#3918 bisq-network#3936
@chimp1984
Copy link
Contributor

chimp1984 commented Aug 12, 2020

6GB should not be needed. 1-2 GB should be more then enough. I guess it is some JVM confirm issue with Qubes and some Linux versions (Arch users report often of those issues).

@chimp1984
Copy link
Contributor

Can you try out the recommendations at #3918 (comment) ?

@cd2357
Copy link
Contributor

cd2357 commented Aug 23, 2020

@chimp1984 for Qubes, the memory reservation is for the entire OS + applications. I believe it also covers for video RAM, since Qubes has very basic graphics drivers.

If a Qube is setup with some RAM limit, and then if the qube reaches the limit, by default Qubes will "borrow" memory from other VMs (or from the unallocated dom0 RAM) and expand dynamically as necessary. However, to do this, it has a service that pings / checks / adjusts the memory allocation every second, which actually slows Bisq down according to my tests.

Turns out its better to disable this dynamic memory allocation and just set a high enough value for the entire qube, to cover OS + any service + any application (incl. Bisq).

After some experimentation, the settings in #4386 were the most stable and reliable for me. Also, increasing resources beyond that didn't improve Bisq performance (load times, UI responsiveness etc) so those values seem to be the sweet spot.

So for Qubes, I'd say 6GB (and with no dynamic memory mgmt) is probably the best option for a debian Qube that runs only Bisq.

Of course, would be great if others can test and verify this as well, on their setups.

cd2357 added a commit to cd2357/bisq that referenced this issue Sep 16, 2020
Update the gradle dependency to JavaFX 14.

This brings to Bisq the latest JavaFX fixes and improvements, especially
 in the areas of UI performance, memory management and security.

JavaFX can be upgraded independently of the JDK used to build the
application, so this change is modular and does not affect other parts
of the build process.

Related / likely related to: bisq-network#350 bisq-network#2135 bisq-network#2509 bisq-network#3128 bisq-network#3307 bisq-network#3308 bisq-network#3343
bisq-network#3430 bisq-network#3657 bisq-network#3677 bisq-network#3683 bisq-network#3686 bisq-network#3786 bisq-network#3787 bisq-network#3892 bisq-network#3917 bisq-network#3918 bisq-network#3936
@cd2357
Copy link
Contributor

cd2357 commented Oct 13, 2020

My previous comment can be ignored, I successfully synced a new bisq from scratch and the only requirement is to set Max Memory for the Qube to 6GB and make sure that you have enough memory free.

Closing, as issue is now fixed for OP.

For more details about running Bisq on Qubes, see https://bisq.wiki/Running_Bisq_on_Qubes

@cd2357 cd2357 closed this as completed Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug an:investigation is:critical https://bisq.wiki/Critical_bug is:priority PR or issue marked with this label is up for compensation
Projects
None yet
Development

No branches or pull requests

7 participants