Skip to content

Commit

Permalink
Add a paragraph about tiered compilation in the snapstart guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
cescoffier committed Dec 5, 2022
1 parent 1a5dd2a commit 2f9ff6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/main/asciidoc/amazon-snapstart.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,10 @@ public class HelloPriming implements Resource {
----

WARNING: Restoration is limited to 2 seconds.

== TieredCompilation

It is also recommended to use _tiered compilation_ when using SnapStart.
To achieve this, set the `JAVA_TOOL_OPTIONS` environment property to `-XX:+TieredCompilation -XX:TieredStopAtLevel=1`.

TIP: `TieredCompilation` can also be interesting for regular Lambda functions.

0 comments on commit 2f9ff6f

Please sign in to comment.