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

OutOfMemoryError in Bisq 0.6.2 #1138

Closed
cbeams opened this issue Dec 31, 2017 · 7 comments
Closed

OutOfMemoryError in Bisq 0.6.2 #1138

cbeams opened this issue Dec 31, 2017 · 7 comments

Comments

@cbeams
Copy link
Contributor

cbeams commented Dec 31, 2017

I just received the following report from a user:

I think version 0.6.2 of Bisq has a java memory
leak, I have several occurrences of the platform hanging if you leave it
running for 24 hours or more, I had a couple of instances of a java out
of memory error:

Dec-28 15:44:41.475 [Save-file-task-8323] ERROR i.b.c.s.FileManager:
Error in saveToFile toProtoMessage: PersistableNetworkPayloadCollection,
/home/user/.local/share/Bisq/btc_mainnet/db/PersistableNetworkPayloadMap
Dec-28 15:44:41.483 [Save-file-task-8323] ERROR i.b.c.s.FileManager:
Error at saveToFile,
storageFile=/home/user/.local/share/Bisq/btc_mainnet/db/PersistableNetworkPayloadMap
java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
       at
io.bisq.common.storage.FileManager.saveToFile(FileManager.java:196)
       at
io.bisq.common.storage.FileManager.saveNowInternal(FileManager.java:177)
       at
io.bisq.common.storage.FileManager.lambda$new$0(FileManager.java:72)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
       at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
       at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
       at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.OutOfMemoryError: Java heap space
       at
com.google.protobuf.AbstractMessageLite.toByteArray(AbstractMessageLite.java:68)
       at
io.bisq.common.storage.FileManager.saveToFile(FileManager.java:191)
       at
io.bisq.common.storage.FileManager.saveNowInternal(FileManager.java:177)
       at
io.bisq.common.storage.FileManager.lambda$new$0(FileManager.java:72)
       at
io.bisq.common.storage.FileManager$$Lambda$104/1832661523.call(Unknown
Source)
       ... 6 common frames omitted
@llhoppy
Copy link

llhoppy commented Jan 2, 2018

I just had another instance of this error, screenshot attached
java heap space screenshot_2018-01-02_08-52-22

@ManfredKarrer
Copy link
Contributor

Which OS are you using? Do you remember how long it was running? We never saw outOfMemory issues on OSX or Windows but on Linux. Might be some OS specific issue.

@llhoppy
Copy link

llhoppy commented Jan 3, 2018

Hi , I am running it on Qubes ,
Linux trade 4.9.56-21.pvops.qubes.x86_64 #1 SMP Tue Oct 17 23:58:50 UTC 2017 x86_64 GNU/Linux

the Qube runs :
Distributor ID: Debian
Description: Debian GNU/Linux 8.10 (jessie)
Release: 8.10
Codename: jessie

@ManfredKarrer
Copy link
Contributor

How much RAM have you assigned? I think 2-4 GB should be ok, below might be problematic...

@llhoppy
Copy link

llhoppy commented Jan 4, 2018

I have 2gig assigned

@llhoppy
Copy link

llhoppy commented Jan 5, 2018

I increased my qube to 4gig memory just in case and left Bisq running , had another java heap space error this morning

@ripcurlx
Copy link
Contributor

@llhoppy Do you still have this issue with the current (0.9.1) version? Feel free to reopen if it is still an issue.

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

4 participants