Jeff Hudson
09/11/2024, 6:33 PMJeff Hudson
08/16/2025, 12:10 AMfun main() {
val server = embeddedServer(
factory = CIO | Netty, // One of these
environment = applicationEnvironment(),
configure = {
shutdownGracePeriod = 30_000
connector {
port = 8787
}
},
).start(wait = false)
println("Stopping...")
val time = measureTimeMillis {
server.stop()
}
println("Stopped in $time")
}
• With CIO, Stopped in 7
• With Netty, Stopped in 60205
Jeff Hudson
08/16/2025, 12:22 AMAleksei Tirman [JB]
08/18/2025, 9:43 AMJeff Hudson
08/18/2025, 2:40 PM