r/bitmessage • • May 03 '17
BitMessage runs for 36hr max before CPU is permanently pegged and UI becomes unresponsive.
Hey there,
I'm running BitMessage in a couple of usage scenarios. One works great, the other fails miserably. Both scenarios run v 0.6.2. Both allow incoming connections. The only difference is the length of time the process has been running:
SUCCESS CASE: Running on a OSX VM, which runs on top of a OSX host OS on a MacBook Pro. Receives no more than 2-3 messages per day. BitMessage runs maybe 7-9 hrs/day and is then shut down for the night. This works flawlessly.
FAIL CASE: Running on a high-end Windows Server 2016 VM at Amazon. This instance only has one address, and that address never receives messages. Another app that runs on the machine connects to this instances via the API and sends brief automated messages to associates of mine. The UI is never used to send messages.
This instance works OK for about 24-36 hours. After that, the CPU is pegged -- and not while trying to send a message. It's pegged while basically doing nothing. Simple UI operations like clicking on the Sent folder or the Inbox take 8-15 seconds to complete. Attempting to shutdown is no picnic either. It'll usually spit out an error message saying something to the effect of, "There are still 16 objects left to sync. Want to wait before shutting down?" The end result is always the same though. The process just crashes or I have to kill it in Task Manager.
I thought the problem might be a bug in the way the API was handling my outbound message requests. So I turned off all traffic through the instance. I'm neither attempting to send nor to receive. It's just left on, passively examining BitMessage traffic. Same problem. It'll behave for a 24-36 hrs before the CPU is pegged and UI gets bogged down.
What's going on?
Thanks,
My name is Festus.
2
u/Petersurda BM-2cVJ8Bb9CM5XTEjZK1CZ9pFhm7jNA1rsa6 May 03 '17
There are already issues about this on github, posts on the forum and in the bitmessage chan. If you want to run it in a VM in the cloud, your best option is to use the code from the v0.6 branch, that should fix the CPU load. If you want to stay with the 0.6.2 release, reduce your bandwidth in the network settings.
1
u/[deleted] May 06 '17
Just to provide one last bit of feedback on the topic. Preventing inbound connections seems to fix the problem of the CPU getting pegged indefinitely -- which occurs consistently after 24-36 hrs of runtime. As for the gradual consumption of all available RAM, this still occurs with inbound connections disabled but at a slower rate. It'll gradually go from around 70MB to 500MB to 1GB and so on until all system memory is eventually consumed.
1
u/Petersurda BM-2cVJ8Bb9CM5XTEjZK1CZ9pFhm7jNA1rsa6 Jun 25 '17
Try the current development snapshots:
https://bitmessage.org/download/snapshots/
There are still some minor problems but for testing it should be fine.