Skip to content

Commit 6275aa5

Browse files
committed
JE-62104 [Make all variables visible after node creation] Java Stacks
1 parent 148c255 commit 6275aa5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/memoryConfig.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ fi
106106
#checking the need of MaxPermSize param
107107
if ! echo ${ARGS[@]} | grep -q "\-XX:MaxPermSize"
108108
then
109-
[[ -z "$MAXPERMSIZE" ]] && {
109+
if [[ -z "$MAXPERMSIZE" ]] ; then
110110
#if java version <= 7 then configure MaxPermSize otherwise ignore
111111
[[ ! -z $JAVA_VERSION && ${JAVA_VERSION%%[.|u|+]*} -le 7 ]] && {
112112
let MAXPERMSIZE_VALUE=$XMX_VALUE/10;
@@ -115,7 +115,9 @@ then
115115
MAXPERMSIZE="-XX:MaxPermSize=${MAXPERMSIZE_VALUE}M";
116116
}
117117
}
118-
}
118+
else
119+
MAXPERMSIZE="$(normalize $MAXPERMSIZE -XX:MaxPermSize=)"
120+
fi
119121
ARGS=($MAXPERMSIZE "${ARGS[@]}");
120122
fi
121123

0 commit comments

Comments
 (0)