Skip to content

Commit

Permalink
Fix Multiple GC declared error when running Druid Cluster (#17078)
Browse files Browse the repository at this point in the history
* Remove UseG1GC in all jvm.config to prevent multiple GC declared error
  • Loading branch information
GWphua committed Sep 20, 2024
1 parent 2eee470 commit a4c971c
Show file tree
Hide file tree
Showing 33 changed files with 0 additions and 34 deletions.
1 change: 0 additions & 1 deletion examples/conf/druid/auto/_common/common.jvm.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-server
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms15g
-Xmx15g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
1 change: 0 additions & 1 deletion examples/conf/druid/cluster/query/router/jvm.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-server
-Xms1g
-Xmx1g
-XX:+UseG1GC
-XX:MaxDirectMemorySize=128m
-XX:+ExitOnOutOfMemoryError
-Duser.timezone=UTC
Expand Down
1 change: 0 additions & 1 deletion examples/conf/druid/single-server/large/broker/jvm.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx12g
-XX:MaxDirectMemorySize=11g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms15g
-Xmx15g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx16g
-XX:MaxDirectMemorySize=25g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms256m
-Xmx256m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
1 change: 0 additions & 1 deletion examples/conf/druid/single-server/large/router/jvm.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-server
-Xms1g
-Xmx1g
-XX:+UseG1GC
-XX:MaxDirectMemorySize=128m
-XX:+ExitOnOutOfMemoryError
-Duser.timezone=UTC
Expand Down
1 change: 0 additions & 1 deletion examples/conf/druid/single-server/medium/broker/jvm.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx8g
-XX:MaxDirectMemorySize=5g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms9g
-Xmx9g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx8g
-XX:MaxDirectMemorySize=13g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms256m
-Xmx256m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
1 change: 0 additions & 1 deletion examples/conf/druid/single-server/medium/router/jvm.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-server
-Xms512m
-Xmx512m
-XX:+UseG1GC
-XX:MaxDirectMemorySize=128m
-XX:+ExitOnOutOfMemoryError
-Duser.timezone=UTC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx512m
-XX:MaxDirectMemorySize=768m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms256m
-Xmx256m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx512m
-XX:MaxDirectMemorySize=1280m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms64m
-Xmx64m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-server
-Xms128m
-Xmx128m
-XX:+UseG1GC
-XX:MaxDirectMemorySize=128m
-XX:+ExitOnOutOfMemoryError
-Duser.timezone=UTC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx512m
-XX:MaxDirectMemorySize=400m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms256m
-Xmx256m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx512m
-XX:MaxDirectMemorySize=400m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms64m
-Xmx64m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-server
-Xms128m
-Xmx128m
-XX:+UseG1GC
-XX:MaxDirectMemorySize=128m
-XX:+ExitOnOutOfMemoryError
-Duser.timezone=UTC
Expand Down
1 change: 0 additions & 1 deletion examples/conf/druid/single-server/small/broker/jvm.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx4g
-XX:MaxDirectMemorySize=3g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms4500m
-Xmx4500m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx4g
-XX:MaxDirectMemorySize=8g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms128m
-Xmx128m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
2 changes: 0 additions & 2 deletions examples/conf/druid/single-server/small/router/jvm.config
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
-server
-Xms512m
-Xmx512m
-XX:+UseG1GC
-XX:MaxDirectMemorySize=128m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
1 change: 0 additions & 1 deletion examples/conf/druid/single-server/xlarge/broker/jvm.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx16g
-XX:MaxDirectMemorySize=12g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms18g
-Xmx18g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-Xmx24g
-XX:MaxDirectMemorySize=44g
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-Xms256m
-Xmx256m
-XX:+ExitOnOutOfMemoryError
-XX:+UseG1GC
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
Expand Down
1 change: 0 additions & 1 deletion examples/conf/druid/single-server/xlarge/router/jvm.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-server
-Xms1g
-Xmx1g
-XX:+UseG1GC
-XX:MaxDirectMemorySize=128m
-XX:+ExitOnOutOfMemoryError
-Duser.timezone=UTC
Expand Down

0 comments on commit a4c971c

Please sign in to comment.