├── notebooks ├── gclog ├── debt_visualizer.ipynb └── gclog_jvmquake ├── packaging └── debian │ ├── compat │ ├── triggers │ ├── jvmquake.install │ ├── rules │ ├── changelog │ └── control ├── .dockerignore ├── OSSMETADATA ├── tests ├── Makefile ├── run_tests.sh ├── test_non_ooms.py ├── EasyOOM.java ├── SlowDeathOOM.java ├── EasyNonOOM.java ├── run_smoke_test.sh ├── EasyThreadOOM.java ├── environment.py ├── test_basic_ooms.py ├── test_java_opts.py └── test_hard_ooms.py ├── dockerfiles ├── build │ └── Dockerfile ├── packaging │ └── Dockerfile └── test │ ├── Dockerfile.ubuntu.minimal │ ├── Dockerfile.centos │ ├── Dockerfile.ubuntu │ ├── Dockerfile.ubuntu.zulu.minimal │ └── Dockerfile.ubuntu.zulu ├── tox.ini ├── NOTICE ├── src ├── Makefile └── jvmquake.c ├── .gitignore ├── .github └── workflows │ └── ci.yml ├── Makefile ├── LICENSE └── README.md /notebooks/gclog: -------------------------------------------------------------------------------- 1 | gclog_nojvmquake -------------------------------------------------------------------------------- /packaging/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | .tox 2 | notebooks 3 | -------------------------------------------------------------------------------- /OSSMETADATA: -------------------------------------------------------------------------------- 1 | osslifecycle=active 2 | -------------------------------------------------------------------------------- /packaging/debian/triggers: -------------------------------------------------------------------------------- 1 | activate-noawait ldconfig 2 | -------------------------------------------------------------------------------- /packaging/debian/jvmquake.install: -------------------------------------------------------------------------------- 1 | libjvmquake.so /usr/lib/ 2 | -------------------------------------------------------------------------------- /packaging/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | %: 4 | dh $@ 5 | -------------------------------------------------------------------------------- /tests/Makefile: -------------------------------------------------------------------------------- 1 | ifndef JAVA_HOME 2 | $(error JAVA_HOME not set) 3 | endif 4 | 5 | .PHONY: all 6 | 7 | all: 8 | ${JAVA_HOME}/bin/javac *.java 9 | -------------------------------------------------------------------------------- /packaging/debian/changelog: -------------------------------------------------------------------------------- 1 | jvmquake (1.0) unstable; urgency=medium 2 | 3 | * Initial debian packaging 4 | 5 | -- Joseph Lynch Sat, 02 May 2020 19:33:32 -0700 6 | -------------------------------------------------------------------------------- /tests/run_tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -euf -o pipefail 4 | 5 | if [ -d "/work/dist/" ]; then 6 | DEB=$(find /work/dist -name 'jvmquake*.deb') 7 | dpkg -i ${DEB} 8 | fi 9 | 10 | tox -e test 11 | tox -e test_jvm 12 | -------------------------------------------------------------------------------- /dockerfiles/build/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:18.04 2 | 3 | RUN apt-get update 4 | RUN apt-get install -y build-essential 5 | RUN apt-get install -y openjdk-8-jdk-headless 6 | 7 | WORKDIR /work 8 | 9 | COPY src/ /work 10 | 11 | ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 12 | RUN BUILD=build make 13 | -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | skipsdist = True 3 | 4 | [testenv] 5 | basepython = python3 6 | passenv = 7 | JAVA_HOME 8 | JAVA_MAJOR_VERSION 9 | AGENT_DIR 10 | deps = 11 | pytest 12 | plumbum 13 | commands = 14 | test: py.test -s tests -k test_jvmquake_ 15 | test_jvm: py.test -s tests -k test_jvm_ 16 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | jvmquake 2 | Copyright (C) 2019 Netflix, Inc. 3 | 4 | A JVMTI agent for automatically detecting and remediating dying JVMs. 5 | 6 | This software is heavily inspired by and contains code derived from 7 | the airlift jvmkill project (https://github.com/airlift/jvmkill) written by 8 | David Phillips , Apache 2 licensed 9 | -------------------------------------------------------------------------------- /dockerfiles/packaging/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG UBUNTU_VERSION=18.04 2 | FROM ubuntu:$UBUNTU_VERSION 3 | 4 | RUN apt-get update 5 | RUN apt-get install -y debhelper 6 | 7 | WORKDIR /work/packaging 8 | 9 | COPY packaging /work/packaging 10 | COPY build/libjvmquake-linux-x86_64.so /work/packaging/libjvmquake.so 11 | 12 | CMD ["dpkg-buildpackage", "-us", "-uc"] 13 | -------------------------------------------------------------------------------- /packaging/debian/control: -------------------------------------------------------------------------------- 1 | Source: jvmquake 2 | Section: java 3 | Priority: optional 4 | Maintainer: Joseph Lynch 5 | Build-Depends: debhelper (>=10) 6 | Homepage: https://github.com/Netflix-Skunkworks/jvmquake 7 | 8 | Package: jvmquake 9 | Architecture: any 10 | Depends: ${shlibs:Depends}, ${misc:Depends} 11 | Description: A JVMTI agent that kills your JVM when things go sideways 12 | -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- 1 | ifndef JAVA_HOME 2 | $(error JAVA_HOME not set) 3 | endif 4 | 5 | BUILD ?= ../build 6 | SO_NAME ?= libjvmquake-$(shell uname -s -m | tr 'A-Z' 'a-z' | tr ' ' '-').so 7 | TARGET = $(BUILD)/$(SO_NAME) 8 | 9 | INCLUDE = -I"$(JAVA_HOME)/include" -I"$(JAVA_HOME)/include/linux" 10 | CFLAGS =-Wall -Werror -fPIC -flto -shared $(INCLUDE) -lrt 11 | 12 | .PHONY: all 13 | 14 | all: 15 | mkdir -p $(BUILD) 16 | $(CC) -v 17 | $(CC) $(CFLAGS) -o $(TARGET) jvmquake.c 18 | chmod 644 $(TARGET) 19 | 20 | -------------------------------------------------------------------------------- /dockerfiles/test/Dockerfile.ubuntu.minimal: -------------------------------------------------------------------------------- 1 | ARG UBUNTU_VERSION=18.04 2 | 3 | FROM ubuntu:$UBUNTU_VERSION as builder 4 | ARG JAVA_VERSION=8 5 | 6 | RUN apt-get update 7 | RUN apt-get install -y openjdk-$JAVA_VERSION-jdk-headless 8 | RUN apt-get install -y make 9 | 10 | ENV JAVA_HOME /usr/lib/jvm/java-$JAVA_VERSION-openjdk-amd64 11 | WORKDIR /work 12 | 13 | COPY . /work 14 | RUN make java_test_targets 15 | 16 | FROM ubuntu:$UBUNTU_VERSION 17 | ARG JAVA_VERSION=8 18 | 19 | RUN apt-get update 20 | RUN apt-get install -y openjdk-$JAVA_VERSION-jre-headless 21 | 22 | WORKDIR /work 23 | 24 | COPY --from=builder /work/tests/. /work/tests 25 | COPY tests/run_smoke_test.sh /work/run_smoke_test.sh 26 | 27 | ENV JAVA_HOME /usr/lib/jvm/java-$JAVA_VERSION-openjdk-amd64 28 | CMD ["/work/run_smoke_test.sh"] 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.out 34 | *.app 35 | *.i*86 36 | *.x86_64 37 | *.hex 38 | 39 | # Debug files 40 | *.dSYM/ 41 | *.su 42 | *.idb 43 | *.pdb 44 | 45 | # Kernel Module Compile Results 46 | *.mod* 47 | *.cmd 48 | .tmp_versions/ 49 | modules.order 50 | Module.symvers 51 | Mkfile.old 52 | dkms.conf 53 | 54 | # Swap 55 | [._]*.s[a-v][a-z] 56 | [._]*.sw[a-p] 57 | [._]s[a-rt-v][a-z] 58 | [._]ss[a-gi-z] 59 | [._]sw[a-p] 60 | 61 | # Java byproducts 62 | *.class 63 | *.hprof 64 | gclog 65 | 66 | # Python test stuff 67 | .tox 68 | *__pycache__ 69 | *.pyc 70 | 71 | # core files 72 | core 73 | 74 | # python stuff 75 | .ipynb_checkpoints 76 | venv 77 | 78 | # debian 79 | dist 80 | -------------------------------------------------------------------------------- /dockerfiles/test/Dockerfile.centos: -------------------------------------------------------------------------------- 1 | ARG CENTOS_VERSION=7 2 | 3 | FROM centos:$CENTOS_VERSION as builder 4 | ARG JAVA_VERSION=1.8.0 5 | 6 | RUN yum update -y 7 | RUN yum install -y java-$JAVA_VERSION-openjdk-devel 8 | RUN yum install -y make 9 | ENV JAVA_HOME /usr/lib/jvm/java-$JAVA_VERSION-openjdk/ 10 | WORKDIR /work 11 | 12 | COPY . /work 13 | RUN make java_test_targets 14 | 15 | FROM centos:$CENTOS_VERSION 16 | ARG JAVA_VERSION=1.8.0 17 | 18 | RUN yum update -y 19 | RUN yum install -y java-$JAVA_VERSION-openjdk-headless 20 | RUN yum install -y python3 21 | 22 | RUN python3 -m pip install pip --upgrade 23 | RUN python3 -m pip install tox 24 | 25 | WORKDIR /work 26 | 27 | COPY --from=builder /work/tests/. /work/tests 28 | COPY --from=builder /work/Makefile /work/Makefile 29 | COPY --from=builder /work/tox.ini /work/tox.ini 30 | COPY tests/run_tests.sh /work/run_tests.sh 31 | 32 | ENV JAVA_HOME /usr/lib/jvm/jre-$JAVA_VERSION-openjdk/ 33 | # This should get mounted in if we want to use it 34 | ENV AGENT_DIR /work/build/ 35 | 36 | CMD ["/work/run_tests.sh"] 37 | -------------------------------------------------------------------------------- /dockerfiles/test/Dockerfile.ubuntu: -------------------------------------------------------------------------------- 1 | ARG UBUNTU_VERSION=18.04 2 | 3 | FROM ubuntu:$UBUNTU_VERSION as builder 4 | ARG JAVA_VERSION=8 5 | 6 | RUN apt-get update 7 | RUN apt-get install -y openjdk-$JAVA_VERSION-jdk-headless 8 | RUN apt-get install -y make 9 | 10 | ENV JAVA_HOME /usr/lib/jvm/java-$JAVA_VERSION-openjdk-amd64 11 | WORKDIR /work 12 | 13 | COPY . /work 14 | RUN make java_test_targets 15 | 16 | FROM ubuntu:$UBUNTU_VERSION 17 | ARG JAVA_VERSION=8 18 | 19 | RUN apt-get update 20 | RUN apt-get install -y openjdk-$JAVA_VERSION-jre-headless 21 | RUN apt-get install -y python3-minimal python3-pip 22 | 23 | RUN python3 -m pip install pip --upgrade 24 | RUN python3 -m pip install tox 25 | 26 | WORKDIR /work 27 | 28 | COPY --from=builder /work/tests/. /work/tests 29 | COPY --from=builder /work/Makefile /work/Makefile 30 | COPY --from=builder /work/tox.ini /work/tox.ini 31 | COPY tests/run_tests.sh /work/run_tests.sh 32 | 33 | ENV JAVA_HOME /usr/lib/jvm/java-$JAVA_VERSION-openjdk-amd64 34 | # This should get mounted in if we want to use it 35 | ENV AGENT_DIR /work/build/ 36 | 37 | CMD ["/work/run_tests.sh"] 38 | -------------------------------------------------------------------------------- /tests/test_non_ooms.py: -------------------------------------------------------------------------------- 1 | # Copyright 2019 Netflix, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from environment import agent_path 16 | from environment import class_path 17 | from environment import java_cmd 18 | 19 | 20 | def test_jvmquake_healthy_jvm(): 21 | """ 22 | Executes a program which should work and exit after 10 seconds 23 | """ 24 | easy_oom = java_cmd[ 25 | '-Xmx10m', 26 | agent_path, 27 | '-cp', class_path, 28 | 'EasyNonOOM' 29 | ] 30 | print("Executing NON-OOM program") 31 | print("[{0}]".format(easy_oom)) 32 | easy_oom.run(retcode=0, timeout=15) 33 | -------------------------------------------------------------------------------- /dockerfiles/test/Dockerfile.ubuntu.zulu.minimal: -------------------------------------------------------------------------------- 1 | ARG UBUNTU_VERSION=18.04 2 | 3 | FROM ubuntu:$UBUNTU_VERSION as builder 4 | ARG JAVA_VERSION=8 5 | 6 | RUN apt-get update 7 | RUN apt-get install -y gnupg ca-certificates curl 8 | RUN curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg 9 | RUN echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list 10 | RUN apt-get update 11 | RUN apt-get install -y zulu$JAVA_VERSION-jdk 12 | RUN apt-get install -y make 13 | 14 | ENV JAVA_HOME /usr/lib/jvm/zulu$JAVA_VERSION 15 | WORKDIR /work 16 | 17 | COPY . /work 18 | RUN make java_test_targets 19 | 20 | FROM ubuntu:$UBUNTU_VERSION 21 | ARG JAVA_VERSION=8 22 | 23 | RUN apt-get update 24 | RUN apt-get install -y gnupg ca-certificates curl 25 | RUN curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg 26 | RUN echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list 27 | RUN apt-get update 28 | RUN apt-get install -y zulu$JAVA_VERSION-jre 29 | 30 | WORKDIR /work 31 | 32 | COPY --from=builder /work/tests/. /work/tests 33 | COPY tests/run_smoke_test.sh /work/run_smoke_test.sh 34 | 35 | ENV JAVA_HOME /usr/lib/jvm/zulu$JAVA_VERSION 36 | CMD ["/work/run_smoke_test.sh"] 37 | -------------------------------------------------------------------------------- /tests/EasyOOM.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Modifications copyright 2019 Netflix, Inc. 3 | * 4 | * Taken https://github.com/airlift/jvmkill/blob/master/JvmKillTest.java, 5 | * Apache licensed. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | public final class EasyOOM 23 | { 24 | @SuppressWarnings("InfiniteLoopStatement") 25 | public static void main(String[] args) 26 | throws Exception 27 | { 28 | System.out.println("triggering OutOfMemory..."); 29 | List list = new ArrayList<>(); 30 | try { 31 | while (true) { 32 | byte[] bytes = new byte[1024 * 1024]; 33 | list.add(bytes); 34 | System.out.println("list size: " + list.size()); 35 | } 36 | } 37 | catch (Exception t) { 38 | System.out.println(t.toString()); 39 | } 40 | System.out.println("final list size: " + list.size()); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /tests/SlowDeathOOM.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Netflix, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | import java.util.ArrayList; 17 | import java.util.List; 18 | import java.util.Random; 19 | 20 | 21 | public final class SlowDeathOOM 22 | { 23 | @SuppressWarnings("InfiniteLoopStatement") 24 | public static void main(String[] args) 25 | { 26 | Random random = new Random(); 27 | List list = new ArrayList<>(); 28 | double cmfZone = 0.90 * Runtime.getRuntime().maxMemory(); 29 | System.out.printf("triggering OutOfMemory by allocating %.2f bytes\n", cmfZone); 30 | try { 31 | while (true) { 32 | byte[] bytes = new byte[8096]; 33 | list.add(bytes); 34 | if ((double)(list.size() * 8096) > cmfZone) 35 | list.remove(random.nextInt(list.size())); 36 | } 37 | } 38 | catch (Exception t) { 39 | System.out.println(t); 40 | } 41 | System.out.println("final list size: " + list.size()); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /dockerfiles/test/Dockerfile.ubuntu.zulu: -------------------------------------------------------------------------------- 1 | ARG UBUNTU_VERSION=18.04 2 | 3 | FROM ubuntu:$UBUNTU_VERSION as builder 4 | ARG JAVA_VERSION=8 5 | 6 | RUN apt-get update 7 | RUN apt-get install -y gnupg ca-certificates curl 8 | RUN curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg 9 | RUN echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list 10 | RUN apt-get update 11 | RUN apt-get install -y zulu$JAVA_VERSION-jdk 12 | RUN apt-get install -y make 13 | 14 | ENV JAVA_HOME /usr/lib/jvm/zulu$JAVA_VERSION 15 | WORKDIR /work 16 | 17 | COPY . /work 18 | RUN make java_test_targets 19 | 20 | FROM ubuntu:$UBUNTU_VERSION 21 | ARG JAVA_VERSION=8 22 | 23 | RUN apt-get update 24 | RUN apt-get install -y gnupg ca-certificates curl 25 | RUN curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg 26 | RUN echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list 27 | RUN apt-get update 28 | RUN apt-get install -y zulu$JAVA_VERSION-jre 29 | RUN apt-get install -y make 30 | RUN apt-get install -y python3-minimal python3-pip 31 | 32 | RUN python3 -m pip install pip --upgrade 33 | RUN python3 -m pip install tox 34 | 35 | WORKDIR /work 36 | 37 | COPY --from=builder /work/tests/. /work/tests 38 | COPY --from=builder /work/Makefile /work/Makefile 39 | COPY --from=builder /work/tox.ini /work/tox.ini 40 | COPY tests/run_tests.sh /work/run_tests.sh 41 | 42 | ENV JAVA_HOME /usr/lib/jvm/zulu$JAVA_VERSION 43 | # This should get mounted in if we want to use it 44 | ENV AGENT_DIR /work/build/ 45 | 46 | CMD ["/work/run_tests.sh"] 47 | -------------------------------------------------------------------------------- /tests/EasyNonOOM.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Netflix, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import java.util.ArrayList; 18 | import java.util.List; 19 | import java.util.concurrent.TimeUnit; 20 | 21 | public final class EasyNonOOM 22 | { 23 | public static void main(String[] args) 24 | { 25 | List list = new ArrayList<>(); 26 | double goodZone = 0.25 * Runtime.getRuntime().maxMemory(); 27 | System.out.println(String.format( 28 | "Not triggering OutOfMemory by only allocating %.2f bytes", 29 | goodZone 30 | )); 31 | 32 | long start = System.nanoTime(); 33 | long end = 0; 34 | try { 35 | while (true) { 36 | if (list.size() * 1024 * 1024 < goodZone) 37 | { 38 | byte[] bytes = new byte[1024 * 1024]; 39 | list.add(bytes); 40 | } 41 | if (TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - start) > 10) 42 | break; 43 | } 44 | } 45 | catch (Exception t) { 46 | System.out.println(t.toString()); 47 | } 48 | System.out.println("final list size: " + list.size()); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /tests/run_smoke_test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # We want to run a single mininal smoketest of jvmquake installed to the 3 | # system (via e.g. a deb) that doesn't run through all the cases but 4 | # doesn't depend on any external packages that might hide dependency issues 5 | set -euf -o pipefail 6 | set -x 7 | 8 | if [ -d "/work/dist/" ]; then 9 | DEB=$(find /work/dist -name 'jvmquake*.deb') 10 | dpkg -i ${DEB} 11 | fi 12 | 13 | JAVA=${JAVA_HOME}/bin/java 14 | function cleanup() { 15 | rm -f java_stderr 16 | bash -c 'rm -f *.hprof' 17 | rm -f core 18 | } 19 | 20 | trap cleanup EXIT 21 | 22 | echo "#########################" 23 | echo "# Excessive GC CMS test #" 24 | echo "#########################" 25 | 26 | $JAVA -Xmx100m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+HeapDumpOnOutOfMemoryError -agentpath:libjvmquake.so=1,1,0 -cp $(pwd)/tests SlowDeathOOM 2> java_stderr & 27 | JAVA_PID=$! 28 | 29 | wait 30 | 31 | # We should have a heap dump file 32 | test -f java_pid${JAVA_PID}.hprof 33 | 34 | # Signs that jvmquake did its thing 35 | # note that due to the set -euf above if any of these fail the script fails 36 | grep "Excessive GC" java_stderr 37 | grep "Requested array size exceeds VM limit" java_stderr 38 | 39 | cleanup 40 | 41 | echo "##########################" 42 | echo "# Excessive GC G1GC test #" 43 | echo "##########################" 44 | 45 | $JAVA -Xmx100m -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -agentpath:libjvmquake.so=1,1,0 -cp $(pwd)/tests SlowDeathOOM 2> java_stderr & 46 | JAVA_PID=$! 47 | 48 | wait 49 | 50 | # We should have a heap dump file 51 | test -f java_pid${JAVA_PID}.hprof 52 | 53 | # Signs that jvmquake did its thing 54 | # note that due to the set -euf above if any of these fail the script fails 55 | grep "Excessive GC" java_stderr 56 | grep "Requested array size exceeds VM limit" java_stderr 57 | 58 | cleanup 59 | -------------------------------------------------------------------------------- /tests/EasyThreadOOM.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Netflix, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | import java.util.ArrayList; 17 | import java.util.List; 18 | 19 | public final class EasyThreadOOM 20 | { 21 | public static void main(String[] args) 22 | throws Exception 23 | { 24 | System.out.println("Thread ~fork bombing the JVM ..."); 25 | List list = new ArrayList<>(); 26 | try { 27 | for (int i = 0; i < 128 * 1024 * 1024; i++) { 28 | Thread thread = new Thread(() -> { 29 | while (true) { 30 | try { 31 | Thread.sleep(90000); 32 | System.out.println("Done!"); 33 | } catch (InterruptedException ign) {} 34 | } 35 | }); 36 | thread.start(); 37 | // Hold onto the thread 38 | list.add(thread); 39 | if (list.size() % 10000 == 0) { 40 | System.out.println("Spawned [" + list.size() + "] threads ..."); 41 | } 42 | } 43 | } 44 | catch (Exception t) { 45 | System.out.println(t.toString()); 46 | } finally { 47 | System.out.println("final list size: " + list.size()); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /tests/environment.py: -------------------------------------------------------------------------------- 1 | # Copyright 2019 Netflix, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | import os 16 | import glob 17 | from pathlib import Path 18 | 19 | from plumbum import local 20 | import pytest 21 | 22 | 23 | CHECK_CORES = os.environ.get('CHECK_CORES', '') != '' 24 | JAVA_HOME = os.environ.get('JAVA_HOME') 25 | assert JAVA_HOME is not None 26 | 27 | # Java 9 and 11 removed a bunch of GC flags 28 | # Then Java 14 removed CMS 29 | # Then ZGC was added in 15 30 | JAVA_MAJOR_VERSION = int(os.environ.get('JAVA_MAJOR_VERSION', '8')) 31 | 32 | AGENT_DIR = os.environ.get('AGENT_DIR', Path(os.getcwd(), 'build').as_posix()) 33 | AGENT_PATH = glob.glob('{}/*.so'.format(AGENT_DIR)) 34 | if len(AGENT_PATH) == 0: 35 | # assume that jvmquake has been installed 36 | AGENT_PATH='libjvmquake.so' 37 | else: 38 | AGENT_PATH=AGENT_PATH[0] 39 | 40 | java_cmd = local["{0}/bin/java".format(JAVA_HOME)] 41 | agent_path = "-agentpath:{0}".format(AGENT_PATH) 42 | class_path = "{0}/tests".format(os.getcwd()) 43 | 44 | 45 | @pytest.fixture(scope='module') 46 | def core_ulimit(): 47 | import resource 48 | (x, y) = resource.getrlimit(resource.RLIMIT_CORE) 49 | resource.setrlimit( 50 | resource.RLIMIT_CORE, 51 | (resource.RLIM_INFINITY, resource.RLIM_INFINITY) 52 | ) 53 | yield 54 | resource.setrlimit(resource.RLIMIT_CORE, (x, y)) 55 | 56 | 57 | def assert_files(*paths): 58 | for path in paths: 59 | assert path.is_file() 60 | 61 | 62 | def cleanup(*paths): 63 | [path.unlink() for path in paths if path.is_file()] 64 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: jvmquake-ci 3 | on: 4 | push: 5 | branches: 6 | - master 7 | - main 8 | tags: 9 | - v'*' 10 | pull_request: 11 | jobs: 12 | centos: 13 | runs-on: ubuntu-latest 14 | steps: 15 | - uses: actions/checkout@v2 16 | - name: "Set nproc limits to control threads" 17 | run: | 18 | sudo prlimit --pid $$ --nofile=32768:32768 --nproc=32768:32768 19 | ulimit -n -u 20 | - name: "Test Java 8 for centos7 in Docker" 21 | run: make test_centos7_openjdk8 22 | ubuntu-jammy: 23 | runs-on: ubuntu-22.04 24 | strategy: 25 | matrix: 26 | dist: ['zulu', 'temurin', 'corretto'] 27 | java: ['8', '11', '17', '21'] 28 | steps: 29 | - uses: actions/checkout@v2 30 | - name: "Set nproc limits to control threads" 31 | run: | 32 | sudo prlimit --pid $$ --nofile=32768:32768 --nproc=32768:32768 33 | ulimit -n -u 34 | - name: "Setup python for tox" 35 | uses: actions/setup-python@v4 36 | with: 37 | python-version: "3.11" 38 | - name: "Install tox for test suite" 39 | run: pip install tox 40 | - uses: actions/setup-java@v4 41 | with: 42 | distribution: ${{ matrix.dist }} 43 | java-version: | 44 | 8 45 | ${{ matrix.java }} 46 | - name: "Build jvmquake .so with Java 8" 47 | run: JAVA_HOME=$JAVA_HOME_8_X64 make -C src 48 | - name: Build jvmquake tests against Java ${{ matrix.java }} 49 | run: env | grep JAVA && make -C tests 50 | - name: Run jvmquake tests against Java ${{ matrix.java }} 51 | env: 52 | JAVA_MAJOR_VERSION: ${{ matrix.java }} 53 | run: tox -e test,test_jvm 54 | ubuntu-bionic: 55 | runs-on: ubuntu-20.04 56 | strategy: 57 | matrix: 58 | dist: ['zulu', 'temurin', 'corretto'] 59 | java: ['8', '11', '17', '21'] 60 | steps: 61 | - uses: actions/checkout@v2 62 | - name: "Set nproc limits to control threads" 63 | run: | 64 | sudo prlimit --pid $$ --nofile=32768:32768 --nproc=32768:32768 65 | ulimit -n -u 66 | - name: "Setup python for tox" 67 | uses: actions/setup-python@v4 68 | with: 69 | python-version: "3.11" 70 | - name: "Install tox for test suite" 71 | run: pip install tox 72 | - uses: actions/setup-java@v4 73 | with: 74 | distribution: ${{ matrix.dist }} 75 | java-version: | 76 | 8 77 | ${{ matrix.java }} 78 | - name: "Build jvmquake .so with Java 8" 79 | run: JAVA_HOME=$JAVA_HOME_8_X64 make -C src 80 | - name: Build jvmquake tests against JVM ${{ matrix.java }} 81 | run: env | grep JAVA && make -C tests 82 | - name: Run jvmquake tests against JVM ${{ matrix.java }} 83 | env: 84 | JAVA_MAJOR_VERSION: ${{ matrix.java }} 85 | run: tox -e test,test_jvm 86 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: all clean test 2 | 3 | BUILD ?= build 4 | DIST ?= dist 5 | 6 | all: 7 | mkdir -p $(BUILD) 8 | BUILD=../build make -C src 9 | 10 | java_test_targets: 11 | make -C tests 12 | 13 | clean: 14 | rm -rf build 15 | rm -rf dist 16 | rm -f *.class 17 | rm -f *.hprof 18 | rm -f core 19 | rm -f gclog 20 | rm -f *.ran 21 | rm -f tests/*.class 22 | rm -rf tests/__pycache__ 23 | rm -rf .tox 24 | 25 | test_jvmquake: all java_test_targets 26 | tox -e test 27 | 28 | test_jvm: all java_test_targets 29 | tox -e test_jvm 30 | 31 | test: all java_test_targets test_jvmquake test_jvm 32 | 33 | build_in_docker: 34 | mkdir -p $(BUILD) 35 | docker container rm -f jvmquake-build || true 36 | docker build -f dockerfiles/build/Dockerfile . -t jolynch/jvmquake:build 37 | docker container create --name jvmquake-build jolynch/jvmquake:build 38 | docker container cp jvmquake-build:/work/build/. ./$(BUILD)/ 39 | docker container rm -f jvmquake-build 40 | 41 | build_deb_in_docker: build_in_docker 42 | mkdir -p $(DIST) 43 | docker container rm -f jvmquake-debbuild || true 44 | docker build -f dockerfiles/packaging/Dockerfile . -t jolynch/jvmquake:debbuild 45 | docker run --name jvmquake-debbuild jolynch/jvmquake:debbuild 46 | docker cp jvmquake-debbuild:/work/. ./$(DIST)/ 47 | docker rm -f jvmquake-debbuild 48 | 49 | # Ubuntu builds test with both the .so and the .deb 50 | 51 | test_bionic_zulu8: UBUNTU_VERSION=18.04 52 | test_bionic_zulu8: JAVA_VERSION=8 53 | test_bionic_zulu8: TEST_NAME=test_bionic_zulu8 54 | test_bionic_zulu8: test_ubuntu_with_zulu 55 | 56 | test_bionic_zulu11: UBUNTU_VERSION=18.04 57 | test_bionic_zulu11: JAVA_VERSION=11 58 | test_bionic_zulu11: TEST_NAME=test_bionic_zulu11 59 | test_bionic_zulu11: test_ubuntu_with_zulu 60 | 61 | test_bionic_openjdk8: UBUNTU_VERSION=18.04 62 | test_bionic_openjdk8: JAVA_VERSION=8 63 | test_bionic_openjdk8: TEST_NAME=test_bionic_openjdk8 64 | test_bionic_openjdk8: test_ubuntu_with_openjdk 65 | 66 | test_bionic_openjdk11: UBUNTU_VERSION=18.04 67 | test_bionic_openjdk11: JAVA_VERSION=11 68 | test_bionic_openjdk11: TEST_NAME=test_bionic_openjdk11 69 | test_bionic_openjdk11: test_ubuntu_with_openjdk 70 | 71 | test_jammy_openjdk8: UBUNTU_VERSION=22.04 72 | test_jammy_openjdk8: JAVA_VERSION=8 73 | test_jammy_openjdk8: TEST_NAME=test_jammy_openjdk8 74 | test_jammy_openjdk8: test_ubuntu_with_openjdk 75 | 76 | test_jammy_openjdk11: UBUNTU_VERSION=22.04 77 | test_jammy_openjdk11: JAVA_VERSION=11 78 | test_jammy_openjdk11: TEST_NAME=test_jammy_openjdk11 79 | test_jammy_openjdk11: test_ubuntu_with_openjdk 80 | 81 | test_jammy_openjdk17: UBUNTU_VERSION=22.04 82 | test_jammy_openjdk17: JAVA_VERSION=17 83 | test_jammy_openjdk17: TEST_NAME=test_jammy_openjdk17 84 | test_jammy_openjdk17: test_ubuntu_with_openjdk 85 | 86 | test_jammy_openjdk21: UBUNTU_VERSION=22.04 87 | test_jammy_openjdk21: JAVA_VERSION=17 88 | test_jammy_openjdk21: TEST_NAME=test_jammy_openjdk17 89 | test_jammy_openjdk21: test_ubuntu_with_openjdk 90 | 91 | 92 | test_ubuntu_with_openjdk: build_deb_in_docker 93 | docker build -f dockerfiles/test/Dockerfile.ubuntu --build-arg UBUNTU_VERSION=$(UBUNTU_VERSION) --build-arg JAVA_VERSION=$(JAVA_VERSION) . -t jolynch/jvmquake:$(TEST_NAME) 94 | docker build -f dockerfiles/test/Dockerfile.ubuntu.minimal --build-arg UBUNTU_VERSION=$(UBUNTU_VERSION) --build-arg JAVA_VERSION=$(JAVA_VERSION) . -t jolynch/jvmquake:$(TEST_NAME)_minimal 95 | # Check that the .so works 96 | docker run -e JAVA_MAJOR_VERSION=$(JAVA_VERSION) --ulimit nproc=32768:32768 --rm -v $(shell pwd)/build/:/work/build/ jolynch/jvmquake:$(TEST_NAME) 97 | # Check that the debian works 98 | docker run -e JAVA_MAJOR_VERSION=$(JAVA_VERSION) --ulimit nproc=32768:32768 --rm -v $(shell pwd)/dist/:/work/dist/ jolynch/jvmquake:$(TEST_NAME)_minimal 99 | 100 | test_ubuntu_with_zulu: build_deb_in_docker 101 | docker build -f dockerfiles/test/Dockerfile.ubuntu.zulu --build-arg UBUNTU_VERSION=$(UBUNTU_VERSION) --build-arg JAVA_VERSION=$(JAVA_VERSION) . -t jolynch/jvmquake:$(TEST_NAME) 102 | docker build -f dockerfiles/test/Dockerfile.ubuntu.zulu.minimal --build-arg UBUNTU_VERSION=$(UBUNTU_VERSION) --build-arg JAVA_VERSION=$(JAVA_VERSION) . -t jolynch/jvmquake:$(TEST_NAME)_minimal 103 | # Check that the .so works 104 | docker run -e JAVA_MAJOR_VERSION=$(JAVA_VERSION) --ulimit nproc=32768:32768 --rm -v $(shell pwd)/build/:/work/build/ jolynch/jvmquake:$(TEST_NAME) 105 | # Check that the debian works 106 | docker run -e JAVA_MAJOR_VERSION=$(JAVA_VERSION) --ulimit nproc=32768:32768 --rm -v $(shell pwd)/dist/:/work/dist/ jolynch/jvmquake:$(TEST_NAME)_minimal 107 | 108 | 109 | # CentOS builds just test with the .so file 110 | 111 | test_centos7_openjdk8: build_in_docker 112 | docker build -f dockerfiles/test/Dockerfile.centos --build-arg CENTOS_VERSION=7 --build-arg JAVA_VERSION=1.8.0 . -t jolynch/jvmquake:$@ 113 | docker run -e JAVA_MAJOR_VERSION=8 --ulimit nproc=32768:32768 --rm -v $(shell pwd)/build/:/work/build/ jolynch/jvmquake:$@ 114 | -------------------------------------------------------------------------------- /tests/test_basic_ooms.py: -------------------------------------------------------------------------------- 1 | # Copyright 2019 Netflix, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | import re 16 | import pytest 17 | from pathlib import Path 18 | 19 | from environment import agent_path 20 | from environment import assert_files 21 | from environment import CHECK_CORES 22 | from environment import class_path 23 | from environment import cleanup 24 | from environment import core_ulimit 25 | from environment import java_cmd 26 | 27 | 28 | @pytest.fixture() 29 | def thread_ulimit(): 30 | import resource 31 | (x, y) = resource.getrlimit(resource.RLIMIT_NPROC) 32 | resource.setrlimit( 33 | resource.RLIMIT_NPROC, 34 | (2048, y) 35 | ) 36 | print("\nProcess limit after fixture: {}\n".format( 37 | resource.getrlimit(resource.RLIMIT_NPROC)) 38 | ) 39 | yield 40 | resource.setrlimit(resource.RLIMIT_NPROC, (x, y)) 41 | 42 | 43 | def test_jvmquake_normal_oom(): 44 | """ 45 | Executes a program which runs out of memory through native allocations 46 | """ 47 | easy_oom = java_cmd[ 48 | '-Xmx10m', 49 | '-XX:+HeapDumpOnOutOfMemoryError', 50 | "-XX:OnOutOfMemoryError=/bin/touch OnOutOfMemoryError_%p.ran", 51 | agent_path, 52 | '-cp', class_path, 53 | 'EasyOOM' 54 | ] 55 | print("Executing simple OOM") 56 | print("[{0}]".format(easy_oom)) 57 | with easy_oom.bgrun(retcode=-9, timeout=10) as proc: 58 | pid = proc.pid 59 | 60 | heapdump_path = Path.cwd().joinpath("java_pid{0}.hprof".format(pid)) 61 | ooome_path = Path.cwd().joinpath("OnOutOfMemoryError_{0}.ran".format(pid)) 62 | 63 | files = (heapdump_path, ooome_path) 64 | try: 65 | assert_files(*files) 66 | finally: 67 | cleanup(*files) 68 | 69 | 70 | def test_jvmquake_coredump_oom(core_ulimit): 71 | """ 72 | Executes a program which runs out of memory through native allocations 73 | """ 74 | easy_oom = java_cmd[ 75 | '-Xmx10m', 76 | '-XX:+HeapDumpOnOutOfMemoryError', 77 | agent_path + "=10,1,6", 78 | '-cp', class_path, 79 | 'EasyOOM' 80 | ] 81 | print("Executing simple OOM causing core dump") 82 | print("[{0}]".format(easy_oom)) 83 | with easy_oom.bgrun(retcode=-6, timeout=30) as proc: 84 | pid = proc.pid 85 | 86 | heapdump_path = Path.cwd().joinpath("java_pid{0}.hprof".format(pid)) 87 | core_path = Path.cwd().joinpath("core") 88 | 89 | files = [heapdump_path] 90 | # So ... core files are apparently super annoying to reliably generate 91 | # in Docker (or really on any system you don't control the value of 92 | # /proc/sys/kernel/core_pattern ) So we don't check it by default 93 | # set the CHECK_CORES env variable to test this too 94 | if CHECK_CORES: 95 | files.append(core_path) 96 | 97 | try: 98 | assert_files(*files) 99 | finally: 100 | cleanup(*files) 101 | 102 | 103 | def test_jvmquake_forced_oom(core_ulimit): 104 | """ 105 | Executes a program which runs out of memory through native allocations 106 | and ensures that we properly parse the "0" option 107 | """ 108 | easy_oom = java_cmd[ 109 | '-Xmx10m', 110 | '-XX:+HeapDumpOnOutOfMemoryError', 111 | agent_path + "=10,1,0", 112 | '-cp', class_path, 113 | 'EasyOOM' 114 | ] 115 | print("Executing simple OOM causing core dump") 116 | print("[{0}]".format(easy_oom)) 117 | with easy_oom.bgrun(retcode=-9, timeout=10) as proc: 118 | pid = proc.pid 119 | 120 | heapdump_path = Path.cwd().joinpath("java_pid{0}.hprof".format(pid)) 121 | 122 | files = [heapdump_path] 123 | 124 | try: 125 | assert_files(*files) 126 | finally: 127 | cleanup(*files) 128 | 129 | 130 | def test_jvmquake_thread_oom(thread_ulimit): 131 | """ 132 | Executes a program which runs out of memory through lots of Thread 133 | allocations 134 | """ 135 | thread_oom = java_cmd[ 136 | '-Xmx100m', 137 | '-XX:+HeapDumpOnOutOfMemoryError', 138 | agent_path, 139 | '-cp', class_path, 140 | 'EasyThreadOOM' 141 | ] 142 | print("Executing thread OOM") 143 | print("[{0}]".format(thread_oom)) 144 | (_, stdout, stderr) = thread_oom.run(retcode=-9, timeout=60) 145 | # Java 11 took out the word "new" 146 | assert "unable to create" in stderr 147 | assert "native thread" in stderr 148 | -------------------------------------------------------------------------------- /tests/test_java_opts.py: -------------------------------------------------------------------------------- 1 | # Copyright 2019 Netflix, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from pathlib import Path 16 | 17 | import plumbum 18 | import pytest 19 | 20 | from environment import JAVA_MAJOR_VERSION 21 | from environment import assert_files 22 | from environment import class_path 23 | from environment import cleanup 24 | from environment import java_cmd 25 | 26 | 27 | @pytest.fixture() 28 | def thread_ulimit(): 29 | import resource 30 | (x, y) = resource.getrlimit(resource.RLIMIT_NPROC) 31 | resource.setrlimit( 32 | resource.RLIMIT_NPROC, 33 | (2048, y) 34 | ) 35 | print("\nProcess limit after fixture: {}\n".format( 36 | resource.getrlimit(resource.RLIMIT_NPROC)) 37 | ) 38 | yield 39 | resource.setrlimit(resource.RLIMIT_NPROC, (x, y)) 40 | 41 | 42 | def test_jvm_normal_oom(): 43 | """ 44 | Executes a program which runs out of memory through native allocations 45 | ExitOnOutOfMemoryError should work here 46 | """ 47 | easy_oom = java_cmd[ 48 | '-Xmx10m', 49 | '-XX:+HeapDumpOnOutOfMemoryError', 50 | "-XX:OnOutOfMemoryError=/bin/touch OnOutOfMemoryError_%p.ran", 51 | "-XX:+ExitOnOutOfMemoryError", 52 | '-cp', class_path, 53 | 'EasyOOM' 54 | ] 55 | print("Executing simple OOM") 56 | print("[{0}]".format(easy_oom)) 57 | with easy_oom.bgrun(retcode=3, timeout=10) as proc: 58 | pid = proc.pid 59 | 60 | heapdump_path = Path.cwd().joinpath("java_pid{0}.hprof".format(pid)) 61 | ooome_path = Path.cwd().joinpath("OnOutOfMemoryError_{0}.ran".format(pid)) 62 | 63 | files = (heapdump_path, ooome_path) 64 | try: 65 | assert_files(*files) 66 | finally: 67 | cleanup(*files) 68 | 69 | 70 | def test_jvm_exit_oom(thread_ulimit): 71 | """ 72 | Runs the JVM out of threads. 73 | ExitOnOutOfMemoryError does not work for these thread leaks. 74 | """ 75 | thread_oom = java_cmd[ 76 | '-Xmx100m', 77 | '-XX:+ExitOnOutOfMemoryError', 78 | '-cp', class_path, 79 | 'EasyThreadOOM' 80 | ] 81 | print("Executing thread OOM") 82 | print("[{0}]".format(thread_oom)) 83 | with (pytest.raises(plumbum.commands.processes.ProcessTimedOut)): 84 | thread_oom.run(retcode=3, timeout=10) 85 | 86 | 87 | def test_jvm_cms_slow_death_oom(): 88 | """ 89 | Executes a program which over time does way more GC than actual execution 90 | 91 | In this case -XX:GCTimeLimit and -XX:GCHeapFreeLimit do squat 92 | """ 93 | if JAVA_MAJOR_VERSION >= 14: 94 | print(f"CMS is not available on {JAVA_MAJOR_VERSION} >= 14") 95 | return 96 | elif JAVA_MAJOR_VERSION > 8: 97 | cms_slow_death = java_cmd[ 98 | '-Xmx100m', 99 | '-XX:+UseConcMarkSweepGC', 100 | '-XX:CMSInitiatingOccupancyFraction=75', 101 | '-XX:GCTimeLimit=20', 102 | '-XX:GCHeapFreeLimit=80', 103 | '-cp', class_path, 104 | 'SlowDeathOOM' 105 | ] 106 | else: 107 | cms_slow_death = java_cmd[ 108 | '-Xmx100m', 109 | '-XX:+UseParNewGC', 110 | '-XX:+UseConcMarkSweepGC', 111 | '-XX:CMSInitiatingOccupancyFraction=75', 112 | '-XX:GCTimeLimit=20', 113 | '-XX:GCHeapFreeLimit=80', 114 | '-cp', class_path, 115 | 'SlowDeathOOM' 116 | ] 117 | print("Executing Complex CMS Slow Death OOM") 118 | print("[{0}]".format(cms_slow_death)) 119 | with (pytest.raises(plumbum.commands.processes.ProcessTimedOut)): 120 | cms_slow_death.run(retcode=3, timeout=10) 121 | 122 | 123 | def test_jvm_g1_slow_death_oom(): 124 | """ 125 | Executes a program which over time does way more GC than actual execution 126 | 127 | In this case -XX:GCTimeLimit and -XX:GCHeapFreeLimit do squat for G1GC 128 | """ 129 | g1_slow_death = java_cmd[ 130 | '-Xmx100m', 131 | '-XX:+UseG1GC', 132 | '-XX:GCTimeLimit=20', 133 | '-XX:GCHeapFreeLimit=80', 134 | '-cp', class_path, 135 | 'SlowDeathOOM' 136 | ] 137 | print("Executing Complex G1 Slow Death OOM") 138 | print("[{0}]".format(g1_slow_death)) 139 | with (pytest.raises(plumbum.commands.processes.ProcessTimedOut)): 140 | g1_slow_death.run(retcode=3, timeout=10) 141 | 142 | @pytest.mark.skip(reason="ZGC just ooms immediately") 143 | def test_jvm_zgc_slow_death_oom(): 144 | """ 145 | Executes a program which over time does way more GC than actual execution 146 | 147 | In this case -XX:GCTimeLimit and -XX:GCHeapFreeLimit do squat for ZGC 148 | """ 149 | if JAVA_MAJOR_VERSION < 21: 150 | print(f"ZGC+generation is not available on {JAVA_MAJOR_VERSION} < 21") 151 | return 152 | 153 | zgc_slow_death = java_cmd[ 154 | '-Xmx100m', 155 | '-XX:+UseZGC', 156 | '-XX:+ZGenerational', 157 | '-XX:GCTimeLimit=20', 158 | '-XX:GCHeapFreeLimit=80', 159 | '-cp', class_path, 160 | 'SlowDeathOOM' 161 | ] 162 | print("Executing Complex ZGC Slow Death OOM") 163 | print("[{0}]".format(zgc_slow_death)) 164 | with (pytest.raises(plumbum.commands.processes.ProcessTimedOut)): 165 | zgc_slow_death.run(retcode=3, timeout=10) 166 | -------------------------------------------------------------------------------- /notebooks/debt_visualizer.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "markdown", 5 | "metadata": {}, 6 | "source": [ 7 | "JVMQuake GCLog Analyzer\n", 8 | "=======================\n", 9 | "\n", 10 | "This notebook displayes the GC debt algorithm that `jvmquake` uses and will parse the file `gclog` assuming it is a standard Java GC file from a JVM running with `-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime` that contains lines that look like:\n", 11 | "\n", 12 | "```\n", 13 | "2019-03-05T02:41:44.826+0000: 7.395: Total time for which application threads were stopped: 0.0001693 seconds, Stopping threads took: 0.0000766 seconds\n", 14 | "2019-03-05T02:41:44.935+0000: 7.504: Application time: 0.1087838 seconds \n", 15 | "2019-03-05T02:41:44.935+0000: 7.504: Total time for which application threads were stopped: 0.0002082 seconds, Stopping threads took: 0.0000504 seconds\n", 16 | "2019-03-05T02:41:45.058+0000: 7.627: Application time: 0.1229325 seconds \n", 17 | "2019-03-05T02:41:45.058+0000: 7.627: Total time for which application threads were stopped: 0.0002039 seconds, Stopping threads took: 0.0000656 seconds\n", 18 | "2019-03-05T02:41:45.400+0000: 7.969: Application time: 0.3417643 seconds \n", 19 | "2019-03-05T02:41:45.400+0000: 7.969: Total time for which application threads were stopped: 0.0002733 seconds, Stopping threads took: 0.0000479 seconds\n", 20 | "2019-03-05T02:41:46.400+0000: 8.969: Application time: 1.0001321 seconds \n", 21 | "2019-03-05T02:41:46.671+0000: 9.240: Total time for which application threads were stopped: 0.2710559 seconds, Stopping threads took: 0.2709677 seconds\n", 22 | "2019-03-05T02:41:46.691+0000: 9.260: Application time: 0.0201782 seconds \n", 23 | "2019-03-05T02:41:46.692+0000: 9.261: Total time for which application threads were stopped: 0.0002705 seconds, Stopping threads took: 0.0000955 seconds\n", 24 | "```\n", 25 | "\n", 26 | "Based on this data it will show when `jvmquake` would step in and detect a spiral of death.\n" 27 | ] 28 | }, 29 | { 30 | "cell_type": "code", 31 | "execution_count": null, 32 | "metadata": {}, 33 | "outputs": [], 34 | "source": [ 35 | "import re\n", 36 | "import datetime\n", 37 | "\n", 38 | "runtimes = []\n", 39 | "pauses = []\n", 40 | "safepoints = []\n", 41 | "\n", 42 | "float_regex = \"[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?\"\n", 43 | "runtime_match = re.compile(\"Application time: {0} seconds\".format(float_regex))\n", 44 | "pause_match = re.compile(\"Total time for which application threads were stopped: {0} seconds, \"\n", 45 | " \"Stopping threads took: {0} seconds\".format(float_regex))\n", 46 | "timestamp_match = re.compile(\"(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3})\\+\\d{4}\")\n", 47 | "\n", 48 | "# NOTE: If you want a different gclog, either symlink to gclog or change this file\n", 49 | "with open('gclog') as gclog:\n", 50 | " for line in gclog:\n", 51 | " timestamp = timestamp_match.search(line)\n", 52 | " if timestamp is None:\n", 53 | " continue\n", 54 | " dt = datetime.datetime.strptime(timestamp.groups(0)[0], '%Y-%m-%dT%H:%M:%S.%f')\n", 55 | " runtime = runtime_match.search(line)\n", 56 | " pause_time = pause_match.search(line)\n", 57 | " if runtime:\n", 58 | " runtimes.append((dt, float(runtime.groups(0)[0])))\n", 59 | " elif pause_time:\n", 60 | " pauses.append((dt, float(pause_time.groups(0)[0])))\n", 61 | " safepoints.append((dt, float(pause_time.groups(0)[3])))\n", 62 | " \n", 63 | "print(\"Found {} runtimes and {} pauses\".format(len(runtimes), len(pauses)))\n", 64 | "# A proper GC log should have roughly equal runtimes to pauses\n", 65 | "assert abs(len(runtimes) - len(pauses)) < 2\n", 66 | "# A proper GC log should have equal numbers of safepoint datapoints and gc latencies\n", 67 | "assert len(safepoints) == len(pauses)" 68 | ] 69 | }, 70 | { 71 | "cell_type": "code", 72 | "execution_count": null, 73 | "metadata": {}, 74 | "outputs": [], 75 | "source": [ 76 | "# The bucket for keeping track of relative running and paused time\n", 77 | "token_bucket = 0\n", 78 | "# The amount of weight to give running seconds over GCing seconds. This defines\n", 79 | "# our expected application throughput\n", 80 | "runtime_weight = 4\n", 81 | "# The amount of time that we must exceed the expected throughput by before\n", 82 | "# triggering the signal and death actions\n", 83 | "gc_threshold = 30\n", 84 | " \n", 85 | "adj_runtimes = []\n", 86 | "token_bucket_values = []\n", 87 | "kill_pos = []\n", 88 | "kill_times = []\n", 89 | "\n", 90 | "for i in range(min(len(runtimes), len(pauses))):\n", 91 | " dt, runtime = runtimes[i]\n", 92 | " if (token_bucket - (runtime * runtime_weight)) < 0:\n", 93 | " adj_runtimes.append((dt, token_bucket))\n", 94 | " else:\n", 95 | " adj_runtimes.append((dt, runtime))\n", 96 | " \n", 97 | " token_bucket = max(0, token_bucket - (runtime * runtime_weight))\n", 98 | " token_bucket_values.append((dt, token_bucket))\n", 99 | " \n", 100 | " dt, pause_time = pauses[i]\n", 101 | " token_bucket += pause_time\n", 102 | " if token_bucket > gc_threshold - 1:\n", 103 | " print('WARNING: Would have killed process at {0} with debt {1}'.format(dt, token_bucket))\n", 104 | " kill_times.append(dt)\n", 105 | " kill_pos.append(i)\n", 106 | " token_bucket_values.append((dt, token_bucket))" 107 | ] 108 | }, 109 | { 110 | "cell_type": "code", 111 | "execution_count": null, 112 | "metadata": {}, 113 | "outputs": [], 114 | "source": [ 115 | "import matplotlib\n", 116 | "import matplotlib.pyplot as plt\n", 117 | "import matplotlib.style as style\n", 118 | "import numpy as np\n", 119 | "\n", 120 | "style.use('tableau-colorblind10')\n", 121 | "matplotlib.rcParams.update({'font.size': 16})" 122 | ] 123 | }, 124 | { 125 | "cell_type": "code", 126 | "execution_count": null, 127 | "metadata": {}, 128 | "outputs": [], 129 | "source": [ 130 | "sample_x = [i for i in range(min(len(adj_runtimes), len(pauses)))]\n", 131 | "pause_y = [i[1] for i in pauses]\n", 132 | "safepoint_y = [i[1] for i in safepoints]\n", 133 | "runtime_y = [-1 * float(i[1]) for i in adj_runtimes]\n", 134 | "\n", 135 | "fig1, ax = plt.subplots(figsize=(12,8))\n", 136 | "plt.stem(sample_x, pause_y, linefmt='C0-', markerfmt='C0^', basefmt=' ', label='Pause debt')\n", 137 | "plt.stem(sample_x, safepoint_y, linefmt='C7-', markerfmt='C7^', basefmt=' ', label='Safepoint debt')\n", 138 | "plt.stem(sample_x, runtime_y, linefmt='C1-', markerfmt='C1v', basefmt=' ', label='Runtime credit')\n", 139 | "\n", 140 | "if kill_pos:\n", 141 | " plt.axvline(x=kill_pos[0], linestyle='--', color='k', label='jvmquake trigger')\n", 142 | " \n", 143 | "plt.hlines(gc_threshold, sample_x[0], sample_x[-1], label='Pause threshold') \n", 144 | " \n", 145 | "plt.yscale('symlog', linthreshy=2, subsy=[2,3,4,5,6,7,8,9])\n", 146 | "plt.title('Simulated jvmquake debt')\n", 147 | "plt.xlabel('Pause/Runtime Events')\n", 148 | "plt.ylabel('Seconds of Debt')\n", 149 | "plt.ylim(-10, 40)\n", 150 | "plt.minorticks_on()\n", 151 | "\n", 152 | "plt.grid(which='major', linestyle=':', linewidth='0.4', color='black')\n", 153 | "plt.grid(which='minor', linestyle=':', linewidth='0.4', color='black')\n", 154 | "plt.legend(loc='upper right', bbox_to_anchor=(0.4, 0.9),\n", 155 | " facecolor='C6')\n", 156 | "plt.show()" 157 | ] 158 | }, 159 | { 160 | "cell_type": "code", 161 | "execution_count": null, 162 | "metadata": {}, 163 | "outputs": [], 164 | "source": [ 165 | "xmin = min([min(i[0] for i in runtimes), min(i[0] for i in pauses)])\n", 166 | "xmax = max([max(i[0] for i in runtimes), max(i[0] for i in pauses)])\n", 167 | "\n", 168 | "pause_x = [i[0] for i in pauses]\n", 169 | "safepoint_x = [i[0] for i in safepoints]\n", 170 | "runtime_x = [i[0] for i in adj_runtimes]\n", 171 | "\n", 172 | "fig1, ax = plt.subplots(figsize=(12,8))\n", 173 | "plt.stem(pause_x, pause_y, linefmt='C0-', markerfmt='C0^', basefmt=' ', label='Pause debt')\n", 174 | "plt.stem(safepoint_x, safepoint_y, linefmt='C7-', markerfmt='C7^', basefmt=' ', label='Safepoint debt')\n", 175 | "plt.stem(runtime_x, runtime_y, linefmt='C1-', markerfmt='C1v', basefmt=' ', label='Runtime credit')\n", 176 | "\n", 177 | "if kill_times:\n", 178 | " plt.axvline(x=kill_times[0], linestyle='--', color='k', label='jvmquake trigger')\n", 179 | " \n", 180 | "plt.hlines(gc_threshold, xmin, xmax, label='Pause threshold') \n", 181 | " \n", 182 | "plt.yscale('symlog', linthreshy=2, subsy=[2,3,4,5,6,7,8,9])\n", 183 | "plt.title('Simulated jvmquake debt')\n", 184 | "plt.xlabel('Time')\n", 185 | "plt.ylabel('Seconds of Debt')\n", 186 | "plt.ylim(-10, 40)\n", 187 | "plt.minorticks_on()\n", 188 | "\n", 189 | "plt.grid(which='major', linestyle=':', linewidth='0.4', color='black')\n", 190 | "plt.grid(which='minor', linestyle=':', linewidth='0.4', color='black')\n", 191 | "plt.legend(loc='lower right', facecolor='C6')\n", 192 | "plt.show()" 193 | ] 194 | } 195 | ], 196 | "metadata": { 197 | "kernelspec": { 198 | "display_name": "Python 3", 199 | "language": "python", 200 | "name": "python3" 201 | }, 202 | "language_info": { 203 | "codemirror_mode": { 204 | "name": "ipython", 205 | "version": 3 206 | }, 207 | "file_extension": ".py", 208 | "mimetype": "text/x-python", 209 | "name": "python", 210 | "nbconvert_exporter": "python", 211 | "pygments_lexer": "ipython3", 212 | "version": "3.6.7" 213 | } 214 | }, 215 | "nbformat": 4, 216 | "nbformat_minor": 2 217 | } 218 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2019 Netflix, Inc. 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /tests/test_hard_ooms.py: -------------------------------------------------------------------------------- 1 | # Copyright 2019 Netflix, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | import os 16 | import time 17 | 18 | from pathlib import Path 19 | 20 | from environment import agent_path 21 | from environment import assert_files 22 | from environment import JAVA_MAJOR_VERSION 23 | from environment import CHECK_CORES 24 | from environment import class_path 25 | from environment import cleanup 26 | from environment import core_ulimit 27 | from environment import java_cmd 28 | 29 | 30 | def test_jvmquake_cms_slow_death_oom(): 31 | """ 32 | Executes a program which over time does way more GC than actual execution 33 | We use the zero option to indicate to jvmquake to trigger a java level 34 | OOM and cause a heap dump. 35 | """ 36 | if JAVA_MAJOR_VERSION >= 14: 37 | print(f"CMS is not available on {JAVA_MAJOR_VERSION} >= 14") 38 | return 39 | elif JAVA_MAJOR_VERSION > 8: 40 | cms_slow_death = java_cmd[ 41 | '-Xmx100m', 42 | '-XX:+HeapDumpOnOutOfMemoryError', 43 | '-XX:+UseConcMarkSweepGC', 44 | '-XX:CMSInitiatingOccupancyFraction=75', 45 | '-XX:+PrintGCDetails', 46 | '-Xlog:gc:gclog', 47 | agent_path + "=1,1,0", 48 | '-cp', class_path, 49 | 'SlowDeathOOM' 50 | ] 51 | else: 52 | cms_slow_death = java_cmd[ 53 | '-Xmx100m', 54 | '-XX:+HeapDumpOnOutOfMemoryError', 55 | '-XX:+UseParNewGC', 56 | '-XX:+UseConcMarkSweepGC', 57 | '-XX:CMSInitiatingOccupancyFraction=75', 58 | '-XX:+PrintGCDetails', 59 | '-XX:+PrintGCDateStamps', 60 | '-XX:+PrintGCApplicationConcurrentTime', 61 | '-XX:+PrintGCApplicationStoppedTime', 62 | '-Xloggc:gclog', 63 | agent_path + "=1,1,0", 64 | '-cp', class_path, 65 | 'SlowDeathOOM' 66 | ] 67 | print("Executing Complex CMS Slow Death OOM") 68 | print("[{0}]".format(cms_slow_death)) 69 | with cms_slow_death.bgrun(retcode=-9, timeout=30) as proc: 70 | pid = proc.pid 71 | 72 | heapdump_path = Path.cwd().joinpath("java_pid{0}.hprof".format(pid)) 73 | gclog_path = Path.cwd().joinpath('gclog') 74 | 75 | files = (heapdump_path, gclog_path) 76 | try: 77 | assert_files(*files) 78 | finally: 79 | cleanup(*files) 80 | 81 | 82 | def test_jvmquake_g1_slow_death_oom(): 83 | """ 84 | Executes a program which over time does way more GC than actual execution 85 | We use the zero option to indicate to jvmquake to trigger a java level 86 | OOM and cause a heap dump. 87 | """ 88 | if JAVA_MAJOR_VERSION > 8: 89 | g1_slow_death = java_cmd[ 90 | '-Xmx100m', 91 | '-XX:+HeapDumpOnOutOfMemoryError', 92 | '-XX:+UseG1GC', 93 | '-Xlog:gc*', 94 | '-Xlog:gc:gclog', 95 | agent_path + "=1,1,0", 96 | '-cp', class_path, 97 | 'SlowDeathOOM' 98 | ] 99 | else: 100 | g1_slow_death = java_cmd[ 101 | '-Xmx100m', 102 | '-XX:+HeapDumpOnOutOfMemoryError', 103 | '-XX:+UseG1GC', 104 | '-XX:+PrintGCDetails', 105 | '-XX:+PrintGCDateStamps', 106 | '-XX:+PrintGCApplicationConcurrentTime', 107 | '-XX:+PrintGCApplicationStoppedTime', 108 | '-Xloggc:gclog', 109 | agent_path + "=1,1,0", 110 | '-cp', class_path, 111 | 'SlowDeathOOM' 112 | ] 113 | print("Executing Complex G1GC Slow Death OOM") 114 | print("[{0}]".format(g1_slow_death)) 115 | with g1_slow_death.bgrun(retcode=-9, timeout=30) as proc: 116 | pid = proc.pid 117 | 118 | heapdump_path = Path.cwd().joinpath("java_pid{0}.hprof".format(pid)) 119 | gclog_path = Path.cwd().joinpath('gclog') 120 | 121 | files = (heapdump_path, gclog_path) 122 | try: 123 | assert_files(*files) 124 | finally: 125 | cleanup(*files) 126 | 127 | 128 | def test_jvmquake_zgc_slow_death_oom(): 129 | """ 130 | Executes a program which over time does way more GC than actual execution 131 | We use the zero option to indicate to jvmquake to trigger a java level 132 | OOM and cause a heap dump. 133 | """ 134 | if JAVA_MAJOR_VERSION < 15: 135 | print(f"ZGC is not available on {JAVA_MAJOR_VERSION} < 14") 136 | return 137 | 138 | if JAVA_MAJOR_VERSION >= 21: 139 | zgc_slow_death = java_cmd[ 140 | '-Xmx100m', 141 | '-XX:+HeapDumpOnOutOfMemoryError', 142 | '-XX:+UseZGC', 143 | '-XX:+ZGenerational', 144 | '-Xlog:safepoint', 145 | '-Xlog:gc*', 146 | '-Xlog:::time,level,tags', 147 | '-Xlog:gc:gclog', 148 | agent_path + "=1,1,0", 149 | '-cp', class_path, 150 | 'SlowDeathOOM' 151 | ] 152 | else: 153 | zgc_slow_death = java_cmd[ 154 | '-Xmx100m', 155 | '-XX:+HeapDumpOnOutOfMemoryError', 156 | '-XX:+UseZGC', 157 | '-Xlog:safepoint', 158 | '-Xlog:gc*', 159 | '-Xlog:::time,level,tags', 160 | '-Xlog:gc:gclog', 161 | agent_path + "=1,1,0", 162 | '-cp', class_path, 163 | 'SlowDeathOOM' 164 | ] 165 | print("Executing Complex ZGC Slow Death OOM") 166 | print("[{0}]".format(zgc_slow_death)) 167 | with zgc_slow_death .bgrun(retcode=-9, timeout=30) as proc: 168 | pid = proc.pid 169 | 170 | heapdump_path = Path.cwd().joinpath("java_pid{0}.hprof".format(pid)) 171 | gclog_path = Path.cwd().joinpath('gclog') 172 | 173 | files = (heapdump_path, gclog_path) 174 | try: 175 | assert_files(*files) 176 | finally: 177 | cleanup(*files) 178 | 179 | 180 | 181 | 182 | def test_jvmquake_cms_slow_death_core(core_ulimit): 183 | """ 184 | Executes a program which over time does way more GC than actual execution 185 | """ 186 | if JAVA_MAJOR_VERSION >= 14: 187 | print(f"CMS is not available on {JAVA_MAJOR_VERSION} >= 14") 188 | return 189 | elif JAVA_MAJOR_VERSION > 8: 190 | cms_slow_death = java_cmd[ 191 | '-Xmx100m', 192 | '-XX:+HeapDumpOnOutOfMemoryError', 193 | '-XX:+UseConcMarkSweepGC', 194 | '-XX:CMSInitiatingOccupancyFraction=75', 195 | '-XX:+PrintGCDetails', 196 | '-Xlog:gc:gclog', 197 | agent_path + "=1,1,6", 198 | '-cp', class_path, 199 | 'SlowDeathOOM' 200 | ] 201 | else: 202 | cms_slow_death = java_cmd[ 203 | '-Xmx100m', 204 | '-XX:+HeapDumpOnOutOfMemoryError', 205 | '-XX:+UseParNewGC', 206 | '-XX:+UseConcMarkSweepGC', 207 | '-XX:CMSInitiatingOccupancyFraction=75', 208 | '-XX:+PrintGCDetails', 209 | '-XX:+PrintGCDateStamps', 210 | '-XX:+PrintGCApplicationConcurrentTime', 211 | '-XX:+PrintGCApplicationStoppedTime', 212 | '-Xloggc:gclog', 213 | agent_path + "=1,1,6", 214 | '-cp', class_path, 215 | 'SlowDeathOOM' 216 | ] 217 | print("Executing Complex CMS Slow Death OOM") 218 | print("[{0}]".format(cms_slow_death)) 219 | with cms_slow_death.bgrun(retcode=-6, timeout=30) as proc: 220 | pid = proc.pid 221 | 222 | heapdump_path = Path.cwd().joinpath("java_pid{0}.hprof".format(pid)) 223 | gclog_path = Path.cwd().joinpath('gclog') 224 | core_path = Path.cwd().joinpath('core') 225 | 226 | files = [gclog_path] 227 | # So ... core files are apparently super annoying to reliably generate 228 | # in Docker (or really on any system you don't control the value of 229 | # /proc/sys/kernel/core_pattern ) So we don't check it by default 230 | # set the CHECK_CORES env variable to test this too 231 | if CHECK_CORES: 232 | files.append(core_path) 233 | 234 | try: 235 | assert_files(*files) 236 | assert not heapdump_path.is_file() 237 | finally: 238 | cleanup(*files) 239 | 240 | 241 | def test_jvmquake_cms_touch_warning(): 242 | """ 243 | Executes a program which over time does way more GC than actual execution 244 | Then test that jvmquake correctly touches the correct file 245 | """ 246 | jvmquake_warn_path = Path('/tmp/jvmquake_warn_gc') 247 | files = [jvmquake_warn_path] 248 | cleanup(*files) 249 | 250 | start_time = time.time() 251 | 252 | if JAVA_MAJOR_VERSION >= 14: 253 | print(f"CMS is not available on {JAVA_MAJOR_VERSION} >= 14") 254 | return 255 | elif JAVA_MAJOR_VERSION > 8: 256 | cms_slow_death_warn_only = java_cmd[ 257 | '-Xmx100m', 258 | '-XX:+UseConcMarkSweepGC', 259 | '-XX:CMSInitiatingOccupancyFraction=70', 260 | agent_path + "=3,1,9,warn=1", 261 | '-cp', class_path, 262 | 'SlowDeathOOM' 263 | ] 264 | else: 265 | cms_slow_death_warn_only = java_cmd[ 266 | '-Xmx100m', 267 | '-XX:+UseParNewGC', 268 | '-XX:+UseConcMarkSweepGC', 269 | '-XX:CMSInitiatingOccupancyFraction=70', 270 | agent_path + "=3,1,9,warn=1", 271 | '-cp', class_path, 272 | 'SlowDeathOOM' 273 | ] 274 | 275 | print("Executing Complex CMS Slow Death OOM") 276 | print("[{0}]".format(cms_slow_death_warn_only)) 277 | with cms_slow_death_warn_only.bgrun(retcode=-9, timeout=30) as proc: 278 | pid = proc.pid 279 | 280 | print("Ran pid {}".format(pid)) 281 | try: 282 | assert_files(*files) 283 | mtime = os.path.getmtime(str(jvmquake_warn_path)) 284 | assert mtime > (start_time + 1) 285 | finally: 286 | cleanup(*files) 287 | 288 | 289 | def test_jvmquake_cms_touch_warning_custom_path(): 290 | """ 291 | Executes a program which over time does way more GC than actual execution 292 | Then test that jvmquake correctly touches the correct file 293 | """ 294 | jvmquake_warn_path = Path('/tmp/jvmquake_custom_path') 295 | files = [jvmquake_warn_path] 296 | cleanup(*files) 297 | 298 | start_time = time.time() 299 | 300 | if JAVA_MAJOR_VERSION >= 14: 301 | print(f"CMS is not available on {JAVA_MAJOR_VERSION} >= 14") 302 | return 303 | if JAVA_MAJOR_VERSION > 8: 304 | cms_slow_death_warn_only = java_cmd[ 305 | '-Xmx100m', 306 | '-XX:+UseConcMarkSweepGC', 307 | '-XX:CMSInitiatingOccupancyFraction=70', 308 | agent_path + "=5,1,9,warn=2,touch=" + str(jvmquake_warn_path), 309 | '-cp', class_path, 310 | 'SlowDeathOOM' 311 | ] 312 | else: 313 | cms_slow_death_warn_only = java_cmd[ 314 | '-Xmx100m', 315 | '-XX:+UseParNewGC', 316 | '-XX:+UseConcMarkSweepGC', 317 | '-XX:CMSInitiatingOccupancyFraction=70', 318 | agent_path + "=5,1,9,warn=2,touch=" + str(jvmquake_warn_path), 319 | '-cp', class_path, 320 | 'SlowDeathOOM' 321 | ] 322 | 323 | print("Executing Complex CMS Slow Death OOM") 324 | print("[{0}]".format(cms_slow_death_warn_only)) 325 | with cms_slow_death_warn_only.bgrun(retcode=-9, timeout=30) as proc: 326 | pid = proc.pid 327 | 328 | print("Ran pid {}".format(pid)) 329 | try: 330 | assert_files(*files) 331 | mtime = os.path.getmtime(str(jvmquake_warn_path)) 332 | assert mtime > (start_time + 2) 333 | finally: 334 | cleanup(*files) 335 | -------------------------------------------------------------------------------- /src/jvmquake.c: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Netflix, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | 28 | #include 29 | #include 30 | 31 | #define NANOS 1000000000L 32 | #define KILL 0x01 33 | 34 | static struct timespec last_start, last_end; 35 | static unsigned long val; 36 | static jrawMonitorID lock; 37 | 38 | // Defaults 39 | static unsigned long opt_gc_threshold = 30; // seconds, converted to nanos in the init 40 | // corresponds to a thoughput of 1/(5+1) == 16.666% 41 | static unsigned long opt_runtime_weight = 5; 42 | // trigger an OOM 43 | static unsigned int opt_signal = 0; 44 | // Arbitrary optional keyword arguments in format key=value,key=value,etc... 45 | static const char KWARG_WARN[5] = "warn"; 46 | static const char KWARG_TOUCH[6] = "touch"; 47 | 48 | static unsigned long opt_gc_warning_threshold = ULONG_MAX; 49 | static char opt_gc_warning_path[256] = "/tmp/jvmquake_warn_gc"; 50 | 51 | // Signal variable that the watchdog should trigger an action 52 | static short trigger_killer = 0; 53 | 54 | void 55 | error_check(jvmtiError code, const char *msg) 56 | { 57 | if (code != JVMTI_ERROR_NONE) { 58 | fprintf(stderr, "(jvmquake) ERROR [%d], triggering abort: %s.\n", code, msg); 59 | raise(SIGABRT); 60 | raise(SIGKILL); 61 | } 62 | } 63 | 64 | // On OOM, kill the process. This happens after the HeapDumpOnOutOfMemory 65 | static void JNICALL 66 | resource_exhausted(jvmtiEnv *jvmti_env, JNIEnv *jni_env, jint flags, 67 | const void *reserved, const char *description) { 68 | fprintf(stderr, 69 | "(jvmquake) ResourceExhausted: %s: sending %d then killing current process!\n", 70 | description, opt_signal); 71 | raise(opt_signal); 72 | raise(SIGKILL); 73 | } 74 | 75 | /* Thread that waits for the signal to throw an OOM 76 | * 77 | * We need a thread here because the only way to reliably trigger OutOfMemory 78 | * when we are not actually out of memory (e.g. due to GC behavior) that I 79 | * could find was to make JNI calls that allocate large blobs of memory which 80 | * can only be done from outside of the GC callbacks. 81 | */ 82 | static void JNICALL 83 | killer_thread(jvmtiEnv* jvmti, JNIEnv* jni, void *p) { 84 | jvmtiError err; 85 | 86 | fprintf(stdout, "(jvmquake) OOM killer thread started\n"); 87 | 88 | err = (*jvmti)->RawMonitorEnter(jvmti, lock); 89 | error_check(err, "killer thread could not enter lock"); 90 | err = (*jvmti)->RawMonitorWait(jvmti, lock, 0); 91 | error_check(err, "killer thread could not wait on lock"); 92 | err = (*jvmti)->RawMonitorExit(jvmti, lock); 93 | error_check(err, "killer thread could not exit from waiting on lock"); 94 | 95 | // If we reach this point and trigger_killer is true, then we know that 96 | // we need to throw an OOM exception ... which should always be true 97 | 98 | if ((trigger_killer & KILL) == KILL) { 99 | fprintf(stderr, "(jvmquake) killer thread triggered! Forcing OOM\n"); 100 | // Force the JVM to run out of memory really quickly 101 | for ( ;; ) { 102 | // Allocate 16GB blocks until we run out of memory 103 | (*jni)->NewLongArray(jni, INT_MAX); 104 | } 105 | } 106 | } 107 | 108 | /* Creates a Java thread */ 109 | static jthread 110 | alloc_thread(JNIEnv *env) { 111 | jclass thrClass; 112 | jmethodID cid; 113 | jthread res; 114 | 115 | thrClass = (*env)->FindClass(env, "java/lang/Thread"); 116 | cid = (*env)->GetMethodID(env, thrClass, "", "()V"); 117 | res = (*env)->NewObject(env, thrClass, cid); 118 | return res; 119 | } 120 | 121 | /* Callback for JVMTI_EVENT_VM_INIT 122 | * We setup an agent thread that we can later make JNI calls from 123 | * */ 124 | static void JNICALL 125 | vm_init(jvmtiEnv *jvmti, JNIEnv *env, jthread thread) 126 | { 127 | // We only need to do set up a killer thread when signal==0 (i.e. OOM) 128 | if(opt_signal != 0) 129 | return; 130 | 131 | fprintf(stdout, "(jvmquake) setting up watchdog OOM killer thread\n"); 132 | 133 | jvmtiError err = (*jvmti)->RunAgentThread( 134 | jvmti, alloc_thread(env), &killer_thread, NULL, JVMTI_THREAD_MAX_PRIORITY 135 | ); 136 | error_check(err, "Could not allocate killer thread"); 137 | } 138 | 139 | static void JNICALL 140 | gc_start(jvmtiEnv *jvmti) 141 | { 142 | clock_gettime(CLOCK_MONOTONIC, &last_start); 143 | 144 | unsigned long running_nanos = ( 145 | NANOS * (last_start.tv_sec - last_end.tv_sec) + 146 | (last_start.tv_nsec - last_end.tv_nsec) 147 | ) * opt_runtime_weight; 148 | 149 | // Token bucket algorithm 150 | if (running_nanos > val) { val = 0; } 151 | else { val -= running_nanos; } 152 | } 153 | 154 | static void JNICALL 155 | gc_finished(jvmtiEnv *jvmti) { 156 | jvmtiError err; 157 | 158 | clock_gettime(CLOCK_MONOTONIC, &last_end); 159 | 160 | // Token bucket algorithm 161 | unsigned long gc_nanos = ( 162 | NANOS * (last_end.tv_sec - last_start.tv_sec) + 163 | (last_end.tv_nsec - last_start.tv_nsec) 164 | ); 165 | val += gc_nanos; 166 | 167 | // Trigger kill due to excessive GC 168 | if (val > opt_gc_threshold) { 169 | if (opt_signal != 0) { 170 | fprintf(stderr, "(jvmquake) Excessive GC: sending signal (%d)\n", opt_signal); 171 | raise(opt_signal); 172 | raise(SIGKILL); 173 | } else { 174 | fprintf(stderr, "(jvmquake) Excessive GC: notifying killer thread to trigger OOM\n"); 175 | trigger_killer = KILL; 176 | err = (*jvmti)->RawMonitorEnter(jvmti, lock); 177 | error_check(err, "Failed to notify killer thread"); 178 | err = (*jvmti)->RawMonitorNotify(jvmti, lock); 179 | error_check(err, "Failed to notify killer thread"); 180 | err = (*jvmti)->RawMonitorExit(jvmti, lock); 181 | error_check(err, "Failed to notify killer thread"); 182 | } 183 | } else if (val > opt_gc_warning_threshold) { 184 | fprintf(stderr, 185 | "(jvmquake) Above GC warning threshold [%lds]: touching (%s)\n", 186 | opt_gc_warning_threshold / NANOS, opt_gc_warning_path); 187 | int fd = open(opt_gc_warning_path, O_CREAT | O_WRONLY, 0666); 188 | if (fd >= 0) { 189 | futimes(fd, NULL); 190 | close(fd); 191 | } else { 192 | fprintf(stderr, "(jvmquake) ERROR: Could not touch (%s), error (%d)\n", 193 | opt_gc_warning_path, errno); 194 | } 195 | } 196 | } 197 | 198 | static void 199 | parse_kwargs(char *kwargs) { 200 | if (strlen(kwargs) == 0) { return; } 201 | const char comma[2] = ","; 202 | 203 | char * savestate; 204 | char * key; 205 | char * value; 206 | char * equal_pos; 207 | 208 | key = strtok_r(kwargs, comma, &savestate); 209 | 210 | while (key != NULL) { 211 | equal_pos = strchr(key, '='); 212 | if (equal_pos != NULL) { 213 | // Now we have ... two valid strings 214 | *equal_pos = '\0'; 215 | value = equal_pos + 1; 216 | if (!strncmp(key, KWARG_WARN, strlen(KWARG_WARN))) { 217 | opt_gc_warning_threshold = atol(value) * NANOS; 218 | } else if (!strncmp(key, KWARG_TOUCH, strlen(KWARG_TOUCH))) { 219 | strncpy(opt_gc_warning_path, value, 255); 220 | } 221 | } else { 222 | fprintf(stderr, 223 | "(jvmquake): WARN: no equals in key=value pair [%s]\n", 224 | key); 225 | } 226 | key = strtok_r(NULL, comma, &savestate); 227 | } 228 | 229 | if (opt_gc_warning_threshold < ULONG_MAX) { 230 | fprintf(stderr, 231 | "(jvmquake) using keyword options: warn_threshold=[%lds],touch_path=[%s]\n", 232 | opt_gc_warning_threshold / NANOS, opt_gc_warning_path); 233 | } 234 | } 235 | 236 | JNIEXPORT jint JNICALL 237 | Agent_OnLoad(JavaVM *vm, char *options, void *reserved) 238 | { 239 | jvmtiEnv *jvmti; 240 | jvmtiError err; 241 | char *opt_kwargs; 242 | opt_kwargs = malloc(sizeof(*opt_kwargs) * 2048); 243 | 244 | int num_options = 0; 245 | if (options) { 246 | num_options = sscanf( 247 | options, "%ld,%ld,%d,%2047s", 248 | &opt_gc_threshold, &opt_runtime_weight, &opt_signal, 249 | // Optional settings come in key=value,key=value pairs 250 | opt_kwargs); 251 | } 252 | 253 | if (opt_signal == 0) { 254 | fprintf(stderr, 255 | "(jvmquake) using options: threshold=[%lds],runtime_weight=[%ld:1],action=[JVM OOM]\n", 256 | opt_gc_threshold, opt_runtime_weight); 257 | } else { 258 | fprintf(stderr, 259 | "(jvmquake) using options: threshold=[%lds],runtime_weight=[%ld:1],action=[signal %d]\n", 260 | opt_gc_threshold, opt_runtime_weight, opt_signal); 261 | } 262 | 263 | // We had kwargs if num_options was 4 264 | if (num_options == 4) { 265 | parse_kwargs(opt_kwargs); 266 | } 267 | free(opt_kwargs); 268 | 269 | opt_gc_threshold *= NANOS; 270 | 271 | // Initialize global state 272 | clock_gettime(CLOCK_MONOTONIC, &last_start); 273 | clock_gettime(CLOCK_MONOTONIC, &last_end); 274 | 275 | jint rc = (*vm)->GetEnv(vm, (void **) &jvmti, JVMTI_VERSION); 276 | if (rc != JNI_OK) { 277 | fprintf(stderr, "ERROR: GetEnv failed: %d\n", rc); 278 | return JNI_ERR; 279 | } 280 | 281 | jvmtiEventCallbacks callbacks; 282 | memset(&callbacks, 0, sizeof(callbacks)); 283 | 284 | callbacks.VMInit = &vm_init; 285 | callbacks.ResourceExhausted = &resource_exhausted; 286 | callbacks.GarbageCollectionStart = &gc_start; 287 | callbacks.GarbageCollectionFinish = &gc_finished; 288 | 289 | err = (*jvmti)->SetEventNotificationMode(jvmti, JVMTI_ENABLE, JVMTI_EVENT_VM_INIT, NULL); 290 | error_check(err, "SetEventNotificationMode VM Init failed"); 291 | 292 | err = (*jvmti)->SetEventCallbacks(jvmti, &callbacks, sizeof(callbacks)); 293 | error_check(err, "SetEventCallbacks failed to register callbacks"); 294 | 295 | err = (*jvmti)->SetEventNotificationMode( 296 | jvmti, JVMTI_ENABLE, JVMTI_EVENT_RESOURCE_EXHAUSTED, NULL); 297 | error_check(err, "SetEventNotificationMode Resource Exhausted failed"); 298 | 299 | // Ask for ability to get GC events, this way we can calculate a 300 | // token bucket of how much time we spend garbage collecting 301 | jvmtiCapabilities capabilities; 302 | (void)memset(&capabilities, 0, sizeof(capabilities)); 303 | capabilities.can_generate_garbage_collection_events = 1; 304 | err = (*jvmti)->AddCapabilities(jvmti, &capabilities); 305 | error_check(err, "Could not add capabilities for GC events"); 306 | 307 | err = (*jvmti)->SetEventNotificationMode( 308 | jvmti, JVMTI_ENABLE, JVMTI_EVENT_GARBAGE_COLLECTION_START, NULL); 309 | error_check(err, "SetEventNotificationMode GC Start failed"); 310 | 311 | err = (*jvmti)->SetEventNotificationMode( 312 | jvmti, JVMTI_ENABLE, JVMTI_EVENT_GARBAGE_COLLECTION_FINISH, NULL); 313 | error_check(err, "SetEventNotificationMode GC End failed"); 314 | 315 | err = (*jvmti)->CreateRawMonitor(jvmti, "lock", &lock); 316 | error_check(err, "Could not create lock for killer thread"); 317 | 318 | return JNI_OK; 319 | } 320 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![CI Build Status](https://github.com/Netflix-Skunkworks/jvmquake/actions/workflows/ci.yml/badge.svg)](https://github.com/Netflix-Skunkworks/jvmquake/actions/workflows/ci.yml) 2 | 3 | # `jvmquake` 4 | A JVMTI agent that attaches to your JVM and automatically signals and kills it 5 | when the program has become unstable. 6 | 7 | The name comes from "jvm earth`quake`" (a play itself on hotspot). 8 | 9 | This project is heavily inspired by [`airlift/jvmkill`](https://github.com/airlift/jvmkill) 10 | written by `David Phillips ` but adds the additional innovation of 11 | a GC instability detection algorithm for when a JVM is unstable but not quite 12 | dead yet (aka "GC spirals of death"). 13 | 14 | **Production Quality** 15 | 16 | This agent has a thorough test suite and error handling, and has been 17 | demonstrated in production to be superior to the built in JVM options. 18 | Netflix currently (2019-11-11) run this software attached to a very large 19 | number of Cassandra and Elasticsearch JVMs. 20 | 21 | A detailed motivation is below. To just start using `jvmquake`, skip to 22 | [Building and Usage](#building-and-usage) for how to build and use this agent. 23 | 24 | # Motivation 25 | Java Applications, especially databases such as Elasticsearch and Cassandra 26 | can easily enter GC spirals of death, either resulting in eventual OOM or 27 | Concurrent Mode Failures (aka "CMF" per CMS parlance although G1 has similar 28 | issues with frequent mixed mode collections). Concurrent mode failures, when 29 | the old gen collector is running frequently expending a lot of CPU resources 30 | but is still able to reclaim enough memory so that the application does not 31 | cause a full OOM, are particularly pernicious as they appear as 10-30s 32 | "partitions" (duration is proportional to heap size) which repeatedly form 33 | and heal ... 34 | 35 | This grey failure mode *wreaks havoc* on distributed systems. In the case of 36 | databases it can lead to degraded performance or even data corruption. General 37 | jvm applications that use distributed locks to enter a critical section may 38 | make incorrect decisions under the assumption they have a lock when they in 39 | fact do not (e.g. if the application pauses for 40s and then continues 40 | executing assuming it still held a lock in Zookeeper). 41 | 42 | As pathological heap situations are so problematic, the JVM has various flags 43 | to try to address these issues: 44 | 45 | * `OnOutOfMemoryError`: Commonly used with `kill -9 %p`. This options sometimes 46 | works but most often results in no action, especially when the JVM is out of 47 | file descriptors and can't execute the command at all. As of Java 8u92 there 48 | is a better option in the `ExitOnOutOfMemoryError` option below. This option 49 | furthermore does not handle excessive GC. 50 | * `ExitOnOutOfMemoryError` and `CrashOnOutOfMemoryError`: Both options were 51 | added as part of [JDK-8138745](https://bugs.openjdk.java.net/browse/JDK-8138745) 52 | Both work great for dealing with running out memory, but do not handle other 53 | edge cases such as [running out of threads](https://bugs.openjdk.java.net/browse/JDK-8155004). 54 | Also naturally these do nothing when you are in the "grey" failure mode of CMF. 55 | 56 | There are also some options that are supposed to control GC overhead: 57 | 58 | * `GCHeapFreeLimit`, `GCTimeLimit` and `+UseGCOverheadLimit`. These options 59 | are supposed to cause an OOM in the case where we are not collecting enough 60 | memory, or are spending too much time in GC. However in practice I've never 61 | been able to get these to work well, and `GCOverheadLimit` is afaik only 62 | supported in CMS. 63 | 64 | **TLDR**: In my experience these JVM flags are **hard to tune** and **only 65 | sometimes work** if they work at all, and often are limited to a subset of JVMs 66 | of collectors. 67 | 68 | ## Premise of `jvmquake` 69 | `jvmquake` is designed with the following guiding principles in mind: 70 | 71 | 1. If my JVM becomes totally unusable (OOM, out of threads, etc), I want it to 72 | die. 73 | 2. If my JVM spends excessive time garbage collecting, I want it to die. 74 | 3. I may want to be able to debug why my JVM ran out of memory (e.g. 75 | heap dumps or core dumps). I may want jvmquake to signal me that JVM is in 76 | trouble before it kills it so I can start gathering additional diagnostics. 77 | 4. This should work on any JVM (Java 6, Java 7, Java 8, Java 11, w.e.). 78 | 79 | These principles are in alignment with **Crash Only Software** 80 | ([background](https://www.usenix.org/legacy/events/hotos03/tech/full_papers/candea/candea.pdf)) 81 | which implores us to crash when we encounter bugs instead of limping along. 82 | 83 | ## Knobs and Options 84 | `jvmquake` has three options passed as comma delimited integers 85 | `,,`: 86 | 87 | * `threshold` (default: 30): the maximum GC "deficit" which can be 88 | accumulated before jvmquake takes action, specified in seconds. 89 | * `runtime_weight` (default: 5): the factor by which to multiply 90 | running JVM time, when weighing it against GCing time. "Deficit" is 91 | accumulated as `gc_time - runtime * runtime_weight`, and is compared against 92 | `threshold` to determine whether to take action. (default: 5) 93 | * `action` (default: 0): what action should be taken when `threshold` is 94 | exceeded. If zero, jvmquake attempts to produce an OOM within the JVM 95 | (allowing standard OOM handling such as `HeapDumpOnOutOfMemoryError` to 96 | trigger). If nonzero, jvmquake raises that signal number as an OS-level 97 | signal. **Regardless of the action, the JVM is then forcibly killed via a 98 | `SIGKILL`.** 99 | 100 | In addition, `jvmquake` supports keyword arguments passed as comma separated 101 | `key=value` pairs in a fourth argument, so 102 | `int,int,int,key1=value1,key2=value2`. The currently supported key value pairs 103 | are: 104 | * `warn` (type: int, default: maxint): an amount of GC "deficit" (analogous 105 | to `threshold`) which will cause `jvmquake` to touch a file (see `touch`) 106 | before it kills the JVM. The default setting is not to warn. 107 | * `touch` (type: string, default: `/tmp/jvmquake_warn_gc`): The file path that 108 | jvmquake should open (creating if necessary) and update the access and 109 | modification time on when there is more than `warn` GC "deficit". 110 | 111 | ## Algorithm Details 112 | To achieve our goal, we build on `jvmkill`. In addition to dying when we see a 113 | [`ResourceExhausted`](https://docs.oracle.com/javase/8/docs/platform/jvmti/jvmti.html#ResourceExhausted) 114 | event, `jvmquake` keeps track of every GC entrance and exit that pause the 115 | application using 116 | [`GarbageCollectionStart`](https://docs.oracle.com/javase/8/docs/platform/jvmti/jvmti.html#GarbageCollectionStart) 117 | and 118 | [`GarbageCollectionFinish`](https://docs.oracle.com/javase/8/docs/platform/jvmti/jvmti.html#GarbageCollectionFinish). 119 | `jvmquake` then keeps a *token bucket* algorithm to keep track of how 120 | much time is spent GCing relative to running application code. Note that per 121 | the `JVMTI` spec these only track *stop the world* pausing phases of collections. 122 | . The following pseudocode is essentially all of `jvmquake`: 123 | 124 | ```python3 125 | # The bucket for keeping track of relative running and non running time 126 | token_bucket : int = 0 127 | # The amount of weight to give running seconds over GCing seconds. This defines 128 | # our expected application throughput 129 | runtime_weight : int = 5 130 | # The amount of time that we must exceed the expected throughput by 131 | # before triggering the signal and death actions 132 | gc_threshold : int = 30 133 | 134 | # Time bookkeeping 135 | last_gc_start : int = current_time() 136 | last_gc_end : int = current_time() 137 | 138 | def on_gc_start() 139 | last_gc_start = current_time() 140 | time_running = (last_gc_start - last_gc_end) 141 | token_bucket = max(0, token_bucket - (time_running * runtime_weight)) 142 | 143 | def on_gc_end() 144 | last_gc_end = current_time() 145 | time_gcing = (last_gc_end - last_gc_start) 146 | token_bucket += time_gcing 147 | 148 | if token_bucket > gc_threshold: 149 | take_action() 150 | ``` 151 | 152 | The `warn` and `touch` options just touch a file (specified by `touch`) when 153 | the `token_bucket` exceeds the warning gc threshold instead of the kill 154 | threshold. 155 | 156 | # Building and Usage 157 | As `jvmquake` is a JVMTI C agent (so that it lives outside the heap and cannot 158 | be affected by GC behavior), you must compile it before using it against 159 | your JVM. You can either do this on the machine running the Java project or 160 | more commonly in an external build that generates the `.so` or a package such 161 | as a `.deb`. The generated `.so` depends only your architecture and libc and 162 | should work with any JDK newer than the one you compiled it with on the same 163 | platform (so e.g. `linux-x86_64` will work on all `x86_64` linux systems). 164 | 165 | ```bash 166 | # Compile jvmquake against the JVM the application is using. If you do not 167 | # provide the path, the environment variable JAVA_HOME is used instead 168 | 169 | make JAVA_HOME=/path/to/jvm 170 | ``` 171 | 172 | For example if the Oracle Java 8 JVM is located at `/usr/lib/jvm/java-8-oracle`: 173 | 174 | ```bash 175 | make JAVA_HOME=/usr/lib/jvm/java-8-oracle 176 | ``` 177 | 178 | The agent is now available at `build/libjvmquake-.so`. For example, 179 | on a linux machine you should get `libjvmquake-linux-x86_64.so` and on mac 180 | you might see `libjvmquake-darwin-x86_64.so`. 181 | 182 | *Note*: A `libjvmquake.so` built from source like this is portable to all JVMs 183 | that implement the same [`JVMTI`](https://docs.oracle.com/javase/8/docs/platform/jvmti/jvmti.html) 184 | specification. In practice I find the same `.so` works fine with Java 8, 9, 11 185 | and I imagine it will work until Java changes the spec. 186 | 187 | See [Testing](#Testing) for the full set of platforms that we test against. 188 | 189 | [![Build Status](https://github.com/Netflix-Skunkworks/jvmquake/actions/workflows/ci.yml/badge.svg)](https://github.com/Netflix-Skunkworks/jvmquake/actions/workflows/ci.yml) 190 | 191 | ## How to Use the Agent 192 | Once you have the agent library, run your java program with `agentpath` or `agentlib` 193 | to load it. 194 | 195 | ``` 196 | java -agentpath:/path/to/libjvmquake.so 197 | ``` 198 | 199 | If you have installed the `.so` to `/usr/lib` (for example using a debian 200 | package) you can just do `java -agentpath:libjvmquake.so`. 201 | 202 | The default settings are 30 seconds of GC deficit with a 1:5 gc:running time 203 | weight, and the default action is to trigger an in-JVM OOM. These defaults 204 | are reasonable for a latency critical java application. 205 | 206 | If you want different settings you can pass options per the 207 | [option specification](#knobs-and-options). 208 | 209 | ``` 210 | java -agentpath:/path/to/libjvmquake.so= 211 | ``` 212 | 213 | Some examples: 214 | 215 | If you want to cause a java level `OOM` when the program exceeds 30 seconds of 216 | deficit where running time is equally weighted to gc time: 217 | ``` 218 | java -agentpath:/path/to/libjvmquake.so=30,1,0 219 | ``` 220 | 221 | If you want to trigger an OS **core dump** and then die when the program 222 | exceeds 30 seconds of deficit where running time is 5:1 weighted to gc time: 223 | ``` 224 | java -agentpath:/path/to/libjvmquake.so=30,1,6 225 | ``` 226 | 227 | If you want to trigger a `SIGKILL` immediately without any form of diagnostics: 228 | ``` 229 | java -agentpath:/path/to/libjvmquake.so=30,1,9 230 | ``` 231 | 232 | If you want to trigger a `SIGTERM` without any form of diagnostics: 233 | ``` 234 | java -agentpath:/path/to/libjvmquake.so=30,1,15 235 | ``` 236 | 237 | If you want to cause a java level `OOM` when the program exceeds 60 seconds of 238 | deficit where running time is 10:1 weighted to gc time: 239 | ``` 240 | java -agentpath:/path/to/libjvmquake.so=60,10,0 241 | ``` 242 | 243 | If you want to trigger a `SIGKILL` immediately after a 30s GC deficit accrues 244 | and touch `/tmp/jvmquake` after _any_ 1s GC pause or more (presumably to inform 245 | a watching process to fire off some kind of profiler or other diagnostics): 246 | 247 | ``` 248 | java -agentpath:/path/to/libjvmquake.so=30,1,9,warn=1,touch=/tmp/jvmquake 249 | ``` 250 | 251 | # Testing 252 | `jvmquake` comes with a test suite of OOM conditions (running out of memory, 253 | threads, gcing too much, etc) which you can run if you have a `jdk`, `tox` and 254 | `python3` available: 255 | 256 | ```bash 257 | # Run the test suite which uses tox, pytest, and plumbum under the hood 258 | # to run jvmquake through numerous difficult failure modes 259 | JAVA_MAJOR_VERSION=8 JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ make test 260 | ``` 261 | 262 | If you have docker you can also run specific environment tests that bundle all 263 | dependencies for a platform into a single dockerized build: 264 | 265 | ```bash 266 | # Run the Ubuntu bionic openjdk8 test suite via Docker 267 | make test_bionic_openjdk8 268 | ``` 269 | 270 | There is also a test suite in `tests/test_java_opts.py` which shows that 271 | the standard JVM options do not work to remediate the situations `jvmquake` 272 | handles. 273 | 274 | ## Automated Tests 275 | 276 | [![Test Suite Status](https://github.com/Netflix-Skunkworks/jvmquake/actions/workflows/ci.yml/badge.svg)](https://github.com/Netflix-Skunkworks/jvmquake/actions/workflows/ci.yml) 277 | 278 | Note that the compiled `libjvmquake.so` does not link against JVM libraries, 279 | so it _should be portable_ to any instance running on the same architecture: 280 | ``` 281 | $ ldd build/libjvmquake-linux-x86_64.so 282 | linux-vdso.so.1 (0x...) 283 | libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x...) 284 | /lib64/ld-linux-x86-64.so.2 (0x...) 285 | ``` 286 | 287 | We currently [test](.github/workflows/ci.yml) every commit and the released 288 | `.so` generated with Java 8 against the following platforms and distributions: 289 | 290 | ### Ubuntu Jammy(22.04) 291 | Verified for Java 8, 11, 17, 21 against openjdk (temurin), zulu and corretto 292 | 293 | ### Ubuntu Bionic (20.04) 294 | Verified for Java 8, 11, 17, 21 against openjdk (temurin), zulu and corretto 295 | 296 | ### Centos7 297 | Verified for Java 8 against openjdk 298 | 299 | ### Other Architectures 300 | 301 | We do not test against ARM or Windows. `jvmquake` probably still works fine 302 | if compiled on the same platform, but it is not tested. 303 | -------------------------------------------------------------------------------- /notebooks/gclog_jvmquake: -------------------------------------------------------------------------------- 1 | 2019-03-05T02:21:43.095+0000: 2891.587: Application time: 3.2823257 seconds 2 | 2019-03-05T02:21:43.096+0000: 2891.588: [GC (Allocation Failure) 2019-03-05T02:21:43.096+0000: 2891.588: [ParNew 3 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 4 | - age 1: 17802984 bytes, 17802984 total 5 | : 1695919K->18298K(1887488K), 0.0302443 secs] 4045240K->2379820K(12373248K), 0.0305087 secs] [Times: user=0.23 sys=0.00, real=0.03 secs] 6 | 2019-03-05T02:21:43.127+0000: 2891.619: Total time for which application threads were stopped: 0.0317010 seconds, Stopping threads took: 0.0002936 seconds 7 | 2019-03-05T02:21:46.127+0000: 2894.619: Application time: 3.0004557 seconds 8 | 2019-03-05T02:21:46.128+0000: 2894.620: Total time for which application threads were stopped: 0.0009025 seconds, Stopping threads took: 0.0002542 seconds 9 | 2019-03-05T02:21:47.503+0000: 2895.995: Application time: 1.3745986 seconds 10 | 2019-03-05T02:21:47.504+0000: 2895.995: [GC (Allocation Failure) 2019-03-05T02:21:47.504+0000: 2895.995: [ParNew 11 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 12 | - age 1: 22655464 bytes, 22655464 total 13 | : 1696122K->23686K(1887488K), 0.0393360 secs] 4057644K->2395858K(12373248K), 0.0396359 secs] [Times: user=0.29 sys=0.00, real=0.04 secs] 14 | 2019-03-05T02:21:47.544+0000: 2896.035: Total time for which application threads were stopped: 0.0407415 seconds, Stopping threads took: 0.0002153 seconds 15 | 2019-03-05T02:21:49.544+0000: 2898.036: Application time: 2.0003237 seconds 16 | 2019-03-05T02:21:49.545+0000: 2898.037: Total time for which application threads were stopped: 0.0009918 seconds, Stopping threads took: 0.0002723 seconds 17 | 2019-03-05T02:21:50.982+0000: 2899.474: Application time: 1.4374099 seconds 18 | 2019-03-05T02:21:50.984+0000: 2899.475: [GC (Allocation Failure) 2019-03-05T02:21:50.984+0000: 2899.475: [ParNew 19 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 20 | - age 1: 21826184 bytes, 21826184 total 21 | : 1701510K->22733K(1887488K), 0.0308706 secs] 4073682K->2408211K(12373248K), 0.0311443 secs] [Times: user=0.24 sys=0.00, real=0.03 secs] 22 | 2019-03-05T02:21:51.015+0000: 2899.506: Total time for which application threads were stopped: 0.0324504 seconds, Stopping threads took: 0.0003366 seconds 23 | 2019-03-05T02:21:52.015+0000: 2900.507: Application time: 1.0001842 seconds 24 | 2019-03-05T02:21:52.016+0000: 2900.508: Total time for which application threads were stopped: 0.0010433 seconds, Stopping threads took: 0.0003279 seconds 25 | 2019-03-05T02:21:54.016+0000: 2902.508: Application time: 2.0003859 seconds 26 | 2019-03-05T02:21:54.017+0000: 2902.509: Total time for which application threads were stopped: 0.0009646 seconds, Stopping threads took: 0.0002997 seconds 27 | 2019-03-05T02:21:55.410+0000: 2903.902: Application time: 1.3926353 seconds 28 | 2019-03-05T02:21:55.411+0000: 2903.903: [GC (Allocation Failure) 2019-03-05T02:21:55.411+0000: 2903.903: [ParNew 29 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 30 | - age 1: 18898920 bytes, 18898920 total 31 | : 1700557K->20203K(1887488K), 0.0302554 secs] 4086035K->2416939K(12373248K), 0.0305263 secs] [Times: user=0.23 sys=0.00, real=0.03 secs] 32 | 2019-03-05T02:21:55.442+0000: 2903.933: Total time for which application threads were stopped: 0.0316980 seconds, Stopping threads took: 0.0002628 seconds 33 | 2019-03-05T02:22:00.002+0000: 2908.494: Application time: 4.5606130 seconds 34 | 2019-03-05T02:22:00.004+0000: 2908.495: [GC (Allocation Failure) 2019-03-05T02:22:00.004+0000: 2908.495: [ParNew 35 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 36 | - age 1: 21940744 bytes, 21940744 total 37 | : 1698027K->22574K(1887488K), 0.0331674 secs] 4094763K->2431901K(12373248K), 0.0334232 secs] [Times: user=0.25 sys=0.00, real=0.03 secs] 38 | 2019-03-05T02:22:00.037+0000: 2908.529: Total time for which application threads were stopped: 0.0350477 seconds, Stopping threads took: 0.0007099 seconds 39 | 2019-03-05T02:22:02.038+0000: 2910.529: Application time: 2.0002714 seconds 40 | 2019-03-05T02:22:02.039+0000: 2910.530: Total time for which application threads were stopped: 0.0011509 seconds, Stopping threads took: 0.0002706 seconds 41 | 2019-03-05T02:22:03.428+0000: 2911.919: Application time: 1.3885932 seconds 42 | 2019-03-05T02:22:03.429+0000: 2911.920: [GC (Allocation Failure) 2019-03-05T02:22:03.429+0000: 2911.920: [ParNew 43 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 44 | - age 1: 15840032 bytes, 15840032 total 45 | : 1700398K->16950K(1887488K), 0.0316066 secs] 4109725K->2439513K(12373248K), 0.0318806 secs] [Times: user=0.24 sys=0.00, real=0.04 secs] 46 | 2019-03-05T02:22:03.461+0000: 2911.952: Total time for which application threads were stopped: 0.0331022 seconds, Stopping threads took: 0.0002743 seconds 47 | 2019-03-05T02:22:04.461+0000: 2912.952: Application time: 1.0001962 seconds 48 | 2019-03-05T02:22:04.462+0000: 2912.953: Total time for which application threads were stopped: 0.0008247 seconds, Stopping threads took: 0.0001735 seconds 49 | 2019-03-05T02:22:07.750+0000: 2916.241: Application time: 3.2882895 seconds 50 | 2019-03-05T02:22:07.751+0000: 2916.242: [GC (Allocation Failure) 2019-03-05T02:22:07.751+0000: 2916.243: [ParNew 51 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 52 | - age 1: 14308536 bytes, 14308536 total 53 | : 1694774K->15597K(1887488K), 0.0334774 secs] 4117337K->2449864K(12373248K), 0.0337458 secs] [Times: user=0.25 sys=0.00, real=0.03 secs] 54 | 2019-03-05T02:22:07.785+0000: 2916.276: Total time for which application threads were stopped: 0.0349057 seconds, Stopping threads took: 0.0002562 seconds 55 | 2019-03-05T02:22:08.574+0000: 2917.066: Application time: 0.7891434 seconds 56 | 2019-03-05T02:22:08.611+0000: 2917.102: Total time for which application threads were stopped: 0.0367240 seconds, Stopping threads took: 0.0003127 seconds 57 | 2019-03-05T02:22:08.611+0000: 2917.102: Application time: 0.0000887 seconds 58 | 2019-03-05T02:22:08.612+0000: 2917.103: Total time for which application threads were stopped: 0.0006973 seconds, Stopping threads took: 0.0002157 seconds 59 | 2019-03-05T02:22:08.612+0000: 2917.103: Application time: 0.0000725 seconds 60 | 2019-03-05T02:22:08.612+0000: 2917.104: Total time for which application threads were stopped: 0.0005677 seconds, Stopping threads took: 0.0001696 seconds 61 | 2019-03-05T02:22:10.612+0000: 2919.104: Application time: 2.0003333 seconds 62 | 2019-03-05T02:22:10.613+0000: 2919.105: Total time for which application threads were stopped: 0.0008811 seconds, Stopping threads took: 0.0002252 seconds 63 | 2019-03-05T02:22:11.185+0000: 2919.676: Application time: 0.5715391 seconds 64 | 2019-03-05T02:22:11.221+0000: 2919.713: Total time for which application threads were stopped: 0.0364815 seconds, Stopping threads took: 0.0011420 seconds 65 | 2019-03-05T02:22:11.222+0000: 2919.713: Application time: 0.0000954 seconds 66 | 2019-03-05T02:22:11.222+0000: 2919.714: Total time for which application threads were stopped: 0.0007028 seconds, Stopping threads took: 0.0001680 seconds 67 | 2019-03-05T02:22:11.222+0000: 2919.714: Application time: 0.0000814 seconds 68 | 2019-03-05T02:22:11.223+0000: 2919.714: Total time for which application threads were stopped: 0.0005226 seconds, Stopping threads took: 0.0000931 seconds 69 | 2019-03-05T02:22:11.372+0000: 2919.864: Application time: 0.1494312 seconds 70 | 2019-03-05T02:22:11.373+0000: 2919.865: [GC (Allocation Failure) 2019-03-05T02:22:11.373+0000: 2919.865: [ParNew 71 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 72 | - age 1: 18952432 bytes, 18952432 total 73 | : 1693421K->19784K(1887488K), 0.0311898 secs] 4127688K->2466126K(12373248K), 0.0314507 secs] [Times: user=0.23 sys=0.00, real=0.03 secs] 74 | 2019-03-05T02:22:11.405+0000: 2919.896: Total time for which application threads were stopped: 0.0326911 seconds, Stopping threads took: 0.0003497 seconds 75 | 2019-03-05T02:22:15.895+0000: 2924.387: Application time: 4.4900753 seconds 76 | 2019-03-05T02:22:15.896+0000: 2924.388: [GC (Allocation Failure) 2019-03-05T02:22:15.896+0000: 2924.388: [ParNew 77 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 78 | - age 1: 21796464 bytes, 21796464 total 79 | : 1697608K->23302K(1887488K), 0.0321529 secs] 4143950K->2482302K(12373248K), 0.0324222 secs] [Times: user=0.24 sys=0.00, real=0.03 secs] 80 | 2019-03-05T02:22:15.929+0000: 2924.420: Total time for which application threads were stopped: 0.0336514 seconds, Stopping threads took: 0.0003162 seconds 81 | 2019-03-05T02:22:16.929+0000: 2925.420: Application time: 1.0002269 seconds 82 | 2019-03-05T02:22:16.930+0000: 2925.421: Total time for which application threads were stopped: 0.0010064 seconds, Stopping threads took: 0.0003563 seconds 83 | 2019-03-05T02:22:17.930+0000: 2926.422: Application time: 1.0001907 seconds 84 | 2019-03-05T02:22:17.931+0000: 2926.423: Total time for which application threads were stopped: 0.0009446 seconds, Stopping threads took: 0.0003173 seconds 85 | 2019-03-05T02:22:18.931+0000: 2927.423: Application time: 1.0001839 seconds 86 | 2019-03-05T02:22:18.932+0000: 2927.424: Total time for which application threads were stopped: 0.0008899 seconds, Stopping threads took: 0.0002438 seconds 87 | 2019-03-05T02:22:20.405+0000: 2928.897: Application time: 1.4730951 seconds 88 | 2019-03-05T02:22:20.406+0000: 2928.898: [GC (Allocation Failure) 2019-03-05T02:22:20.406+0000: 2928.898: [ParNew 89 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 90 | - age 1: 21811304 bytes, 21811304 total 91 | : 1701126K->22102K(1887488K), 0.0301315 secs] 4160126K->2494352K(12373248K), 0.0303918 secs] [Times: user=0.24 sys=0.00, real=0.03 secs] 92 | 2019-03-05T02:22:20.437+0000: 2928.928: Total time for which application threads were stopped: 0.0315918 seconds, Stopping threads took: 0.0002901 seconds 93 | 2019-03-05T02:22:21.011+0000: 2929.503: Application time: 0.5741495 seconds 94 | 2019-03-05T02:22:21.545+0000: 2930.037: Total time for which application threads were stopped: 0.5341861 seconds, Stopping threads took: 0.0002953 seconds 95 | 2019-03-05T02:22:22.545+0000: 2931.037: Application time: 1.0002607 seconds 96 | 2019-03-05T02:22:22.546+0000: 2931.038: Total time for which application threads were stopped: 0.0010643 seconds, Stopping threads took: 0.0003126 seconds 97 | 2019-03-05T02:22:23.547+0000: 2932.038: Application time: 1.0002003 seconds 98 | 2019-03-05T02:22:23.548+0000: 2932.039: Total time for which application threads were stopped: 0.0009682 seconds, Stopping threads took: 0.0002676 seconds 99 | 2019-03-05T02:22:24.179+0000: 2932.670: Application time: 0.6310070 seconds 100 | 2019-03-05T02:22:24.180+0000: 2932.671: [GC (Allocation Failure) 2019-03-05T02:22:24.180+0000: 2932.671: [ParNew 101 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 102 | - age 1: 23652688 bytes, 23652688 total 103 | : 1699926K->24022K(1887488K), 0.0312710 secs] 4172176K->2508393K(12373248K), 0.0315631 secs] [Times: user=0.24 sys=0.00, real=0.03 secs] 104 | 2019-03-05T02:22:24.212+0000: 2932.703: Total time for which application threads were stopped: 0.0328673 seconds, Stopping threads took: 0.0003110 seconds 105 | 2019-03-05T02:22:25.212+0000: 2933.703: Application time: 1.0002478 seconds 106 | 2019-03-05T02:22:25.213+0000: 2933.704: Total time for which application threads were stopped: 0.0010402 seconds, Stopping threads took: 0.0003630 seconds 107 | 2019-03-05T02:22:28.213+0000: 2936.705: Application time: 3.0004099 seconds 108 | 2019-03-05T02:22:28.214+0000: 2936.706: Total time for which application threads were stopped: 0.0009755 seconds, Stopping threads took: 0.0003216 seconds 109 | 2019-03-05T02:22:28.776+0000: 2937.268: Application time: 0.5619152 seconds 110 | 2019-03-05T02:22:28.777+0000: 2937.269: [GC (Allocation Failure) 2019-03-05T02:22:28.777+0000: 2937.269: [ParNew 111 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 112 | - age 1: 18797232 bytes, 18797232 total 113 | : 1701846K->19971K(1887488K), 0.0342652 secs] 4186217K->2517411K(12373248K), 0.0345429 secs] [Times: user=0.24 sys=0.00, real=0.04 secs] 114 | 2019-03-05T02:22:28.812+0000: 2937.303: Total time for which application threads were stopped: 0.0357435 seconds, Stopping threads took: 0.0002971 seconds 115 | 2019-03-05T02:22:32.128+0000: 2940.619: Application time: 3.3156518 seconds 116 | 2019-03-05T02:22:32.128+0000: 2940.620: Total time for which application threads were stopped: 0.0008840 seconds, Stopping threads took: 0.0002129 seconds 117 | 2019-03-05T02:22:32.129+0000: 2940.620: Application time: 0.0001909 seconds 118 | 2019-03-05T02:22:32.129+0000: 2940.621: [GC (GCLocker Initiated GC) 2019-03-05T02:22:32.129+0000: 2940.621: [ParNew 119 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 120 | - age 1: 17770880 bytes, 17770880 total 121 | : 1697800K->19420K(1887488K), 0.0334171 secs] 4195239K->2529235K(12373248K), 0.0336873 secs] [Times: user=0.25 sys=0.00, real=0.04 secs] 122 | 2019-03-05T02:22:32.163+0000: 2940.655: Total time for which application threads were stopped: 0.0343966 seconds, Stopping threads took: 0.0000761 seconds 123 | 2019-03-05T02:22:35.163+0000: 2943.655: Application time: 3.0003435 seconds 124 | 2019-03-05T02:22:35.164+0000: 2943.656: Total time for which application threads were stopped: 0.0008297 seconds, Stopping threads took: 0.0001931 seconds 125 | 2019-03-05T02:22:35.658+0000: 2944.149: Application time: 0.4933477 seconds 126 | 2019-03-05T02:22:35.658+0000: 2944.150: Total time for which application threads were stopped: 0.0009284 seconds, Stopping threads took: 0.0002884 seconds 127 | 2019-03-05T02:22:35.659+0000: 2944.150: Application time: 0.0001464 seconds 128 | 2019-03-05T02:22:35.659+0000: 2944.151: [GC (GCLocker Initiated GC) 2019-03-05T02:22:35.659+0000: 2944.151: [ParNew 129 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 130 | - age 1: 18397328 bytes, 18397328 total 131 | : 1697249K->19883K(1887488K), 0.0300776 secs] 4207064K->2539336K(12373248K), 0.0303622 secs] [Times: user=0.22 sys=0.00, real=0.02 secs] 132 | 2019-03-05T02:22:35.690+0000: 2944.181: Total time for which application threads were stopped: 0.0311753 seconds, Stopping threads took: 0.0000889 seconds 133 | 2019-03-05T02:22:40.094+0000: 2948.585: Application time: 4.4039346 seconds 134 | 2019-03-05T02:22:40.095+0000: 2948.586: [GC (Allocation Failure) 2019-03-05T02:22:40.095+0000: 2948.586: [ParNew 135 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 136 | - age 1: 20620904 bytes, 20620904 total 137 | : 1697707K->22165K(1887488K), 0.0324300 secs] 4217160K->2553629K(12373248K), 0.0327256 secs] [Times: user=0.25 sys=0.00, real=0.03 secs] 138 | 2019-03-05T02:22:40.128+0000: 2948.619: Total time for which application threads were stopped: 0.0339490 seconds, Stopping threads took: 0.0002283 seconds 139 | 2019-03-05T02:22:41.128+0000: 2949.619: Application time: 1.0002032 seconds 140 | 2019-03-05T02:22:41.129+0000: 2949.620: Total time for which application threads were stopped: 0.0009180 seconds, Stopping threads took: 0.0002648 seconds 141 | 2019-03-05T02:22:42.129+0000: 2950.621: Application time: 1.0001949 seconds 142 | 2019-03-05T02:22:42.130+0000: 2950.622: Total time for which application threads were stopped: 0.0009356 seconds, Stopping threads took: 0.0002679 seconds 143 | 2019-03-05T02:22:43.478+0000: 2951.969: Application time: 1.3476411 seconds 144 | 2019-03-05T02:22:43.479+0000: 2951.970: [GC (Allocation Failure) 2019-03-05T02:22:43.479+0000: 2951.970: [ParNew 145 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 146 | - age 1: 20092376 bytes, 20092376 total 147 | : 1699989K->20327K(1887488K), 0.0305762 secs] 4231453K->2565061K(12373248K), 0.0308415 secs] [Times: user=0.24 sys=0.00, real=0.02 secs] 148 | 2019-03-05T02:22:43.510+0000: 2952.001: Total time for which application threads were stopped: 0.0320591 seconds, Stopping threads took: 0.0003269 seconds 149 | 2019-03-05T02:22:44.510+0000: 2953.001: Application time: 1.0001818 seconds 150 | 2019-03-05T02:22:44.511+0000: 2953.002: Total time for which application threads were stopped: 0.0009041 seconds, Stopping threads took: 0.0002408 seconds 151 | 2019-03-05T02:22:46.511+0000: 2955.003: Application time: 2.0003389 seconds 152 | 2019-03-05T02:22:46.512+0000: 2955.004: Total time for which application threads were stopped: 0.0009930 seconds, Stopping threads took: 0.0002782 seconds 153 | 2019-03-05T02:22:47.839+0000: 2956.330: Application time: 1.3265735 seconds 154 | 2019-03-05T02:22:47.840+0000: 2956.331: [GC (Allocation Failure) 2019-03-05T02:22:47.840+0000: 2956.331: [ParNew 155 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 156 | - age 1: 14491656 bytes, 14491656 total 157 | : 1698151K->15667K(1887488K), 0.0450042 secs] 4242885K->2571929K(12373248K), 0.0452714 secs] [Times: user=0.29 sys=0.00, real=0.04 secs] 158 | 2019-03-05T02:22:47.885+0000: 2956.377: Total time for which application threads were stopped: 0.0464142 seconds, Stopping threads took: 0.0002373 seconds 159 | 2019-03-05T02:22:51.979+0000: 2960.470: Application time: 4.0936492 seconds 160 | 2019-03-05T02:22:51.980+0000: 2960.471: [GC (Allocation Failure) 2019-03-05T02:22:51.980+0000: 2960.471: [ParNew 161 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 162 | - age 1: 19904824 bytes, 19904824 total 163 | : 1693491K->20479K(1887488K), 0.0303078 secs] 4249753K->2588856K(12373248K), 0.0305976 secs] [Times: user=0.22 sys=0.00, real=0.03 secs] 164 | 2019-03-05T02:22:52.011+0000: 2960.502: Total time for which application threads were stopped: 0.0318699 seconds, Stopping threads took: 0.0003184 seconds 165 | 2019-03-05T02:22:53.011+0000: 2961.502: Application time: 1.0001772 seconds 166 | 2019-03-05T02:22:53.012+0000: 2961.503: Total time for which application threads were stopped: 0.0009607 seconds, Stopping threads took: 0.0002437 seconds 167 | 2019-03-05T02:22:55.541+0000: 2964.033: Application time: 2.5295675 seconds 168 | 2019-03-05T02:22:55.542+0000: 2964.034: [GC (Allocation Failure) 2019-03-05T02:22:55.542+0000: 2964.034: [ParNew 169 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 170 | - age 1: 15281960 bytes, 15281960 total 171 | : 1698303K->16281K(1887488K), 0.0343137 secs] 4266680K->2597501K(12373248K), 0.0345922 secs] [Times: user=0.25 sys=0.00, real=0.03 secs] 172 | 2019-03-05T02:22:55.577+0000: 2964.069: Total time for which application threads were stopped: 0.0358136 seconds, Stopping threads took: 0.0002661 seconds 173 | 2019-03-05T02:23:00.180+0000: 2968.671: Application time: 4.6027983 seconds 174 | 2019-03-05T02:23:00.181+0000: 2968.672: [GC (Allocation Failure) 2019-03-05T02:23:00.181+0000: 2968.673: [ParNew 175 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 176 | - age 1: 23733520 bytes, 23733520 total 177 | : 1694105K->24502K(1887488K), 0.0328537 secs] 4275325K->2616787K(12373248K), 0.0331462 secs] [Times: user=0.24 sys=0.00, real=0.03 secs] 178 | 2019-03-05T02:23:00.214+0000: 2968.706: Total time for which application threads were stopped: 0.0343257 seconds, Stopping threads took: 0.0002462 seconds 179 | 2019-03-05T02:23:01.214+0000: 2969.706: Application time: 1.0001950 seconds 180 | 2019-03-05T02:23:01.226+0000: 2969.718: Total time for which application threads were stopped: 0.0117371 seconds, Stopping threads took: 0.0107695 seconds 181 | 2019-03-05T02:23:03.656+0000: 2972.147: Application time: 2.4293739 seconds 182 | 2019-03-05T02:23:03.657+0000: 2972.148: [GC (Allocation Failure) 2019-03-05T02:23:03.657+0000: 2972.148: [ParNew 183 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 184 | - age 1: 14340376 bytes, 14340376 total 185 | : 1702326K->15637K(1887488K), 0.0315843 secs] 4294611K->2622256K(12373248K), 0.0318609 secs] [Times: user=0.24 sys=0.00, real=0.03 secs] 186 | 2019-03-05T02:23:03.689+0000: 2972.180: Total time for which application threads were stopped: 0.0331154 seconds, Stopping threads took: 0.0003531 seconds 187 | 2019-03-05T02:23:05.689+0000: 2974.181: Application time: 2.0003213 seconds 188 | 2019-03-05T02:23:05.690+0000: 2974.182: Total time for which application threads were stopped: 0.0009384 seconds, Stopping threads took: 0.0002413 seconds 189 | 2019-03-05T02:23:07.690+0000: 2976.182: Application time: 2.0003666 seconds 190 | 2019-03-05T02:23:07.691+0000: 2976.183: Total time for which application threads were stopped: 0.0011127 seconds, Stopping threads took: 0.0003536 seconds 191 | 2019-03-05T02:23:08.214+0000: 2976.705: Application time: 0.5223370 seconds 192 | 2019-03-05T02:23:08.215+0000: 2976.706: [GC (Allocation Failure) 2019-03-05T02:23:08.215+0000: 2976.706: [ParNew 193 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 194 | - age 1: 27003816 bytes, 27003816 total 195 | : 1693461K->28120K(1887488K), 0.0303205 secs] 4300080K->2646458K(12373248K), 0.0305860 secs] [Times: user=0.24 sys=0.00, real=0.03 secs] 196 | 2019-03-05T02:23:08.246+0000: 2976.737: Total time for which application threads were stopped: 0.0317516 seconds, Stopping threads took: 0.0002778 seconds 197 | 2019-03-05T02:23:12.276+0000: 2980.768: Application time: 4.0306314 seconds 198 | 2019-03-05T02:23:12.277+0000: 2980.769: [GC (Allocation Failure) 2019-03-05T02:23:12.277+0000: 2980.769: [ParNew 199 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 200 | - age 1: 23158072 bytes, 23158072 total 201 | : 1705944K->24265K(1887488K), 0.0293095 secs] 4324282K->2654869K(12373248K), 0.0295746 secs] [Times: user=0.22 sys=0.00, real=0.03 secs] 202 | 2019-03-05T02:23:12.307+0000: 2980.799: Total time for which application threads were stopped: 0.0308904 seconds, Stopping threads took: 0.0003668 seconds 203 | 2019-03-05T02:23:14.307+0000: 2982.799: Application time: 2.0002961 seconds 204 | 2019-03-05T02:23:14.308+0000: 2982.800: Total time for which application threads were stopped: 0.0008826 seconds, Stopping threads took: 0.0001901 seconds 205 | 2019-03-05T02:23:14.967+0000: 2983.459: Application time: 0.6590998 seconds 206 | 2019-03-05T02:23:14.968+0000: 2983.460: [GC (Allocation Failure) 2019-03-05T02:23:14.968+0000: 2983.460: [ParNew 207 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 208 | - age 1: 16118112 bytes, 16118112 total 209 | : 1702089K->17585K(1887488K), 0.0297945 secs] 4332693K->2660189K(12373248K), 0.0300587 secs] [Times: user=0.22 sys=0.00, real=0.04 secs] 210 | 2019-03-05T02:23:14.999+0000: 2983.490: Total time for which application threads were stopped: 0.0311980 seconds, Stopping threads took: 0.0002436 seconds 211 | 2019-03-05T02:23:19.134+0000: 2987.625: Application time: 4.1353527 seconds 212 | 2019-03-05T02:23:19.135+0000: 2987.626: Total time for which application threads were stopped: 0.0010034 seconds, Stopping threads took: 0.0003198 seconds 213 | 2019-03-05T02:23:19.135+0000: 2987.627: Application time: 0.0001391 seconds 214 | 2019-03-05T02:23:19.136+0000: 2987.627: [GC (GCLocker Initiated GC) 2019-03-05T02:23:19.136+0000: 2987.627: [ParNew 215 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 216 | - age 1: 21817264 bytes, 21817264 total 217 | : 1695413K->23328K(1887488K), 0.0298432 secs] 4338017K->2675468K(12373248K), 0.0301142 secs] [Times: user=0.22 sys=0.00, real=0.03 secs] 218 | 2019-03-05T02:23:19.166+0000: 2987.657: Total time for which application threads were stopped: 0.0308241 seconds, Stopping threads took: 0.0000655 seconds 219 | 2019-03-05T02:23:21.166+0000: 2989.658: Application time: 2.0003526 seconds 220 | 2019-03-05T02:23:21.167+0000: 2989.659: Total time for which application threads were stopped: 0.0009401 seconds, Stopping threads took: 0.0002731 seconds 221 | 2019-03-05T02:23:22.499+0000: 2990.991: Application time: 1.3319698 seconds 222 | 2019-03-05T02:23:22.500+0000: 2990.992: [GC (Allocation Failure) 2019-03-05T02:23:22.500+0000: 2990.992: [ParNew 223 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 224 | - age 1: 13002992 bytes, 13002992 total 225 | : 1701152K->13699K(1887488K), 0.0325021 secs] 4353292K->2678925K(12373248K), 0.0327875 secs] [Times: user=0.24 sys=0.00, real=0.03 secs] 226 | 2019-03-05T02:23:22.533+0000: 2991.025: Total time for which application threads were stopped: 0.0339940 seconds, Stopping threads took: 0.0002865 seconds 227 | 2019-03-05T02:23:26.526+0000: 2995.018: Application time: 3.9930659 seconds 228 | 2019-03-05T02:23:26.527+0000: 2995.019: [GC (Allocation Failure) 2019-03-05T02:23:26.527+0000: 2995.019: [ParNew 229 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 230 | - age 1: 13537280 bytes, 13537280 total 231 | : 1691523K->14609K(1887488K), 0.0309151 secs] 4356749K->2690495K(12373248K), 0.0311900 secs] [Times: user=0.23 sys=0.00, real=0.04 secs] 232 | 2019-03-05T02:23:26.559+0000: 2995.050: Total time for which application threads were stopped: 0.0324243 seconds, Stopping threads took: 0.0002969 seconds 233 | 2019-03-05T02:23:30.858+0000: 2999.350: Application time: 4.2998568 seconds 234 | 2019-03-05T02:23:30.859+0000: 2999.351: [GC (Allocation Failure) 2019-03-05T02:23:30.860+0000: 2999.351: [ParNew 235 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 236 | - age 1: 17576584 bytes, 17576584 total 237 | : 1692433K->18901K(1887488K), 0.0295228 secs] 4368319K->2707026K(12373248K), 0.0297829 secs] [Times: user=0.23 sys=0.00, real=0.02 secs] 238 | 2019-03-05T02:23:30.889+0000: 2999.381: Total time for which application threads were stopped: 0.0309524 seconds, Stopping threads took: 0.0002615 seconds 239 | 2019-03-05T02:23:34.103+0000: 3002.594: Application time: 3.2130791 seconds 240 | 2019-03-05T02:23:34.104+0000: 3002.595: Total time for which application threads were stopped: 0.0009962 seconds, Stopping threads took: 0.0002896 seconds 241 | 2019-03-05T02:23:34.104+0000: 3002.595: Application time: 0.0001208 seconds 242 | 2019-03-05T02:23:34.104+0000: 3002.596: [GC (GCLocker Initiated GC) 2019-03-05T02:23:34.104+0000: 3002.596: [ParNew 243 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 244 | - age 1: 14758712 bytes, 14758712 total 245 | : 1696733K->16136K(1887488K), 0.0290847 secs] 4384859K->2716666K(12373248K), 0.0293644 secs] [Times: user=0.21 sys=0.00, real=0.03 secs] 246 | 2019-03-05T02:23:34.134+0000: 3002.625: Total time for which application threads were stopped: 0.0300877 seconds, Stopping threads took: 0.0000803 seconds 247 | 2019-03-05T02:23:38.435+0000: 3006.927: Application time: 4.3014449 seconds 248 | 2019-03-05T02:23:38.436+0000: 3006.928: [GC (Allocation Failure) 2019-03-05T02:23:38.436+0000: 3006.928: [ParNew 249 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 250 | - age 1: 20511256 bytes, 20511256 total 251 | : 1693960K->22076K(1887488K), 0.0291807 secs] 4394490K->2734146K(12373248K), 0.0294694 secs] [Times: user=0.22 sys=0.00, real=0.03 secs] 252 | 2019-03-05T02:23:38.466+0000: 3006.957: Total time for which application threads were stopped: 0.0305732 seconds, Stopping threads took: 0.0001568 seconds 253 | 2019-03-05T02:23:42.607+0000: 3011.098: Application time: 4.1409122 seconds 254 | 2019-03-05T02:23:42.608+0000: 3011.099: [GC (Allocation Failure) 2019-03-05T02:23:42.608+0000: 3011.099: [ParNew 255 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 256 | - age 1: 22944032 bytes, 22944032 total 257 | : 1699900K->23017K(1887488K), 0.0286512 secs] 4411970K->2747199K(12373248K), 0.0289142 secs] [Times: user=0.22 sys=0.00, real=0.03 secs] 258 | 2019-03-05T02:23:42.637+0000: 3011.128: Total time for which application threads were stopped: 0.0300603 seconds, Stopping threads took: 0.0002222 seconds 259 | 2019-03-05T02:23:43.637+0000: 3012.128: Application time: 1.0001886 seconds 260 | 2019-03-05T02:23:43.638+0000: 3012.129: Total time for which application threads were stopped: 0.0008791 seconds, Stopping threads took: 0.0002310 seconds 261 | 2019-03-05T02:23:46.233+0000: 3014.725: Application time: 2.5955636 seconds 262 | 2019-03-05T02:23:46.234+0000: 3014.726: [GC (Allocation Failure) 2019-03-05T02:23:46.234+0000: 3014.726: [ParNew 263 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 264 | - age 1: 22673448 bytes, 22673448 total 265 | : 1700841K->23531K(1887488K), 0.0303451 secs] 4425023K->2760424K(12373248K), 0.0306334 secs] [Times: user=0.23 sys=0.00, real=0.03 secs] 266 | 2019-03-05T02:23:46.265+0000: 3014.757: Total time for which application threads were stopped: 0.0317704 seconds, Stopping threads took: 0.0001664 seconds 267 | 2019-03-05T02:23:50.534+0000: 3019.025: Application time: 4.2684405 seconds 268 | 2019-03-05T02:23:50.535+0000: 3019.026: [GC (Allocation Failure) 2019-03-05T02:23:50.535+0000: 3019.026: [ParNew 269 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 270 | - age 1: 21851536 bytes, 21851536 total 271 | : 1701355K->23201K(1887488K), 0.0302724 secs] 4438248K->2772337K(12373248K), 0.0305416 secs] [Times: user=0.23 sys=0.00, real=0.03 secs] 272 | 2019-03-05T02:23:50.565+0000: 3019.057: Total time for which application threads were stopped: 0.0318287 seconds, Stopping threads took: 0.0002733 seconds 273 | 2019-03-05T02:23:51.566+0000: 3020.057: Application time: 1.0001856 seconds 274 | 2019-03-05T02:23:51.567+0000: 3020.058: Total time for which application threads were stopped: 0.0009088 seconds, Stopping threads took: 0.0002134 seconds 275 | 2019-03-05T02:23:53.567+0000: 3022.058: Application time: 2.0003374 seconds 276 | 2019-03-05T02:23:53.568+0000: 3022.059: Total time for which application threads were stopped: 0.0009887 seconds, Stopping threads took: 0.0003062 seconds 277 | 2019-03-05T02:23:53.782+0000: 3022.273: Application time: 0.2138797 seconds 278 | 2019-03-05T02:23:53.783+0000: 3022.274: [GC (Allocation Failure) 2019-03-05T02:23:53.783+0000: 3022.274: [ParNew 279 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 280 | - age 1: 16941472 bytes, 16941472 total 281 | : 1701025K->17401K(1887488K), 0.0289336 secs] 4450161K->2778636K(12373248K), 0.0291910 secs] [Times: user=0.22 sys=0.00, real=0.03 secs] 282 | 2019-03-05T02:23:53.812+0000: 3022.304: Total time for which application threads were stopped: 0.0303814 seconds, Stopping threads took: 0.0002700 seconds 283 | 2019-03-05T02:23:58.116+0000: 3026.608: Application time: 4.3040691 seconds 284 | 2019-03-05T02:23:58.117+0000: 3026.609: Total time for which application threads were stopped: 0.0008886 seconds, Stopping threads took: 0.0002012 seconds 285 | 2019-03-05T02:23:58.117+0000: 3026.609: Application time: 0.0001200 seconds 286 | 2019-03-05T02:23:58.118+0000: 3026.609: [GC (GCLocker Initiated GC) 2019-03-05T02:23:58.118+0000: 3026.609: [ParNew 287 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 288 | - age 1: 20543504 bytes, 20543504 total 289 | : 1695229K->21825K(1887488K), 0.0301558 secs] 4456464K->2794708K(12373248K), 0.0304323 secs] [Times: user=0.21 sys=0.00, real=0.03 secs] 290 | 2019-03-05T02:23:58.148+0000: 3026.640: Total time for which application threads were stopped: 0.0311631 seconds, Stopping threads took: 0.0001052 seconds 291 | 2019-03-05T02:24:02.474+0000: 3030.966: Application time: 4.3258681 seconds 292 | 2019-03-05T02:24:02.475+0000: 3030.967: Total time for which application threads were stopped: 0.0008546 seconds, Stopping threads took: 0.0001805 seconds 293 | 2019-03-05T02:24:02.475+0000: 3030.967: Application time: 0.0002025 seconds 294 | 2019-03-05T02:24:02.476+0000: 3030.967: [GC (GCLocker Initiated GC) 2019-03-05T02:24:02.476+0000: 3030.968: [ParNew 295 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 296 | - age 1: 21932144 bytes, 21932144 total 297 | : 1699649K->22786K(1887488K), 0.0280439 secs] 4472532K->2807790K(12373248K), 0.0282988 secs] [Times: user=0.21 sys=0.00, real=0.03 secs] 298 | 2019-03-05T02:24:02.504+0000: 3030.996: Total time for which application threads were stopped: 0.0291490 seconds, Stopping threads took: 0.0002288 seconds 299 | 2019-03-05T02:24:03.505+0000: 3031.996: Application time: 1.0000954 seconds 300 | 2019-03-05T02:24:03.506+0000: 3031.997: Total time for which application threads were stopped: 0.0009991 seconds, Stopping threads took: 0.0003107 seconds 301 | 2019-03-05T02:24:05.767+0000: 3034.259: Application time: 2.2615381 seconds 302 | 2019-03-05T02:24:05.768+0000: 3034.260: Total time for which application threads were stopped: 0.0010649 seconds, Stopping threads took: 0.0003416 seconds 303 | 2019-03-05T02:24:05.768+0000: 3034.260: Application time: 0.0002248 seconds 304 | 2019-03-05T02:24:05.769+0000: 3034.261: [GC (GCLocker Initiated GC) 2019-03-05T02:24:05.769+0000: 3034.261: [ParNew 305 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 306 | - age 1: 18833928 bytes, 18833928 total 307 | : 1700610K->19762K(1887488K), 0.0316146 secs] 4485614K->2818154K(12373248K), 0.0319084 secs] [Times: user=0.24 sys=0.00, real=0.04 secs] 308 | 2019-03-05T02:24:05.801+0000: 3034.293: Total time for which application threads were stopped: 0.0327156 seconds, Stopping threads took: 0.0001390 seconds 309 | 2019-03-05T02:24:06.801+0000: 3035.293: Application time: 1.0001746 seconds 310 | 2019-03-05T02:24:06.802+0000: 3035.294: Total time for which application threads were stopped: 0.0009779 seconds, Stopping threads took: 0.0003158 seconds 311 | 2019-03-05T02:24:08.803+0000: 3037.294: Application time: 2.0002496 seconds 312 | 2019-03-05T02:24:08.804+0000: 3037.295: Total time for which application threads were stopped: 0.0010243 seconds, Stopping threads took: 0.0003004 seconds 313 | 2019-03-05T02:24:09.804+0000: 3038.295: Application time: 1.0001803 seconds 314 | 2019-03-05T02:24:09.805+0000: 3038.296: Total time for which application threads were stopped: 0.0009200 seconds, Stopping threads took: 0.0002262 seconds 315 | 2019-03-05T02:24:10.138+0000: 3038.629: Application time: 0.3330722 seconds 316 | 2019-03-05T02:24:10.139+0000: 3038.630: [GC (Allocation Failure) 2019-03-05T02:24:10.139+0000: 3038.630: [ParNew 317 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 318 | - age 1: 18569760 bytes, 18569760 total 319 | : 1697586K->19916K(1887488K), 0.0306313 secs] 4495978K->2829870K(12373248K), 0.0308944 secs] [Times: user=0.23 sys=0.00, real=0.02 secs] 320 | 2019-03-05T02:24:10.170+0000: 3038.661: Total time for which application threads were stopped: 0.0320258 seconds, Stopping threads took: 0.0001667 seconds 321 | 2019-03-05T02:24:13.618+0000: 3042.110: Application time: 3.4484105 seconds 322 | 2019-03-05T02:24:13.619+0000: 3042.111: [GC (Allocation Failure) 2019-03-05T02:24:13.619+0000: 3042.111: [ParNew 323 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 324 | - age 1: 22178672 bytes, 22178672 total 325 | : 1697740K->22495K(1887488K), 0.0303408 secs] 4507694K->2844560K(12373248K), 0.0305992 secs] [Times: user=0.22 sys=0.00, real=0.02 secs] 326 | 2019-03-05T02:24:13.650+0000: 3042.141: Total time for which application threads were stopped: 0.0317237 seconds, Stopping threads took: 0.0002152 seconds 327 | 2019-03-05T02:24:15.650+0000: 3044.142: Application time: 2.0002537 seconds 328 | 2019-03-05T02:24:15.651+0000: 3044.143: Total time for which application threads were stopped: 0.0008452 seconds, Stopping threads took: 0.0001647 seconds 329 | 2019-03-05T02:24:18.163+0000: 3046.654: Application time: 2.5115342 seconds 330 | 2019-03-05T02:24:18.164+0000: 3046.655: [GC (Allocation Failure) 2019-03-05T02:24:18.164+0000: 3046.655: [ParNew 331 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 332 | - age 1: 22853024 bytes, 22853024 total 333 | : 1700319K->24249K(1887488K), 0.0302725 secs] 4522384K->2858992K(12373248K), 0.0305503 secs] [Times: user=0.23 sys=0.00, real=0.03 secs] 334 | 2019-03-05T02:24:18.194+0000: 3046.686: Total time for which application threads were stopped: 0.0317427 seconds, Stopping threads took: 0.0002923 seconds 335 | 2019-03-05T02:24:22.696+0000: 3051.188: Application time: 4.5016867 seconds 336 | 2019-03-05T02:24:22.697+0000: 3051.189: [GC (Allocation Failure) 2019-03-05T02:24:22.697+0000: 3051.189: [ParNew 337 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 338 | - age 1: 20740648 bytes, 20740648 total 339 | : 1702073K->21077K(1887488K), 0.0281519 secs] 4536816K->2868095K(12373248K), 0.0284112 secs] [Times: user=0.22 sys=0.00, real=0.03 secs] 340 | 2019-03-05T02:24:22.726+0000: 3051.217: Total time for which application threads were stopped: 0.0296085 seconds, Stopping threads took: 0.0002633 seconds 341 | 2019-03-05T02:24:23.726+0000: 3052.217: Application time: 1.0001695 seconds 342 | 2019-03-05T02:24:23.727+0000: 3052.218: Total time for which application threads were stopped: 0.0009481 seconds, Stopping threads took: 0.0002840 seconds 343 | 2019-03-05T02:24:26.150+0000: 3054.642: Application time: 2.4236218 seconds 344 | 2019-03-05T02:24:26.151+0000: 3054.643: [GC (Allocation Failure) 2019-03-05T02:24:26.151+0000: 3054.643: [ParNew 345 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 346 | - age 1: 20541816 bytes, 20541816 total 347 | : 1698901K->20951K(1887488K), 0.0293381 secs] 4545919K->2880163K(12373248K), 0.0296185 secs] [Times: user=0.23 sys=0.00, real=0.03 secs] 348 | 2019-03-05T02:24:26.181+0000: 3054.673: Total time for which application threads were stopped: 0.0307543 seconds, Stopping threads took: 0.0002479 seconds 349 | 2019-03-05T02:24:30.474+0000: 3058.966: Application time: 4.2931834 seconds 350 | 2019-03-05T02:24:30.475+0000: 3058.967: [GC (Allocation Failure) 2019-03-05T02:24:30.475+0000: 3058.967: [ParNew 351 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 352 | - age 1: 20794152 bytes, 20794152 total 353 | : 1698775K->21688K(1887488K), 0.0305056 secs] 4557987K->2892657K(12373248K), 0.0308033 secs] [Times: user=0.24 sys=0.00, real=0.03 secs] 354 | 2019-03-05T02:24:30.506+0000: 3058.998: Total time for which application threads were stopped: 0.0319795 seconds, Stopping threads took: 0.0002440 seconds 355 | 2019-03-05T02:24:31.506+0000: 3059.998: Application time: 1.0002072 seconds 356 | 2019-03-05T02:24:31.507+0000: 3059.999: Total time for which application threads were stopped: 0.0009671 seconds, Stopping threads took: 0.0003002 seconds 357 | 2019-03-05T02:24:33.374+0000: 3061.866: Application time: 1.8665780 seconds 358 | 2019-03-05T02:24:33.375+0000: 3061.867: Total time for which application threads were stopped: 0.0009484 seconds, Stopping threads took: 0.0002835 seconds 359 | 2019-03-05T02:24:33.375+0000: 3061.867: Application time: 0.0001939 seconds 360 | 2019-03-05T02:24:33.376+0000: 3061.867: [GC (GCLocker Initiated GC) 2019-03-05T02:24:33.376+0000: 3061.867: [ParNew 361 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 362 | - age 1: 18200192 bytes, 18200192 total 363 | : 1699516K->18982K(1887488K), 0.0417745 secs] 4570485K->2903350K(12373248K), 0.0420375 secs] [Times: user=0.31 sys=0.00, real=0.04 secs] 364 | 2019-03-05T02:24:33.418+0000: 3061.910: Total time for which application threads were stopped: 0.0428764 seconds, Stopping threads took: 0.0002023 seconds 365 | 2019-03-05T02:24:37.198+0000: 3065.690: Application time: 3.7802737 seconds 366 | 2019-03-05T02:24:37.199+0000: 3065.691: Total time for which application threads were stopped: 0.0008915 seconds, Stopping threads took: 0.0002100 seconds 367 | 2019-03-05T02:24:37.199+0000: 3065.691: Application time: 0.0001742 seconds 368 | 2019-03-05T02:24:37.200+0000: 3065.691: [GC (GCLocker Initiated GC) 2019-03-05T02:24:37.200+0000: 3065.692: [ParNew 369 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 370 | - age 1: 16490560 bytes, 16490560 total 371 | : 1696811K->17554K(1887488K), 0.0321475 secs] 4581179K->2910258K(12373248K), 0.0324105 secs] [Times: user=0.25 sys=0.00, real=0.03 secs] 372 | 2019-03-05T02:24:37.232+0000: 3065.724: Total time for which application threads were stopped: 0.0331060 seconds, Stopping threads took: 0.0000672 seconds 373 | 2019-03-05T02:24:38.233+0000: 3066.724: Application time: 1.0002073 seconds 374 | 2019-03-05T02:24:38.234+0000: 3066.725: Total time for which application threads were stopped: 0.0008956 seconds, Stopping threads took: 0.0001959 seconds 375 | 2019-03-05T02:24:41.748+0000: 3070.240: Application time: 3.5143601 seconds 376 | 2019-03-05T02:24:41.749+0000: 3070.240: [GC (Allocation Failure) 2019-03-05T02:24:41.749+0000: 3070.241: [ParNew 377 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 378 | - age 1: 23888240 bytes, 23888240 total 379 | : 1695378K->24940K(1887488K), 0.0323359 secs] 4588082K->2929748K(12373248K), 0.0326336 secs] [Times: user=0.25 sys=0.00, real=0.04 secs] 380 | 2019-03-05T02:24:41.782+0000: 3070.273: Total time for which application threads were stopped: 0.0337467 seconds, Stopping threads took: 0.0001507 seconds 381 | 2019-03-05T02:24:44.782+0000: 3073.274: Application time: 3.0004430 seconds 382 | 2019-03-05T02:24:44.783+0000: 3073.275: Total time for which application threads were stopped: 0.0010004 seconds, Stopping threads took: 0.0002776 seconds 383 | 2019-03-05T02:24:45.783+0000: 3074.275: Application time: 1.0001932 seconds 384 | 2019-03-05T02:24:45.784+0000: 3074.276: Total time for which application threads were stopped: 0.0010028 seconds, Stopping threads took: 0.0003084 seconds 385 | 2019-03-05T02:24:52.785+0000: 3081.277: Application time: 7.0010092 seconds 386 | 2019-03-05T02:24:52.786+0000: 3081.278: Total time for which application threads were stopped: 0.0008729 seconds, Stopping threads took: 0.0001558 seconds 387 | 2019-03-05T02:24:53.591+0000: 3082.083: Application time: 0.8048350 seconds 388 | 2019-03-05T02:24:53.592+0000: 3082.083: [GC (Allocation Failure) 2019-03-05T02:24:53.592+0000: 3082.084: [ParNew 389 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 390 | - age 1: 60865272 bytes, 60865272 total 391 | : 1702764K->60548K(1887488K), 0.0346987 secs] 4607572K->2978568K(12373248K), 0.0349728 secs] [Times: user=0.26 sys=0.00, real=0.03 secs] 392 | 2019-03-05T02:24:53.627+0000: 3082.119: Total time for which application threads were stopped: 0.0360447 seconds, Stopping threads took: 0.0001652 seconds 393 | 2019-03-05T02:24:58.628+0000: 3087.119: Application time: 5.0007635 seconds 394 | 2019-03-05T02:24:58.629+0000: 3087.120: Total time for which application threads were stopped: 0.0008652 seconds, Stopping threads took: 0.0001680 seconds 395 | 2019-03-05T02:25:13.863+0000: 3102.355: Application time: 15.2342177 seconds 396 | 2019-03-05T02:25:13.864+0000: 3102.355: [GC (Allocation Failure) 2019-03-05T02:25:13.864+0000: 3102.356: [ParNew 397 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 398 | - age 1: 73099696 bytes, 73099696 total 399 | : 1738372K->73051K(1887488K), 0.0441576 secs] 4656392K->3025968K(12373248K), 0.0444353 secs] [Times: user=0.34 sys=0.00, real=0.04 secs] 400 | 2019-03-05T02:25:13.909+0000: 3102.400: Total time for which application threads were stopped: 0.0456031 seconds, Stopping threads took: 0.0002707 seconds 401 | 2019-03-05T02:25:17.909+0000: 3106.401: Application time: 4.0006019 seconds 402 | 2019-03-05T02:25:17.910+0000: 3106.402: Total time for which application threads were stopped: 0.0009082 seconds, Stopping threads took: 0.0002406 seconds 403 | 2019-03-05T02:25:23.911+0000: 3112.402: Application time: 6.0008377 seconds 404 | 2019-03-05T02:25:23.912+0000: 3112.403: Total time for which application threads were stopped: 0.0009715 seconds, Stopping threads took: 0.0003085 seconds 405 | 2019-03-05T02:25:25.912+0000: 3114.404: Application time: 2.0003134 seconds 406 | 2019-03-05T02:25:25.913+0000: 3114.405: Total time for which application threads were stopped: 0.0009641 seconds, Stopping threads took: 0.0002845 seconds 407 | 2019-03-05T02:25:26.932+0000: 3115.424: Application time: 1.0188978 seconds 408 | 2019-03-05T02:25:26.933+0000: 3115.425: [GC (Allocation Failure) 2019-03-05T02:25:26.933+0000: 3115.425: [ParNew 409 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 410 | - age 1: 47122520 bytes, 47122520 total 411 | : 1750875K->50395K(1887488K), 0.0489268 secs] 4703792K->3061395K(12373248K), 0.0491902 secs] [Times: user=0.36 sys=0.00, real=0.05 secs] 412 | 2019-03-05T02:25:26.982+0000: 3115.474: Total time for which application threads were stopped: 0.0503837 seconds, Stopping threads took: 0.0002595 seconds 413 | 2019-03-05T02:25:33.656+0000: 3122.148: Application time: 6.6736573 seconds 414 | 2019-03-05T02:25:33.657+0000: 3122.149: [GC (Allocation Failure) 2019-03-05T02:25:33.657+0000: 3122.149: [ParNew 415 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 416 | - age 1: 19641048 bytes, 19641048 total 417 | : 1728219K->30785K(1887488K), 0.0493419 secs] 4739219K->3083984K(12373248K), 0.0495962 secs] [Times: user=0.36 sys=0.00, real=0.05 secs] 418 | 2019-03-05T02:25:33.707+0000: 3122.199: Total time for which application threads were stopped: 0.0508008 seconds, Stopping threads took: 0.0003430 seconds 419 | 2019-03-05T02:25:37.707+0000: 3126.199: Application time: 4.0005402 seconds 420 | 2019-03-05T02:25:37.708+0000: 3126.200: Total time for which application threads were stopped: 0.0009177 seconds, Stopping threads took: 0.0002297 seconds 421 | 2019-03-05T02:25:49.135+0000: 3137.627: Application time: 11.4267100 seconds 422 | 2019-03-05T02:25:49.136+0000: 3137.628: [GC (Allocation Failure) 2019-03-05T02:25:49.136+0000: 3137.628: [ParNew 423 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 424 | - age 1: 60262008 bytes, 60262008 total 425 | : 1708609K->61491K(1887488K), 0.0390807 secs] 4761808K->3133073K(12373248K), 0.0393583 secs] [Times: user=0.30 sys=0.00, real=0.04 secs] 426 | 2019-03-05T02:25:49.176+0000: 3137.667: Total time for which application threads were stopped: 0.0404789 seconds, Stopping threads took: 0.0001960 seconds 427 | 2019-03-05T02:25:58.177+0000: 3146.668: Application time: 9.0012597 seconds 428 | 2019-03-05T02:25:58.178+0000: 3146.669: Total time for which application threads were stopped: 0.0008719 seconds, Stopping threads took: 0.0001633 seconds 429 | 2019-03-05T02:26:14.725+0000: 3163.217: Application time: 16.5474122 seconds 430 | 2019-03-05T02:26:14.726+0000: 3163.218: [GC (Allocation Failure) 2019-03-05T02:26:14.726+0000: 3163.218: [ParNew 431 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 432 | - age 1: 92736544 bytes, 92736544 total 433 | : 1739315K->93491K(1887488K), 0.0455825 secs] 4810897K->3209644K(12373248K), 0.0458674 secs] [Times: user=0.35 sys=0.00, real=0.05 secs] 434 | 2019-03-05T02:26:14.772+0000: 3163.264: Total time for which application threads were stopped: 0.0470519 seconds, Stopping threads took: 0.0002716 seconds 435 | 2019-03-05T02:26:34.963+0000: 3183.454: Application time: 20.1905627 seconds 436 | 2019-03-05T02:26:34.964+0000: 3183.455: [GC (Allocation Failure) 2019-03-05T02:26:34.964+0000: 3183.455: [ParNew 437 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 438 | - age 1: 69932896 bytes, 69932896 total 439 | : 1771315K->71152K(1887488K), 0.0515123 secs] 4887468K->3259162K(12373248K), 0.0518097 secs] [Times: user=0.39 sys=0.00, real=0.05 secs] 440 | 2019-03-05T02:26:35.016+0000: 3183.507: Total time for which application threads were stopped: 0.0529230 seconds, Stopping threads took: 0.0001794 seconds 441 | 2019-03-05T02:27:05.194+0000: 3213.685: Application time: 30.1779036 seconds 442 | 2019-03-05T02:27:05.195+0000: 3213.686: [GC (Allocation Failure) 2019-03-05T02:27:05.195+0000: 3213.686: [ParNew 443 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 444 | - age 1: 108898048 bytes, 108898048 total 445 | : 1748976K->115364K(1887488K), 0.0522114 secs] 4936986K->3360931K(12373248K), 0.0524770 secs] [Times: user=0.40 sys=0.00, real=0.05 secs] 446 | 2019-03-05T02:27:05.247+0000: 3213.739: Total time for which application threads were stopped: 0.0536628 seconds, Stopping threads took: 0.0002690 seconds 447 | 2019-03-05T02:27:18.249+0000: 3226.741: Application time: 13.0018530 seconds 448 | 2019-03-05T02:27:18.250+0000: 3226.741: Total time for which application threads were stopped: 0.0007616 seconds, Stopping threads took: 0.0001498 seconds 449 | 2019-03-05T02:27:25.488+0000: 3233.980: Application time: 7.2383409 seconds 450 | 2019-03-05T02:27:25.489+0000: 3233.981: [GC (Allocation Failure) 2019-03-05T02:27:25.489+0000: 3233.981: [ParNew 451 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 452 | - age 1: 78675664 bytes, 78675664 total 453 | : 1793188K->90554K(1887488K), 0.0540262 secs] 5038755K->3421286K(12373248K), 0.0542933 secs] [Times: user=0.41 sys=0.00, real=0.06 secs] 454 | 2019-03-05T02:27:25.544+0000: 3234.035: Total time for which application threads were stopped: 0.0554118 seconds, Stopping threads took: 0.0002289 seconds 455 | 2019-03-05T02:27:28.544+0000: 3237.036: Application time: 3.0005021 seconds 456 | 2019-03-05T02:27:28.545+0000: 3237.037: Total time for which application threads were stopped: 0.0009135 seconds, Stopping threads took: 0.0002592 seconds 457 | 2019-03-05T02:27:45.884+0000: 3254.375: Application time: 17.3385001 seconds 458 | 2019-03-05T02:27:45.885+0000: 3254.376: [GC (Allocation Failure) 2019-03-05T02:27:45.885+0000: 3254.376: [ParNew 459 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 460 | - age 1: 67905024 bytes, 67905024 total 461 | : 1768378K->74045K(1887488K), 0.0532142 secs] 5099110K->3462492K(12373248K), 0.0535384 secs] [Times: user=0.40 sys=0.00, real=0.06 secs] 462 | 2019-03-05T02:27:45.938+0000: 3254.430: Total time for which application threads were stopped: 0.0546966 seconds, Stopping threads took: 0.0001715 seconds 463 | 2019-03-05T02:27:47.939+0000: 3256.430: Application time: 2.0002247 seconds 464 | 2019-03-05T02:27:47.939+0000: 3256.431: Total time for which application threads were stopped: 0.0008233 seconds, Stopping threads took: 0.0002131 seconds 465 | 2019-03-05T02:27:49.940+0000: 3258.431: Application time: 2.0002469 seconds 466 | 2019-03-05T02:27:49.940+0000: 3258.432: Total time for which application threads were stopped: 0.0008087 seconds, Stopping threads took: 0.0001647 seconds 467 | 2019-03-05T02:27:53.941+0000: 3262.433: Application time: 4.0006593 seconds 468 | 2019-03-05T02:27:53.942+0000: 3262.434: Total time for which application threads were stopped: 0.0008986 seconds, Stopping threads took: 0.0002268 seconds 469 | 2019-03-05T02:27:56.942+0000: 3265.434: Application time: 3.0004613 seconds 470 | 2019-03-05T02:27:56.943+0000: 3265.435: Total time for which application threads were stopped: 0.0009828 seconds, Stopping threads took: 0.0003095 seconds 471 | 2019-03-05T02:27:58.944+0000: 3267.435: Application time: 2.0003563 seconds 472 | 2019-03-05T02:27:58.945+0000: 3267.436: Total time for which application threads were stopped: 0.0009236 seconds, Stopping threads took: 0.0002140 seconds 473 | 2019-03-05T02:28:16.110+0000: 3284.601: Application time: 17.1650193 seconds 474 | 2019-03-05T02:28:16.111+0000: 3284.602: [GC (Allocation Failure) 2019-03-05T02:28:16.111+0000: 3284.602: [ParNew 475 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 476 | - age 1: 102808640 bytes, 102808640 total 477 | : 1751869K->107102K(1887488K), 0.0503366 secs] 5140316K->3554142K(12373248K), 0.0506252 secs] [Times: user=0.39 sys=0.00, real=0.05 secs] 478 | 2019-03-05T02:28:16.161+0000: 3284.653: Total time for which application threads were stopped: 0.0517668 seconds, Stopping threads took: 0.0001874 seconds 479 | 2019-03-05T02:28:36.164+0000: 3304.656: Application time: 20.0028515 seconds 480 | 2019-03-05T02:28:36.165+0000: 3304.657: Total time for which application threads were stopped: 0.0008865 seconds, Stopping threads took: 0.0001772 seconds 481 | 2019-03-05T02:28:36.394+0000: 3304.886: Application time: 0.2290218 seconds 482 | 2019-03-05T02:28:36.396+0000: 3304.887: [GC (Allocation Failure) 2019-03-05T02:28:36.396+0000: 3304.887: [ParNew 483 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 484 | - age 1: 65467472 bytes, 65467472 total 485 | : 1784926K->73857K(1887488K), 0.0819500 secs] 5231966K->3606025K(12373248K), 0.0823468 secs] [Times: user=0.63 sys=0.00, real=0.09 secs] 486 | 2019-03-05T02:28:36.478+0000: 3304.970: Total time for which application threads were stopped: 0.0840266 seconds, Stopping threads took: 0.0003283 seconds 487 | 2019-03-05T02:28:53.481+0000: 3321.972: Application time: 17.0023837 seconds 488 | 2019-03-05T02:28:53.482+0000: 3321.973: Total time for which application threads were stopped: 0.0008429 seconds, Stopping threads took: 0.0001704 seconds 489 | 2019-03-05T02:28:57.482+0000: 3325.974: Application time: 4.0004756 seconds 490 | 2019-03-05T02:28:57.483+0000: 3325.974: Total time for which application threads were stopped: 0.0008140 seconds, Stopping threads took: 0.0001936 seconds 491 | 2019-03-05T02:29:00.945+0000: 3329.437: Application time: 3.4621945 seconds 492 | 2019-03-05T02:29:00.946+0000: 3329.437: [GC (Allocation Failure) 2019-03-05T02:29:00.946+0000: 3329.437: [ParNew 493 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 494 | - age 1: 87871752 bytes, 87871752 total 495 | : 1751681K->98641K(1887488K), 0.0502777 secs] 5283849K->3688468K(12373248K), 0.0505469 secs] [Times: user=0.38 sys=0.00, real=0.05 secs] 496 | 2019-03-05T02:29:00.997+0000: 3329.488: Total time for which application threads were stopped: 0.0515664 seconds, Stopping threads took: 0.0001483 seconds 497 | 2019-03-05T02:29:01.997+0000: 3330.488: Application time: 1.0001694 seconds 498 | 2019-03-05T02:29:01.998+0000: 3330.489: Total time for which application threads were stopped: 0.0008156 seconds, Stopping threads took: 0.0001634 seconds 499 | 2019-03-05T02:29:04.998+0000: 3333.490: Application time: 3.0005455 seconds 500 | 2019-03-05T02:29:04.999+0000: 3333.490: Total time for which application threads were stopped: 0.0008241 seconds, Stopping threads took: 0.0001549 seconds 501 | 2019-03-05T02:29:05.999+0000: 3334.491: Application time: 1.0001768 seconds 502 | 2019-03-05T02:29:06.000+0000: 3334.492: Total time for which application threads were stopped: 0.0009861 seconds, Stopping threads took: 0.0003075 seconds 503 | 2019-03-05T02:29:20.862+0000: 3349.354: Application time: 14.8623400 seconds 504 | 2019-03-05T02:29:20.863+0000: 3349.355: [GC (Allocation Failure) 2019-03-05T02:29:20.863+0000: 3349.355: [ParNew 505 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 506 | - age 1: 68604824 bytes, 68604824 total 507 | : 1776465K->82719K(1887488K), 0.0518735 secs] 5366292K->3740861K(12373248K), 0.0521752 secs] [Times: user=0.40 sys=0.00, real=0.05 secs] 508 | 2019-03-05T02:29:20.916+0000: 3349.407: Total time for which application threads were stopped: 0.0532596 seconds, Stopping threads took: 0.0001717 seconds 509 | 2019-03-05T02:29:47.297+0000: 3375.788: Application time: 26.3810509 seconds 510 | 2019-03-05T02:29:47.298+0000: 3375.789: [GC (Allocation Failure) 2019-03-05T02:29:47.298+0000: 3375.789: [ParNew 511 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 512 | - age 1: 89203088 bytes, 89203088 total 513 | : 1760543K->104389K(1887488K), 0.0557215 secs] 5418685K->3819220K(12373248K), 0.0560191 secs] [Times: user=0.43 sys=0.00, real=0.06 secs] 514 | 2019-03-05T02:29:47.354+0000: 3375.846: Total time for which application threads were stopped: 0.0572438 seconds, Stopping threads took: 0.0002758 seconds 515 | 2019-03-05T02:30:02.356+0000: 3390.848: Application time: 15.0022965 seconds 516 | 2019-03-05T02:30:02.357+0000: 3390.849: Total time for which application threads were stopped: 0.0009061 seconds, Stopping threads took: 0.0001712 seconds 517 | 2019-03-05T02:30:03.357+0000: 3391.849: Application time: 1.0001289 seconds 518 | 2019-03-05T02:30:03.358+0000: 3391.850: Total time for which application threads were stopped: 0.0008516 seconds, Stopping threads took: 0.0002001 seconds 519 | 2019-03-05T02:30:09.025+0000: 3397.516: Application time: 5.6664862 seconds 520 | 2019-03-05T02:30:09.026+0000: 3397.517: [GC (Allocation Failure) 2019-03-05T02:30:09.026+0000: 3397.517: [ParNew 521 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 522 | - age 1: 136857504 bytes, 136857504 total 523 | : 1782213K->150047K(1887488K), 0.0696812 secs] 5497044K->3940183K(12373248K), 0.0699769 secs] [Times: user=0.54 sys=0.00, real=0.07 secs] 524 | 2019-03-05T02:30:09.096+0000: 3397.587: Total time for which application threads were stopped: 0.0711713 seconds, Stopping threads took: 0.0002220 seconds 525 | 2019-03-05T02:30:10.096+0000: 3398.588: Application time: 1.0002011 seconds 526 | 2019-03-05T02:30:10.097+0000: 3398.589: Total time for which application threads were stopped: 0.0009614 seconds, Stopping threads took: 0.0002205 seconds 527 | 2019-03-05T02:30:10.848+0000: 3399.340: Application time: 0.7512056 seconds 528 | 2019-03-05T02:30:10.849+0000: 3399.341: [GC (Allocation Failure) 2019-03-05T02:30:10.849+0000: 3399.341: [ParNew 529 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 530 | - age 1: 216787656 bytes, 216787656 total 531 | : 1827871K->209664K(1887488K), 1.0665094 secs] 5618007K->5134467K(12373248K), 1.0667918 secs] [Times: user=7.10 sys=0.00, real=1.07 secs] 532 | 2019-03-05T02:30:11.916+0000: 3400.408: Total time for which application threads were stopped: 1.0679561 seconds, Stopping threads took: 0.0002334 seconds 533 | 2019-03-05T02:30:12.916+0000: 3401.408: Application time: 1.0001480 seconds 534 | 2019-03-05T02:30:12.918+0000: 3401.409: Total time for which application threads were stopped: 0.0011668 seconds, Stopping threads took: 0.0003745 seconds 535 | 2019-03-05T02:30:13.584+0000: 3402.076: Application time: 0.6665299 seconds 536 | 2019-03-05T02:30:13.585+0000: 3402.077: [GC (Allocation Failure) 2019-03-05T02:30:13.585+0000: 3402.077: [ParNew 537 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 538 | - age 1: 223084320 bytes, 223084320 total 539 | : 1887488K->209664K(1887488K), 1.0458775 secs] 6812291K->6331620K(12373248K), 1.0461819 secs] [Times: user=7.17 sys=0.00, real=1.05 secs] 540 | 2019-03-05T02:30:14.632+0000: 3403.123: Total time for which application threads were stopped: 1.0474984 seconds, Stopping threads took: 0.0003733 seconds 541 | 2019-03-05T02:30:15.632+0000: 3404.123: Application time: 1.0001952 seconds 542 | 2019-03-05T02:30:15.633+0000: 3404.125: Total time for which application threads were stopped: 0.0013123 seconds, Stopping threads took: 0.0004213 seconds 543 | 2019-03-05T02:30:16.236+0000: 3404.728: Application time: 0.6031383 seconds 544 | 2019-03-05T02:30:16.237+0000: 3404.729: [GC (Allocation Failure) 2019-03-05T02:30:16.238+0000: 3404.729: [ParNew 545 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 546 | - age 1: 220986640 bytes, 220986640 total 547 | : 1887488K->209664K(1887488K), 1.0256981 secs] 8009444K->7513270K(12373248K), 1.0260995 secs] [Times: user=7.03 sys=0.00, real=1.03 secs] 548 | 2019-03-05T02:30:17.264+0000: 3405.755: Total time for which application threads were stopped: 1.0275039 seconds, Stopping threads took: 0.0002863 seconds 549 | 2019-03-05T02:30:18.264+0000: 3406.755: Application time: 1.0002017 seconds 550 | 2019-03-05T02:30:18.265+0000: 3406.757: Total time for which application threads were stopped: 0.0011143 seconds, Stopping threads took: 0.0003042 seconds 551 | 2019-03-05T02:30:18.524+0000: 3407.016: Application time: 0.2593301 seconds 552 | 2019-03-05T02:30:18.526+0000: 3407.017: [GC (Allocation Failure) 2019-03-05T02:30:18.526+0000: 3407.017: [ParNew 553 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 554 | - age 1: 219938488 bytes, 219938488 total 555 | : 1887488K->209664K(1887488K), 0.7954006 secs] 9191094K->8416025K(12373248K), 0.7957584 secs] [Times: user=5.47 sys=0.00, real=0.80 secs] 556 | 2019-03-05T02:30:19.322+0000: 3407.813: Total time for which application threads were stopped: 0.7973007 seconds, Stopping threads took: 0.0004524 seconds 557 | 2019-03-05T02:30:19.322+0000: 3407.813: Application time: 0.0001059 seconds 558 | 2019-03-05T02:30:19.323+0000: 3407.814: [GC (CMS Initial Mark) [1 CMS-initial-mark: 8206361K(10485760K)] 8416039K(12373248K), 0.0311528 secs] [Times: user=0.22 sys=0.00, real=0.03 secs] 559 | 2019-03-05T02:30:19.354+0000: 3407.846: Total time for which application threads were stopped: 0.0322969 seconds, Stopping threads took: 0.0001479 seconds 560 | 2019-03-05T02:30:19.354+0000: 3407.846: [CMS-concurrent-mark-start] 561 | 2019-03-05T02:30:20.354+0000: 3408.846: Application time: 1.0003136 seconds 562 | 2019-03-05T02:30:20.356+0000: 3408.847: Total time for which application threads were stopped: 0.0011687 seconds, Stopping threads took: 0.0004178 seconds 563 | 2019-03-05T02:30:21.102+0000: 3409.594: Application time: 0.7467017 seconds 564 | 2019-03-05T02:30:21.103+0000: 3409.595: [GC (Allocation Failure) 2019-03-05T02:30:21.104+0000: 3409.595: [ParNew 565 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 566 | - age 1: 223084184 bytes, 223084184 total 567 | : 1887488K->209664K(1887488K), 1.1643245 secs] 10093849K->9616835K(12373248K), 1.1646764 secs] [Times: user=8.13 sys=0.00, real=1.16 secs] 568 | 2019-03-05T02:30:22.268+0000: 3410.760: Total time for which application threads were stopped: 1.1660567 seconds, Stopping threads took: 0.0003050 seconds 569 | 2019-03-05T02:30:23.269+0000: 3411.760: Application time: 1.0002585 seconds 570 | 2019-03-05T02:30:23.270+0000: 3411.761: Total time for which application threads were stopped: 0.0011111 seconds, Stopping threads took: 0.0002445 seconds 571 | 2019-03-05T02:30:24.101+0000: 3412.593: Application time: 0.8313882 seconds 572 | 2019-03-05T02:30:24.102+0000: 3412.594: [GC (Allocation Failure) 2019-03-05T02:30:24.102+0000: 3412.594: [ParNew: 1887488K->1887488K(1887488K), 0.0000414 secs]2019-03-05T02:30:24.103+0000: 3412.594: [CMS2019-03-05T02:30:24.908+0000: 3413.399: [CMS-concurrent-mark: 4.384/5.554 secs] [Times: user=27.36 sys=0.24, real=5.55 secs] 573 | (concurrent mode failure): 9407171K->7027897K(10485760K), 13.6341390 secs] 11294659K->7027897K(12373248K), [Metaspace: 44769K->44769K(1089536K)], 13.6346297 secs] [Times: user=14.44 sys=0.00, real=13.63 secs] 574 | 2019-03-05T02:30:37.737+0000: 3426.229: Total time for which application threads were stopped: 13.6360750 seconds, Stopping threads took: 0.0003409 seconds 575 | 2019-03-05T02:30:37.820+0000: 3426.311: Application time: 0.0825842 seconds 576 | 2019-03-05T02:30:37.823+0000: 3426.315: Total time for which application threads were stopped: 0.0033890 seconds, Stopping threads took: 0.0012677 seconds 577 | 2019-03-05T02:30:38.823+0000: 3427.315: Application time: 1.0002190 seconds 578 | 2019-03-05T02:30:38.825+0000: 3427.316: Total time for which application threads were stopped: 0.0011708 seconds, Stopping threads took: 0.0002754 seconds 579 | 2019-03-05T02:30:38.903+0000: 3427.395: Application time: 0.0784644 seconds 580 | 2019-03-05T02:30:38.904+0000: 3427.396: Total time for which application threads were stopped: 0.0012461 seconds, Stopping threads took: 0.0003744 seconds 581 | 2019-03-05T02:30:38.905+0000: 3427.396: Application time: 0.0002525 seconds 582 | 2019-03-05T02:30:38.905+0000: 3427.397: [GC (GCLocker Initiated GC) 2019-03-05T02:30:38.905+0000: 3427.397: [ParNew 583 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 584 | - age 1: 219938760 bytes, 219938760 total 585 | : 1677832K->209664K(1887488K), 0.4776902 secs] 8705730K->7693273K(12373248K), 0.4780971 secs] [Times: user=3.35 sys=0.00, real=0.48 secs] 586 | 2019-03-05T02:30:39.384+0000: 3427.875: Total time for which application threads were stopped: 0.4789789 seconds, Stopping threads took: 0.0001621 seconds 587 | 2019-03-05T02:30:40.384+0000: 3428.875: Application time: 1.0001883 seconds 588 | 2019-03-05T02:30:40.385+0000: 3428.876: Total time for which application threads were stopped: 0.0011351 seconds, Stopping threads took: 0.0003575 seconds 589 | 2019-03-05T02:30:41.026+0000: 3429.518: Application time: 0.6415064 seconds 590 | 2019-03-05T02:30:41.028+0000: 3429.519: [GC (Allocation Failure) 2019-03-05T02:30:41.028+0000: 3429.519: [ParNew 591 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 592 | - age 1: 215742104 bytes, 215742104 total 593 | : 1887488K->209664K(1887488K), 1.0437004 secs] 9371097K->8904178K(12373248K), 1.0440719 secs] [Times: user=7.16 sys=0.00, real=1.05 secs] 594 | 2019-03-05T02:30:42.072+0000: 3430.563: Total time for which application threads were stopped: 1.0454769 seconds, Stopping threads took: 0.0003086 seconds 595 | 2019-03-05T02:30:42.072+0000: 3430.564: Application time: 0.0001287 seconds 596 | 2019-03-05T02:30:42.073+0000: 3430.564: [GC (CMS Initial Mark) [1 CMS-initial-mark: 8694514K(10485760K)] 8904199K(12373248K), 0.0309149 secs] [Times: user=0.22 sys=0.00, real=0.03 secs] 597 | 2019-03-05T02:30:42.104+0000: 3430.595: Total time for which application threads were stopped: 0.0319929 seconds, Stopping threads took: 0.0001007 seconds 598 | 2019-03-05T02:30:42.104+0000: 3430.596: [CMS-concurrent-mark-start] 599 | 2019-03-05T02:30:43.104+0000: 3431.596: Application time: 1.0002380 seconds 600 | 2019-03-05T02:30:43.105+0000: 3431.597: Total time for which application threads were stopped: 0.0012037 seconds, Stopping threads took: 0.0003376 seconds 601 | 2019-03-05T02:30:43.243+0000: 3431.735: Application time: 0.1375727 seconds 602 | 2019-03-05T02:30:43.244+0000: 3431.736: [GC (Allocation Failure) 2019-03-05T02:30:43.244+0000: 3431.736: [ParNew 603 | Desired survivor size 107347968 bytes, new threshold 1 (max 1) 604 | - age 1: 218889928 bytes, 218889928 total 605 | : 1887488K->209664K(1887488K), 1.1799858 secs] 10582002K->10110292K(12373248K), 1.1803783 secs] [Times: user=8.26 sys=0.00, real=1.18 secs] 606 | 2019-03-05T02:30:44.425+0000: 3432.916: Total time for which application threads were stopped: 1.1817243 seconds, Stopping threads took: 0.0002713 seconds 607 | 2019-03-05T02:30:45.425+0000: 3433.916: Application time: 1.0002368 seconds 608 | 2019-03-05T02:30:45.426+0000: 3433.918: Total time for which application threads were stopped: 0.0012010 seconds, Stopping threads took: 0.0003402 seconds 609 | 2019-03-05T02:30:45.529+0000: 3434.021: Application time: 0.1029620 seconds 610 | 2019-03-05T02:30:45.530+0000: 3434.022: [GC (Allocation Failure) 2019-03-05T02:30:45.531+0000: 3434.022: [ParNew: 1887488K->1887488K(1887488K), 0.0000494 secs]2019-03-05T02:30:45.531+0000: 3434.022: [CMS2019-03-05T02:30:50.671+0000: 3439.163: [CMS-concurrent-mark: 7.381/8.567 secs] [Times: user=33.59 sys=0.10, real=8.57 secs] 611 | (concurrent mode failure): 9900628K->10485759K(10485760K), 25.3900197 secs] 11788116K->11306899K(12373248K), [Metaspace: 44757K->44757K(1089536K)], 25.3904728 secs] [Times: user=30.55 sys=0.00, real=25.39 secs] 612 | 2019-03-05T02:31:10.921+0000: 3459.413: Total time for which application threads were stopped: 25.3919906 seconds, Stopping threads took: 0.0003961 seconds 613 | 2019-03-05T02:31:11.921+0000: 3460.413: Application time: 1.0002031 seconds 614 | 2019-03-05T02:31:11.923+0000: 3460.414: Total time for which application threads were stopped: 0.0012277 seconds, Stopping threads took: 0.0003116 seconds 615 | 2019-03-05T02:31:12.480+0000: 3460.971: Application time: 0.5573170 seconds 616 | 2019-03-05T02:31:12.481+0000: 3460.972: [Full GC (Allocation Failure) 2019-03-05T02:31:12.481+0000: 3460.973: [CMS: 10485759K->10485760K(10485760K), 21.5043593 secs] 12373247K->11771403K(12373248K), [Metaspace: 44757K->44757K(1089536K)], 21.5048076 secs] [Times: user=21.52 sys=0.00, real=21.50 secs] 617 | --------------------------------------------------------------------------------