Skip to content

Commit

Permalink
indicate that -Xmx also works for the native package (#1539)
Browse files Browse the repository at this point in the history
  • Loading branch information
Athou committed Oct 10, 2024
1 parent 9cca026 commit 4f687d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,18 @@ The default user is `admin` and the default password is `admin`.

When CommaFeed is up and running, you can subscribe to [this feed](https://github.com/Athou/commafeed/releases.atom) to be notified of new releases.

### Memory management (`jvm` package only)
### Memory management

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.
This can be problematic on systems with limited memory.

#### Hard limit
#### Hard limit (`native` and `jvm` packages)

The JVM can be configured to use a maximum amount of memory with the `-Xmx` parameter.
For example, to limit the JVM to 256MB of memory, use `-Xmx256m`.

#### Dynamic sizing
#### Dynamic sizing (`jvm` package)

In addition to the previous setting, the JVM can be configured to release unused memory to the operating system with the
following parameters:
Expand All @@ -137,7 +137,7 @@ and [here](https://docs.oracle.com/en/java/javase/17/gctuning/factors-affecting-
more
information.

#### OpenJ9
#### OpenJ9 (`jvm` package)

The [OpenJ9](https://eclipse.dev/openj9/) JVM is a more memory-efficient alternative to the HotSpot JVM, at the cost of
slightly slower throughput.
Expand Down

0 comments on commit 4f687d5

Please sign in to comment.