Skip to content

Commit acbe084

Browse files
committed
heap size in build.sbt
1 parent 7b9ab71 commit acbe084

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

build.sbt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation")
88

99
libraryDependencies ++= Seq(
1010
"com.h2database" % "h2-mvstore" % "1.4.193",
11-
"org.scorexfoundation" %% "scrypto" % "1.2.0")
11+
"org.scorexfoundation" %% "scrypto" % "1.2.0")
12+
13+
fork := true
14+
15+
javaOptions in run ++= Seq(
16+
"-Xms4G", "-Xmx60G", "-XX:MaxPermSize=1024M", "-XX:+UseConcMarkSweepGC")

src/main/scala/scorex/crypto/benchmarks/BlockchainBench.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,11 @@ trait BenchmarkLaunchers extends BenchmarkCommons {
302302
s"proofs size: ${proofs.size}"
303303
)
304304

305-
/* todo: is regular GC needed?
305+
// todo: is regular GC needed?
306306
if (blockNum % 5000 == 4999) {
307307
System.gc()
308308
Thread.sleep(60000)
309-
}*/
309+
}
310310
}
311311
p.close()
312312
}

0 commit comments

Comments
 (0)