Can Java cold start?

A Piranha based HTTP service

In this installment of the series we are using examples running on Piranha to cold start the HTTP service.

If you want to run the experiment yourself you can download the example.tar.gz file.

Example Process start Process ready Process total
Example 20 - Piranha Nano 78 ms 61 ms 139 ms
Example 21 - Piranha Embedded 79 ms 62 ms 141 ms
Example 22 - Piranha Micro 1,971 ms 6 ms 1,977 ms
Example 23 - Piranha Server 221 ms 19 ms 240 ms
Example 24 - Piranha Nano (Docker) 434 ms 70 ms 504 ms
Example 25 - Piranha Embedded (Docker) 448 ms 60 ms 508 ms
Example 26 - Piranha Micro (Docker) 12,256 ms 7 ms 12,263 ms
Example 27 - Piranha Server (Docker) 797 ms 79 ms 876 ms

These numbers were collected on a Mac Mini M1 with 16GB using Java 17

Legend

If you have any comments, suggestions or concerns, please start a discussion on GitHub.

Posted October 27th, 2021

Up