feat(server): support in-heap memory JVM monitor#2650
Merged
VGalaxies merged 8 commits intoapache:masterfrom Oct 15, 2024
Merged
feat(server): support in-heap memory JVM monitor#2650VGalaxies merged 8 commits intoapache:masterfrom
VGalaxies merged 8 commits intoapache:masterfrom
Conversation
Pengzna
reviewed
Aug 30, 2024
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
zyxxoo
reviewed
Sep 5, 2024
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Outdated
Show resolved
Hide resolved
javeme
reviewed
Sep 22, 2024
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. |
imbajin
reviewed
Oct 10, 2024
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/dist/MemoryMonitor.java
Show resolved
Hide resolved
imbajin
approved these changes
Oct 15, 2024
VGalaxies
approved these changes
Oct 15, 2024
imbajin
pushed a commit
to apache/hugegraph-doc
that referenced
this pull request
Nov 1, 2024
github-actions bot
pushed a commit
to apache/hugegraph-doc
that referenced
this pull request
Nov 1, 2024
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/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)