vincentlao / KOOM

KOOM is an OOM killer on mobile platform by Kwai.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

license Platform

KOOM

An OOM killer on mobile platform by Kwai.

中文版本请参看这里

Introduction

KOOM creates a mobile high performance online memory monitoring solution,which supplies a detailed report when OOM related problems are detected, and has solved a large number of OOM issues in the Kwai application. It's currently available on Android.

With the increasing complexity of mobile terminal business logic and the gradual popularity of scenarios with high memory requirements such as 4K codec and AR magic watch, the OOM problem has become the number one problem in the stability management of the Kuaishou client. In the daily version iteration process, OOM surges occasionally occur, and the online environment is very complicated. There are thousands of AB experiments. Pre-prevention and post-recovery cannot be achieved. Therefore, high-performance online memory monitoring solutions are urgently needed.

So how should OOM governance be built? At present, KOOM has the capability of monitoring leakage of Java Heap/Native Heap/Thread, and will build multi-dimensional and multi-business scenarios monitoring in the future.

Features

Java Leak Monitor

  • The koom-java-leak module is used for Java Heap leak monitoring: it uses the Copy-on-write mechanism to fork the child process dump Java Heap, which solves the problem. The app freezes for a long time during the dump. For details, please refer to here

Native Leak Monitor

  • The koom-native-leak module is a Native Heap leak monitoring solution: use the Tracing garbage collection mechanism to analyze the entire Native Heap, and directly output the leaked memory information like: size/Allocating stacks/etc.; greatly reduces the cost of analyzing and solving memory leaks for business students. For details, please refer to here

Thread Leak Monitor

  • The koom-thread-leak module is used for Thread leak monitoring: it hooks the life cycle function of the thread, and periodically reports the leaked thread information. For details, please refer to here

License

KOOM is under the Apache license 2.0. For details check out the LICENSE.

Change Log

Check out the CHANGELOG.md for details of change history.

Contributing

If you are interested in contributing, check out the CONTRIBUTING.md

Feedback

Welcome report issues or contact us in WeChat group.

About

KOOM is an OOM killer on mobile platform by Kwai.

License:Other


Languages

Language:C++ 76.8%Language:C 14.3%Language:Less 3.5%Language:Kotlin 2.6%Language:Python 1.0%Language:CMake 0.9%Language:Java 0.6%Language:HTML 0.1%Language:Assembly 0.1%Language:Shell 0.0%Language:Makefile 0.0%Language:Cuda 0.0%Language:QMake 0.0%