mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-20 07:46:05 -04:00
update scripts, add log
This commit is contained in:
parent
72510417e5
commit
0a36d0b241
@ -51,6 +51,11 @@ public class PeerManager implements ConnectionListener {
|
||||
maxConnectionsPeer = maxConnections + 4;
|
||||
maxConnectionsNonDirect = maxConnections + 8;
|
||||
maxConnectionsAbsolute = maxConnections + 18;
|
||||
|
||||
if (DevFlags.STRESS_TEST_MODE)
|
||||
System.err.println(new SimpleDateFormat("HH:mm:ss.SSS").format(new Date()) +
|
||||
" - maxConnections = " + maxConnections +
|
||||
" / maxConnectionsAbsolute = " + maxConnectionsAbsolute);
|
||||
}
|
||||
|
||||
|
||||
@ -216,7 +221,7 @@ public class PeerManager implements ConnectionListener {
|
||||
log.info("We have {} connections open. Our limit is {}", size, limit);
|
||||
if (DevFlags.STRESS_TEST_MODE)
|
||||
System.err.println(new SimpleDateFormat("HH:mm:ss.SSS").format(new Date()) + " - Connections = " + size + " / Memory(MB): " + Profiler.getUsedMemory());
|
||||
|
||||
|
||||
if (size > limit) {
|
||||
log.info("We have too many connections open.\n\t" +
|
||||
"Lets try first to remove the inbound connections of type PEER.");
|
||||
|
@ -6,6 +6,12 @@ logpath=/Users/mk/Documents/_intellij/bitsquare/logs
|
||||
datapath="/Users/mk/Library/Application Support"
|
||||
mkdir -p $logpath
|
||||
|
||||
rm "$datapath/Bitsquare_seed_node_hlitt7z4bec4kdh4.onion_8000/db/SequenceNumberMap"
|
||||
rm "$datapath/Bitsquare_seed_node_hlitt7z4bec4kdh4.onion_8000/db/PersistedPeers"
|
||||
|
||||
rm "$datapath/BS_arb/mainnet/db/SequenceNumberMap"
|
||||
rm "$datapath/BS_arb/mainnet/db/PersistedPeers"
|
||||
|
||||
nohup java -jar SeedNode.jar hlitt7z4bec4kdh4.onion:8000 0 500 >/dev/null 2>$logpath/ST_0_seednode.log &
|
||||
sleep 40
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user