Skip to content

Commit d65ec6e

Browse files
Sven LudwigNateBrady23
Sven Ludwig
authored andcommitted
log number of processors on startup (#4823)
1 parent d86c1b1 commit d65ec6e

File tree

2 files changed

+7
-0
lines changed
  • frameworks/Scala/akka-http/akka-http-slick-postgres/src/main

2 files changed

+7
-0
lines changed

Diff for: frameworks/Scala/akka-http/akka-http-slick-postgres/src/main/resources/logback.xml

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
<logger name="slick" level="ERROR"/>
3131

32+
<logger name="net.benchmark.akka.http.Main" level="INFO"/>
33+
3234
<logger name="net.benchmark" level="ERROR"/>
3335

3436
<root level="ERROR">

Diff for: frameworks/Scala/akka-http/akka-http-slick-postgres/src/main/scala/net/benchmark/akka/http/Main.scala

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ object Main {
1919
implicit val system: ActorSystem = ActorSystem("AkkaSlickBenchmarkApp")
2020
implicit val mat: ActorMaterializer = ActorMaterializer()
2121

22+
val pus = Runtime.getRuntime.availableProcessors()
23+
val pusMessage = s"Runtime.getRuntime.availableProcessors says $pus"
24+
log.info(pusMessage)
25+
println(pusMessage)
26+
2227
val config: Config = system.settings.config
2328

2429
val dbConfig: DatabaseConfig[PostgresProfile] = DatabaseConfiguration.getDefaultDatabaseConfiguration(config)

0 commit comments

Comments
 (0)