-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 error #5550
Comments
@ThisMightHelp You can find the log file here: https://bisq.wiki/Data_directory#Windows Unfortunately I wasn't able to display the screenshot file you posted. For how long did your client run before this happened? |
I have the same problem on Linux Ubuntu with Oracle Hotspot Java / OpenJDK JRE. From the logs:
Usually it happens 1-2x a day, my machine runs 6GB RAM. |
Thanks ripcurlz. The screenshot was the same as marekbedy's. It happened once before, but otherwise Bisq seems ok. Bisq was running for a few hours when the error popped up. Running Win 10 Pro and 32GB RAM. |
I have been getting this message once or twice a day both in 1.64 and 1.6.5. Sometimes able to continue, sometimes requires a force close and restart. Also Bisq is freezing about once a day with no error message and requires a forced shutdown, not sure if related. |
Thanks. |
This all sounds a little bit as if the launch parameters for the VM are not passed successfully. As we changed the packaging of the installer this could be the case for this issue. I'll investigate this today. |
Or the new VM is more resource hungry than the old one. Could you please try to manually increase the max RAM ceiling we have in place right now (4 GB)? See https://bisq.wiki/Reducing_memory_usage on how to do this. |
If this fixes it, we have to adapt the value for the next release. |
You can see all the default jvm opts with |
Did anyone of you had success increasing the max memory flag as described in https://bisq.wiki/Reducing_memory_usage? |
I tried it with JAVA_TOOL_OPTIONS="-XX:MaxRAM=8g" Seemed to last a little longer but still crashed with the same error. I will try again with a higher number. The Java Heap Space Errors seem to becoming for frequent. Every few hours or so. |
🤔 this seems to become more and more of an issue. Not sure if it is related to code changes introduced in v1.6.5+ or the new VM and runtime. |
Try disabling the hardware graphics acceleration with #5362 (comment), curious if the issue still happens afterwards. Sometimes JavaFX has issues with specific graphic cards with specific drivers. From what I read in different forums, disabling hardware acceleration bypasses some of these issues. |
Been running all day with no crashes when I upped it to 16gb: JAVA_TOOL_OPTIONS="-XX:MaxRAM=16g" Not tried disabling the hardware graphics acceleration yet. |
Crashes where still happening pretty frequently so edited the Bisq.cfg file in Local\Bisq\app to the below to include @cd2357's suggestion, it has seemed to fix a few memory issues. Hopefully it will resolve the Java heap space error also: [Application] [JavaOptions] [JVMOptions] |
If we enough data we probably should add this parameters as defaults for the built binaries. |
I have not had a java heap space error since editing the Bisq.cfg file 3 days ago. |
-Dprism.order=sw helps for me, now a week without a crash |
Could you please try out to increase the max ram limit as described in https://bisq.wiki/Reducing_memory_usage? We'll adapt the default value for the next release if it isn't a memory leak we can fix. |
I encountered the same issue on a MacOS BigSur v11.4 |
Same issue here on MacOS High Sierra 10.13.6 with 8GB RAM |
Version 1.7.0 on Windows 10. My CPU fan suddenly started running on full speed so I checked Task Manager and saw Bisq consuming >90% of CPU power, a few seconds later it gives the "Java heap space" error and apparently starts working fine again. |
Version 1.7.0 on Debian 10.9. I can't even keep Bisq running for longer than 5 minutes before it crashes/hangs saying "java.lang.OutOfMemoryError: Java heap space". I think it was a little more stable on older versions, where it could run for at least 1-2 hours before crashing but that could just be the conditions of my system. I have 2 GB ram and 4 GB swap on my desktop. A lot of memory is taken up by bitcoind, chrome, and other desktop apps. So it does seem to swap a lot, BUT i still usually have > 1.5 GB of swap free. So I'm not sure why it's running out of memory. |
Just following up that I have not had a java heap space error since editing the Bisq.cfg file 28 days ago. I did need to update the Bisq.cfg when upgrading to 1.7.0 as it was overwritten by the update. It now reads: [Application] [JavaOptions] [JVMOptions] |
Description
Java Heap Space error. No other info.Version
v1.6.4Steps to reproduce
One time occurenceExpected behaviour
UnknownActual behaviour
UnknownScreenshots
SS java heap space error 6-1-2021.odt
Device or machine
Win 10 ProAdditional info
I saved the log file, but can't find it. How do I redisplay it from within the UI? Thanks.The text was updated successfully, but these errors were encountered: