Skip to content

Commit b674696

Browse files
authored
Merge pull request #604 from jmtd/OPENJDK-4030-rm-jvm-specific-diagnostics
Openjdk 4030 rm jvm specific diagnostics
2 parents 70d9235 + dbff5cd commit b674696

File tree

7 files changed

+4
-44
lines changed

7 files changed

+4
-44
lines changed

modules/jdk/21/artifacts/opt/jboss/container/openjdk/jdk/jvm-options

Lines changed: 0 additions & 10 deletions
This file was deleted.

modules/jdk/21/configure.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
#!/bin/sh
2-
# Configure module
3-
set -e
4-
5-
SCRIPT_DIR=$(dirname $0)
6-
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts
7-
8-
install -m 0644 -D {${ARTIFACTS_DIR},}/opt/jboss/container/openjdk/jdk/jvm-options
1+
#!/bin/bash
2+
set -euo pipefail
93

104
# Update securerandom.source for quicker starts (must be done after removing jdk 8, or it will hit the wrong files)
115
JAVA_SECURITY_FILE=/usr/lib/jvm/java/conf/security/java.security

modules/jre/21/artifacts/opt/jboss/container/openjdk/jre/jvm-options

Lines changed: 0 additions & 10 deletions
This file was deleted.

modules/jre/21/configure.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

modules/jre/21/module.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,3 @@ modules:
3030
install:
3131
- name: jboss.container.user
3232
- name: jboss.container.openjdk
33-
34-
execute:
35-
- script: configure.sh

modules/jvm/artifacts/opt/jboss/container/java/jvm/java-default-options

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ jvm_specific_options() {
1010
:
1111
}
1212

13-
jvm_specific_diagnostics() {
14-
:
15-
}
16-
1713
# Include overridden jvm_specific_*() functions
1814
if [ -f "${JBOSS_CONTAINER_OPENJDK_JDK_MODULE}/jvm-options" ]; then
1915
source "${JBOSS_CONTAINER_OPENJDK_JDK_MODULE}/jvm-options"
@@ -38,7 +34,7 @@ max_memory() {
3834
# Switch on diagnostics except when switched off
3935
diagnostics() {
4036
if [ "x$JAVA_DIAGNOSTICS" != "x" ]; then
41-
echo "$(jvm_specific_diagnostics)"
37+
echo "-Xlog:gc::utctime -XX:NativeMemoryTracking=summary"
4238
fi
4339
}
4440

modules/jvm/module.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ envs:
3232
description: Specify the maximum heap memory. Corresponds to the JVM argument `-XX:MaxRAMPercentage`. The default is `80.0` which means 80% of the available memory. You can disable this mechanism by setting the value to `0`. The supplied value can be an integer or float, but only the whole number part is used.
3333
example: "90.0"
3434
- name: JAVA_DIAGNOSTICS
35-
description: "Set this to get some diagnostics information to standard output when things are happening. **Note: ** This option, if set to true, will set `-XX :+UnlockDiagnosticVMOptions`. **Disabled by default.**"
35+
description: "Set this to get some diagnostics information from the JVM (e.g. GC, memory tracking) to standard output. **Disabled by default.**"
3636
example: "true"
3737
- name: JAVA_DEBUG
3838
description: If set remote debugging will be switched on. **Disabled by default.**

0 commit comments

Comments
 (0)