![]() lib/sonar-application-9.9.jar:/apps/sonarqube-9.9/lib/jdbc/postgresql/postgresql-42.3.3.jar .app.The following discussion regarding growing and shrinking of the heap and default heap sizes does not apply to the parallel collector. Sonarqu+ 23431 21345 0 12:03 ? 00:00:18 /usr/lib/jvm/java-17-amazon-corretto.x86_64/bin/java =true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/apps/sq-shared/temp -XX:-OmitStackTraceInFastThrow -add-opens=java.base/java.util=ALL-UNNAMED -add-exports=java.base/=ALL-UNNAMED -add-opens=java.base/java.lang=ALL-UNNAMED -add-opens=java.base/java.nio=ALL-UNNAMED -add-opens=java.base/=ALL-UNNAMED -add-opens=java.management/sun.management=ALL-UNNAMED -add-opens=jdk.management/=ALL-UNNAMED =false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.proxyHost=.com -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts=localhost|127.*| -Dhttps.proxyHost=.com -Dhttps.proxyPort=3128 -cp. ![]() ![]() Sonarqu+ 22702 21345 1 12:03 ? 00:00:36 /usr/lib/jvm/java-17-amazon-corretto.x86_64/bin/java =true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/apps/sq-shared/temp -XX:-OmitStackTraceInFastThrow -add-opens=java.base/java.util=ALL-UNNAMED -add-opens=java.base/java.lang=ALL-UNNAMED -add-opens=java.base/java.io=ALL-UNNAMED -add-opens=java.rmi/=ALL-UNNAMED -add-exports=java.base/=ALL-UNNAMED -add-opens=java.base/java.nio=ALL-UNNAMED -add-opens=java.base/=ALL-UNNAMED -add-opens=java.management/sun.management=ALL-UNNAMED -add-opens=jdk.management/=ALL-UNNAMED =false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.proxyHost=.com -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts=localhost|127.*| -Dhttps.proxyHost=.com -Dhttps.proxyPort=3128 -cp. Thought above lines are commented out in sonar properties file ,we could see the process is still running with some xms and xmx values as shown below, i want to understand how can we handle these java args without hardcoding in systemd file as mentioned in sonarqube documentation sonarqu+ 21366 21345 1 12:03 ? 00:00:30 /usr/lib/jvm/java-17-amazon-corretto.x86_64/bin/java -XX:+UseG1GC -Djava.io.tmpdir=/apps/sq-shared/temp -XX:ErrorFile=./logs/es_hs_err_pid%p.log =60 .ttl=10 -XX:+AlwaysPreTouch -Xss1m =true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djna.tmpdir=/apps/sq-shared/temp -XX:-OmitStackTraceInFastThrow =true =true =0 =0 -Dlog4j.shutdownHookEnabled=false =true -Dlog4j2.formatMsgNoLookups=true =COMPAT =false =true -Xmx512m Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError =/opt/sonarqube/elasticsearch/config/security.policy =/apps/sonarqube-9.9/elasticsearch =/apps/sq-shared/temp/conf/es =default =tar -Des.bundled_jdk=false -cp /apps/sonarqube-9.9/elasticsearch/lib/* #=-Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError ![]() #sonar.ce.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError #=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError ExecStart=/bin/nohup /opt/java/bin/java **-Xms32m -Xmx32m** 4Stack=true -jar /opt/sonarqube/lib/sonar-application-8.5.jarīut we dont want to use this hardcoded value and want to add this in properties file,Īnd in properties file also ,we could see there are options for webserver,compute engine and elastic search java paramters which are commented though. We are installing our new sonarqube server on aws (version - 9.9) and as per below installation guide Operating the Server | SonarQube Docs, we added the systemd xms and xmx args as same mentioned in the docs. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |