Skip to content

Commit d73f634

Browse files
authored
Merge pull request #272 from jhuttana/JAVA_CORE_LIMIT
Remove JAVA_CORE_LIMIT and CORE_LIMIT
2 parents f76a87b + 74f6c52 commit d73f634

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

modules/jvm/bash/artifacts/opt/jboss/container/java/jvm/container-limits

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ if [ x$limit != x ]; then
6262
export CONTAINER_CORE_LIMIT="$limit"
6363
fi
6464

65-
local env_core_limit="$(min $CONTAINER_CORE_LIMIT $JAVA_CORE_LIMIT)"
66-
if [ -n "$env_core_limit" ]; then
67-
export CORE_LIMIT="$env_core_limit"
68-
fi
69-
7065
local max_mem="$(container_memory)"
7166
if [ x$max_mem != x ]; then
7267
export CONTAINER_MAX_MEMORY="$max_mem"

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ diagnostics() {
115115
}
116116

117117
cpu_core_tunning() {
118-
# If both are set rely on JAVA_CORE_LIMIT limited to CONTAINER_CORE_LIMIT
119118
# If none are set, just return.
120-
local core_limit=${JAVA_CORE_LIMIT:-${CONTAINER_CORE_LIMIT}}
119+
local core_limit=${CONTAINER_CORE_LIMIT}
121120
if [ "x$core_limit" = "x0" -o "x$core_limit" = "x" ]; then
122121
return
123122
else

0 commit comments

Comments
 (0)