-
Notifications
You must be signed in to change notification settings - Fork 21
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
https://markets.bisq.network/ is often down those last days #19
Comments
I have no access to server or github repo, so nothing I can really do about it. Ping @Emzy. just a hunch... It may be worth looking at the size of the json files (esp trades.json) generated by the bisq stats node and associated processing times. trades.json stores all-time history and the file is re-written (I believe) after every trade, or possibly on a timer. It then must be read, parsed, and cached by the PHP app. With enough cumulative trades, this could become a real bottleneck. I don't know if bisq is at that point yet, or it is something else. An improvement would be to write daily or even hourly trade.json files, so that only the current file is written to and (re-) parsed by php app when a new trade happens. Or possibly even one file per trade. edit: @Emzy has reported repeated occurrences of out-of-memory issues. If caused by apache/php, then the problem could possibly be related to the caching of trade related data, which uses PHP 7's built-in code cache. A suggestion would be to watch memory usage (in a dev/staging environment) with trade cache turned on vs turned off. |
What I do is just a "service apache2 restart" |
So I'm dumb. Is it possible to set it up so that I can have a Raspberry Pi dedicated for the dumpStatistics but have Bisq running on a separate computer? |
@Emzy suggestion: Create a file opcache-status.php under docroot:
then make a crontab entry every 10 minutes with this command:
This will create a timestamped log file with detailed info about opcache memory usage. It should stabilize after initial cache warmup period. If mem use keeps increasing forever or cache_full becomes true, that's a problem. Also, here's some info re opcache settings: https://www.saotn.org/optimize-php-opcache-configuration/ This is what a log entry should look like:
Also, as a bandaid, you might want to automate a graceful apache restart every 12 hours or so. But it would be good to generate this logfile first to see if anything bad happens with cache usage around the time that mem fills up. |
@huey735 it's possible, yes. provided rpi can handle the load. You could also run a copy of the markets website app on the rpi if you wanted, for a web view and/or read-only api. |
https://markets.bisq.network/ is often down those last days
We got complaints from users on the slack, and myself monitoring https://markets.bisq.network
get a lot of alert messages
2019-07-17 06:45:08 ; https://markets.bisq.network ; _ssl.c:704: The handshake operation timed out
2019-07-17 07:00:07 ; https://markets.bisq.network ; timed out
Maybe there is some memory leak ? need to restart ?
Ping @dan-da
The text was updated successfully, but these errors were encountered: