Skip to content

Instantly share code, notes, and snippets.

@ontheklaud
Last active March 20, 2019 00:48
Show Gist options
  • Save ontheklaud/41eb36b1d59339bfe67ffdd6002c2aee to your computer and use it in GitHub Desktop.
Save ontheklaud/41eb36b1d59339bfe67ffdd6002c2aee to your computer and use it in GitHub Desktop.
Apache Ignite integration for high-performance data cache delivery
# OpenJDK 1.8 setup
# Apache Maven setup
# Build In-Memory Data Fabric release (without LGPL dependencies)
$ mvn clean package -DskipTests
# Javadoc generation (optional)
$ mvn initialize -Pjavadoc
# Assembly Apache Ignite
# Look for apache-ignite-<version>-bin.zip in ./target/bin directory.
$ mvn initialize -Prelease
# change memory allocation config
# refer: https://apacheignite.readme.io/v2.7/docs/memory-configuration
# alter performance config
# Performance suggestions for grid (fix if possible)
# To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
# ^-- Set max direct memory size if getting 'OOME: Direct buffer memory'
# (add '-XX:MaxDirectMemorySize=<size>[g|G|m|M|k|K]' to JVM options)
# ^-- Disable processing of calls to System.gc() (add '-XX:+DisableExplicitGC' to JVM options)
# ^-- Speed up flushing of dirty pages by OS (alter vm.dirty_expire_centisecs parameter by setting to 500)
JVM_OPTS="-Xms1g -Xmx4g -XX:MaxDirectMemorySize=64g -XX:+DisableExplicitGC -server -XX:MaxMetaspaceSize=256m"
sudo echo 500 > /proc/sys/vm/dirty_expire_centisecs
# execution
nohup ignite.sh >/dev/null 2>&1 &
# References
# https://apacheignite.readme.io/v2.7/docs/getting-started
# apache-ignite-2.7.0-src/DEVNOTES.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment