
blasd.apex.core.jvm.IApexJVMConstants Maven / Gradle / Ivy
The newest version!
/**
* The MIT License
* Copyright (c) 2014 Benoit Lacelle
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package blasd.apex.core.jvm;
/**
*
* Typical JVM arguments
*
* Class memory parameterization
*
* -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -Xmx3G -Xms3G -XX:MaxDirectMemorySize=7G -XX:MaxPermSize=512M
*
* Enable HeapDump on OutOfMemoryError
*
* -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/disk2/dumps
*
*
*
* -DbufferAllocatorClass=com.qfs.buf.impl.HeapBufferAllocator
* -DchunkAllocatorClass=com.qfs.chunk.buffer.impl.HeapBufferChunkAllocator -DdefaultChunkSize=131072
* -DchunkAllocatorClass=com.qfs.chunk.direct.impl.DirectChunkAllocator
* -DchunkAllocatorClass=com.qfs.chunk.direct.impl.MmapDirectChunkAllocator
* -DchunkAllocatorClass=com.qfs.chunk.direct.allocator.impl.SlabMemoryAllocator
*
*
* java -XX:+PrintFlagsFinal -version > flags.log
*
*
* -XX:+PrintGCApplicationStoppedTime - it prints all STW pauses not only related to GC
*
* -XX:+PrintSafepointStatistics - prints safe points details
*
* -XX:PrintSafepointStatisticsCount=1 - make JVM report every safe point
*
* <%p> will add the PID in the gcLogFile <%t> will add the startup date in the gcLogFile
*
*
* https://bugs.openjdk.java.net/browse/JDK-6950794
*
* Minimum logs in sysout
*
* -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps
*
* -Xloggc:../log/jvm_gc.%p.%t.log -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintGCDetails
* -XX:+PrintClassHistogramBeforeFullGC -XX:+PrintClassHistogramAfterFullGC -XX:+PrintGCApplicationStoppedTime
* -XX:+PrintSafepointStatistics –XX:PrintSafepointStatisticsCount=1
*
* GC rolling
*
* -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 XX:GCLogFileSize=10M
*
* In Prod -XX:-OmitStackTraceInFastThrow will prevent cutting stacks, even if at least the first stack occurence has
* been complete
*
* JGroups does not work with IPv6 -Djava.net.preferIPv4Stack=true
*
* # CheckIP with: hostname -i
*
* -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1088
* -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
* -Djava.rmi.server.hostname=
© 2015 - 2025 Weber Informatics LLC | Privacy Policy