Skip to content

Commit 8998def

Browse files
committed
initial README.md file
1 parent 6bdbfb2 commit 8998def

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,36 @@
11
# lambda-java17-layer
22
AWS Lambda layer to enable Java 17 support
3+
4+
## Usage
5+
6+
- Create a function using the PROVIDED_AL2 runtime.
7+
- Add this layer to your function.
8+
9+
## Java 17
10+
11+
A custom JRE is created to reduce final file size. Lambda has a 250MB unzipped file size limit.
12+
13+
[Dockerfile](Dockerfile) describes how the JRE is built
14+
15+
## JVM Settings
16+
17+
The following JVM settings are added by default.
18+
19+
```
20+
--add-opens java.base/java.util=ALL-UNNAMED
21+
-XX:+TieredCompilation -XX:TieredStopAtLevel=1
22+
-Xshare:on
23+
```
24+
25+
Further suggestions welcomed
26+
27+
## Java Class Path
28+
29+
```
30+
aws-lambda-java-runtime-interface-client-1.1.0.jar
31+
aws-lambda-java-core-1.2.1.jar
32+
aws-lambda-java-serialization-1.0.0.jar
33+
$LAMBDA_TASK_ROOT
34+
$LAMBDA_TASK_ROOT/*
35+
$LAMBDA_TASK_ROOT/lib/*
36+
```

0 commit comments

Comments
 (0)