mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 22:45:21 +01:00
Decrease MAX_MEMORY_MB_DEFAULT, improve logging, comments
This commit is contained in:
parent
16a40c1906
commit
4193d338bd
4 changed files with 6 additions and 5 deletions
|
@ -181,6 +181,8 @@ public class OfferBookService {
|
|||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
private void doDumpStatistics() {
|
||||
// We filter the case that it is a MarketBasedPrice but the price is not available
|
||||
// That should only be possible if the price feed provider is not available
|
||||
final List<FlatOffer> flatOffers = getOffers().stream()
|
||||
.filter(offer -> !offer.getUseMarketBasedPrice() || priceFeedService.getMarketPrice(offer.getCurrencyCode()) != null)
|
||||
.map(offer -> {
|
||||
|
@ -206,5 +208,4 @@ public class OfferBookService {
|
|||
.collect(Collectors.toList());
|
||||
offersJsonStorage.queueUpForSave(new PlainTextWrapper(Utilities.objectToJson(flatOffers)), 5000);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ public class PeerManager implements ConnectionListener {
|
|||
final boolean seedNode = isSeedNode(connection);
|
||||
|
||||
final Optional<NodeAddress> addressOptional = connection.getPeersNodeAddressOptional();
|
||||
log.info("onConnection: peer = {}{}",
|
||||
log.debug("onConnection: peer = {}{}",
|
||||
(addressOptional.isPresent() ? addressOptional.get().hostName : "not known yet (connection id=" + connection.getUid() + ")"),
|
||||
seedNode ? " (SeedNode)" : "");
|
||||
|
||||
|
@ -186,7 +186,7 @@ public class PeerManager implements ConnectionListener {
|
|||
" / closeConnectionReason: " + closeConnectionReason);
|
||||
|
||||
final Optional<NodeAddress> addressOptional = connection.getPeersNodeAddressOptional();
|
||||
log.info("onDisconnect: peer = {}{} / closeConnectionReason: {}",
|
||||
log.debug("onDisconnect: peer = {}{} / closeConnectionReason: {}",
|
||||
(addressOptional.isPresent() ? addressOptional.get().hostName : "not known yet (connection id=" + connection.getUid() + ")"),
|
||||
isSeedNode(connection) ? " (SeedNode)" : "",
|
||||
closeConnectionReason);
|
||||
|
|
|
@ -39,7 +39,7 @@ import static io.bitsquare.app.BitsquareEnvironment.DEFAULT_USER_DATA_DIR;
|
|||
|
||||
public class SeedNodeMain extends BitsquareExecutable {
|
||||
private static final Logger log = LoggerFactory.getLogger(SeedNodeMain.class);
|
||||
private static long MAX_MEMORY_MB_DEFAULT = 600;
|
||||
private static long MAX_MEMORY_MB_DEFAULT = 500;
|
||||
private static final long CHECK_MEMORY_PERIOD_SEC = 10 * 60;
|
||||
private SeedNode seedNode;
|
||||
private volatile boolean stopped;
|
||||
|
|
|
@ -39,7 +39,7 @@ import static io.bitsquare.app.BitsquareEnvironment.DEFAULT_USER_DATA_DIR;
|
|||
|
||||
public class StatisticsMain extends BitsquareExecutable {
|
||||
private static final Logger log = LoggerFactory.getLogger(StatisticsMain.class);
|
||||
private static long MAX_MEMORY_MB_DEFAULT = 600;
|
||||
private static long MAX_MEMORY_MB_DEFAULT = 400;
|
||||
private static final long CHECK_MEMORY_PERIOD_SEC = 10 * 60;
|
||||
private Statistics statistics;
|
||||
private volatile boolean stopped;
|
||||
|
|
Loading…
Add table
Reference in a new issue