-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathliferay-jvm-opts.env
More file actions
23 lines (16 loc) · 894 Bytes
/
liferay-jvm-opts.env
File metadata and controls
23 lines (16 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Initialize variable, do not change
LIFERAY_JVM_OPTS=""
# Set Java initial heap space size
LIFERAY_JVM_OPTS="${LIFERAY_JVM_OPTS} -Xms4096m"
# Set Java maximum heap space size
LIFERAY_JVM_OPTS="${LIFERAY_JVM_OPTS} -Xmx4096m"
# Set the initial new space size. Setting the new size to half of the total heap typically provides better performance than using a smaller new size.
LIFERAY_JVM_OPTS="${LIFERAY_JVM_OPTS} -XX:NewSize=1536m"
# Set the maximum new space size.
LIFERAY_JVM_OPTS="${LIFERAY_JVM_OPTS} -XX:MaxNewSize=1536m"
# Sets the initial space size for static content.
LIFERAY_JVM_OPTS="${LIFERAY_JVM_OPTS} -XX:MetaspaceSize=768m"
# Sets the maximum space size for static content.
LIFERAY_JVM_OPTS="${LIFERAY_JVM_OPTS} -XX:MaxMetaspaceSize=768m"
# Sets the ratio of new space to survivor space used for garbage collection
LIFERAY_JVM_OPTS="${LIFERAY_JVM_OPTS} -XX:SurvivorRatio=7"