-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(server): support in-heap memory JVM monitor #2650
Conversation
hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/config/ServerOptions.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/config/ServerOptions.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/config/ServerOptions.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2650 +/- ##
============================================
- Coverage 47.66% 38.40% -9.26%
+ Complexity 822 515 -307
============================================
Files 718 731 +13
Lines 58469 60132 +1663
Branches 7496 7802 +306
============================================
- Hits 27868 23093 -4775
- Misses 27814 34543 +6729
+ Partials 2787 2496 -291 ☔ View full report in Codecov by Sentry. |
Short Desc (Feature)
In order to avoid OOM errors caused by large queries, an jvm in heap memory monitoring mechanism was introduced in Hugegraph Server, which monitors the JVM's memory usage through scheduled tasks. If the threshold is exceeded, trigger GC or set interrupt flag to the corresponding thread to avoid OOM.
Related config PR: apache/incubator-hugegraph-doc#376
Details Docs
For more details, please visit the link:
https://hugegraph.feishu.cn/wiki/MFUlwaMnwidj1Ukc53ycWzsSnkb (design doc)
https://hugegraph.feishu.cn/wiki/YYVAwGOrCiiZC4k22R0cgOaFnYg (GC/OOM Mock/Test)