use openj9 as the Java runtime to reduce memory usage

This commit is contained in:
Athou
2024-07-13 11:06:45 +02:00
parent dc526316a0
commit 9134f36d3b
2 changed files with 12 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ user is `admin` and the default password is `admin`.
The Java Virtual Machine (JVM) is rather greedy by default and will not release unused memory to the
operating system. This is because acquiring memory from the operating system is a relatively expensive operation.
However, this can be problematic on systems with limited memory.
This can be problematic on systems with limited memory.
#### Hard limit
@@ -77,6 +77,15 @@ and [here](https://docs.oracle.com/en/java/javase/17/gctuning/factors-affecting-
more
information.
#### OpenJ9
The [OpenJ9](https://eclipse.dev/openj9/) JVM is a more memory-efficient alternative to the HotSpot JVM, at the cost of
slightly slower throughput.
IBM provides precompiled binaries for OpenJ9
named [Semeru](https://developer.ibm.com/languages/java/semeru-runtimes/downloads/).
This is the JVM used in the [Docker image](https://github.com/Athou/commafeed/blob/master/Dockerfile).
## Translation
Files for internationalization are