Skip to content

Commit

Permalink
Issue 307 - Adding xms and xmx for Cantaloupe heap
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin Morris committed Nov 28, 2023
1 parent 3a94cdb commit 04e34fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cantaloupe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ ENV \
CANTALOUPE_FILESYSTEMSOURCE_BASICLOOKUPSTRATEGY_PATH_SUFFIX= \
CANTALOUPE_FILESYSTEMSOURCE_LOOKUP_STRATEGY="BasicLookupStrategy" \
CANTALOUPE_GROKPROCESSOR_PATH_TO_BINARIES= \
CANTALOUPE_HEAP_MIN="3G" \
CANTALOUPE_HEAP_MAX="5G" \
CANTALOUPE_HEAPCACHE_PERSIST_FILESYSTEM_PATHNAME="/data/heap.cache" \
CANTALOUPE_HEAPCACHE_PERSIST="false" \
CANTALOUPE_HEAPCACHE_TARGET_SIZE="2G" \
Expand Down
2 changes: 2 additions & 0 deletions cantaloupe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ additional settings, volumes, ports, etc.
| CANTALOUPE_FILESYSTEMSOURCE_BASICLOOKUPSTRATEGY_PATH_SUFFIX | |
| CANTALOUPE_FILESYSTEMSOURCE_LOOKUP_STRATEGY | "BasicLookupStrategy" |
| CANTALOUPE_GROKPROCESSOR_PATH_TO_BINARIES | |
| CANTALOUPE_HEAP_MIN | "3G" |
| CANTALOUPE_HEAP_MAX | "5G" |
| CANTALOUPE_HEAPCACHE_PERSIST_FILESYSTEM_PATHNAME | "/data/heap.cache" |
| CANTALOUPE_HEAPCACHE_PERSIST | "false" |
| CANTALOUPE_HEAPCACHE_TARGET_SIZE | "2G" |
Expand Down
2 changes: 1 addition & 1 deletion cantaloupe/rootfs/etc/s6-overlay/s6-rc.d/cantaloupe/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -e
# actually can write to the folder.
chown cantaloupe:cantaloupe /data

exec s6-setuidgid cantaloupe java -Dcantaloupe.config=/opt/cantaloupe/cantaloupe.properties -jar /opt/cantaloupe/cantaloupe.jar
exec s6-setuidgid cantaloupe java -Dcantaloupe.config=/opt/cantaloupe/cantaloupe.properties -Xms"${CANTALOUPE_HEAP_MIN}" -Xmx"${CANTALOUPE_HEAP_MAX}" -jar /opt/cantaloupe/cantaloupe.jar

0 comments on commit 04e34fe

Please sign in to comment.