You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason Payara Server doesn't apply jvm parameters from pre-boot commands during first start. When container is restarted, JVM options from pre-boot are added.
kuhtini
changed the title
Payara Server doesn't apply jvm parameters from pre-boot commands during first start
Bug Report: Payara Server doesn't apply jvm parameters from pre-boot commands during first start
Dec 4, 2024
JVM options specified in pre-boot commands are applied after the initial startup because the JVM reads its options during the boot process, before executing pre-boot commands. Consequently, these options take effect only upon restarting the server. This behavior is consistent with the Payara Server's startup sequence.
This behavior is not a bug but a result of the Payara Server's startup process, where JVM options are read before pre-boot commands are applied. Since this is expected, I will proceed to close this issue.
Since the script startInForeground.sh tries to start with a dry-run option and copy parameters for "real" start, I would expect that this dry-run prepared need parameters. So the current behavior is strange.
Brief Summary
For some reason Payara Server doesn't apply jvm parameters from pre-boot commands during first start. When container is restarted, JVM options from pre-boot are added.
pre-boot-commands.asadmin:
Command used to start Payara:
First run JVM args:
JVM args after restart:
Parameters were added only after the restart
Expected Outcome
JVM options from
pre-boot-commands.asadmin
are added during first start.Current Outcome
JVM options from
pre-boot-commands.asadmin
are added only after container restart.Reproducer
pre-boot-commands.asadmin
file withcreate-jvm-options
pre-boot-commands.asadmin
docker run -p 8080:8080 -v ./config:/config -e PREBOOT_COMMANDS=/config/pre-boot-commands.asadmin payara/server-full:6.2024.11-jdk17
Operating System
Ubuntu 22
JDK Version
17
Payara Distribution
Payara Server Full Profile
The text was updated successfully, but these errors were encountered: