Skip to content

Commit 8b1476c

Browse files
authored
Update gc.md
1 parent 1120362 commit 8b1476c

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

ops/gc.md

+1-26
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
11
# GC
22

3-
## Flag Lookup
4-
5-
Find the default value of a GC setting in Java:
6-
7-
```sh
8-
java -XX:+PrintFlagsFinal -version
9-
```
10-
11-
For example, finding the default value of `MaxGCPauseMillis` can be done as follow:
12-
13-
```sh
14-
~ $ java -XX:+PrintFlagsFinal -version | grep MaxGCPauseMillis
15-
uintx MaxGCPauseMillis = 200 {product} {default}
16-
openjdk version "14.0.2" 2020-07-14
17-
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.2+12)
18-
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.2+12, mixed mode, sharing)
19-
```
20-
21-
## Articles
22-
23-
- Elasticsearch, "GC logging", _Elasticsearch_, 2020.<br>
24-
<https://www.elastic.co/guide/en/elasticsearch/reference/current/gc-logging.html>
25-
- Oracle, "Concurrent Mark Sweep (CMS) Collector (Java 8)", _Oracle_, 2020.<br>
26-
<https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/cms.html>
27-
- Prabin Meitei M, "Garbage Collection in Elasticsearch and the G1GC", _Medium_, 2018.<br>
28-
<https://medium.com/naukri-engineering/garbage-collection-in-elasticsearch-and-the-g1gc-16b79a447181>
3+
<https://mincong.io/2020/08/30/gc-in-elasticsearch/>

0 commit comments

Comments
 (0)