# Copyright 2021 JanusGraph Authors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
################# | |
# HEAP SETTINGS # | |
################# | |
-Xms4096m | |
-Xmx4096m | |
######################## | |
# GENERAL JVM SETTINGS # | |
######################## | |
# enable thread priorities, primarily so we can give periodic tasks | |
# a lower priority to avoid interfering with client workload | |
-XX:+UseThreadPriorities | |
# allows lowering thread priority without being root on linux - probably | |
# not necessary on Windows but doesn't harm anything. | |
# see http://tech.stolsvik.com/2010/01/linux-java-thread-priorities-workar | |
#-XX:ThreadPriorityPolicy=1 | |
# Enable heap-dump if there's an OOM | |
-XX:+HeapDumpOnOutOfMemoryError | |
# Per-thread stack size. | |
-Xss256k | |
# Make sure all memory is faulted and zeroed on startup. | |
# This helps prevent soft faults in containers and makes | |
# transparent hugepage allocation more effective. | |
-XX:+AlwaysPreTouch | |
# Enable thread-local allocation blocks and allow the JVM to automatically | |
# resize them at runtime. | |
-XX:+UseTLAB | |
-XX:+ResizeTLAB | |
-XX:+UseNUMA | |
#################### | |
# GREMLIN SETTINGS # | |
#################### | |
-Dgremlin.io.kryoShimService=org.janusgraph.hadoop.serialize.JanusGraphKryoShimService | |
################# | |
# GC SETTINGS # | |
################# | |
-XX:+UseG1GC | |
-XX:SurvivorRatio=8 | |
-XX:MaxTenuringThreshold=1 | |