Does ZGC use more shared memory?Does a finally block always get executed in Java?How does the Java 'for each' loop work?Why does Java have transient fields?Does Java support default parameter values?What does 'synchronized' mean?How do servlets work? Instantiation, sessions, shared variables and multithreadingCreating a memory leak with JavaFailed to load the JNI shared Library (JDK)Why does this code using random strings print “hello world”?Why my java process used memory(Linux RES) keep increasing?

Can an intercepting fighter jet force a small propeller aircraft down without completely destroying it?

Tiny image scraper for xkcd.com

Does the size of capers influence their taste?

Plotting level sets of the form f(x,y,c)==0

What is the maximal acceptable delay between pilot's input and flight control surface actuation?

Why not use futuristic pavise ballistic shields for protection?

Heuristic argument for the Riemann Hypothesis

Using font to highlight a god's speech in dialogue

Displaying minutes in HH:MM format

Is it rude to ask my opponent to resign an online game when they have a lost endgame?

Why did the VIC-II and SID use 6 µm technology in the era of 3 µm and 1.5 µm?

Ideal characterization of almost convergence

How to run a command 1 out of N times in Bash

LM317 to step voltage up

How to align values in table according to the pm and point?

Is mathematics truth?

Why do modes sound so different, although they are basically the same as a mode of another scale?

Received email from ISP saying one of my devices has malware

How can I design a magically-induced coma?

Function of the separated, individual solar cells on Telstar 1 and 2? Why were they "special"?

Can there be plants on the dark side of a tidally locked world?

Initializing a std::array with a constant value

Why are Latin and Sanskrit called dead languages?

Where is the correct position to set right or left of muscle names for anatomical names?



Does ZGC use more shared memory?


Does a finally block always get executed in Java?How does the Java 'for each' loop work?Why does Java have transient fields?Does Java support default parameter values?What does 'synchronized' mean?How do servlets work? Instantiation, sessions, shared variables and multithreadingCreating a memory leak with JavaFailed to load the JNI shared Library (JDK)Why does this code using random strings print “hello world”?Why my java process used memory(Linux RES) keep increasing?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















Why does the JVM process using ZGC of OpenJDK 11 on CentOS within Docker use huge shared memory?



Server: 2 cores/4G memory;
VIRT: 17.032t, RES: 7.974g, SHR: 7.382g, %CPU: 26.9, %MEM: 199



JVM parameters:



-Xmx3296m -Xms1977m -Xss256k
-XX:MetaspaceSize=128m
-XX:MaxMetaspaceSize=256m
-XX:+UnlockExperimentalVMOptions
-XX:+UseZGC
-XX:MinHeapFreeRatio=50
-XX:MaxHeapFreeRatio=80


After turning off ZGC, shared memory uses only 33K as below.



VIRT: 29g, RES: 1.5g, SHR: 33564, %CPU: 26, %MEM: 39.










share|improve this question
































    2















    Why does the JVM process using ZGC of OpenJDK 11 on CentOS within Docker use huge shared memory?



    Server: 2 cores/4G memory;
    VIRT: 17.032t, RES: 7.974g, SHR: 7.382g, %CPU: 26.9, %MEM: 199



    JVM parameters:



    -Xmx3296m -Xms1977m -Xss256k
    -XX:MetaspaceSize=128m
    -XX:MaxMetaspaceSize=256m
    -XX:+UnlockExperimentalVMOptions
    -XX:+UseZGC
    -XX:MinHeapFreeRatio=50
    -XX:MaxHeapFreeRatio=80


    After turning off ZGC, shared memory uses only 33K as below.



    VIRT: 29g, RES: 1.5g, SHR: 33564, %CPU: 26, %MEM: 39.










    share|improve this question




























      2












      2








      2








      Why does the JVM process using ZGC of OpenJDK 11 on CentOS within Docker use huge shared memory?



      Server: 2 cores/4G memory;
      VIRT: 17.032t, RES: 7.974g, SHR: 7.382g, %CPU: 26.9, %MEM: 199



      JVM parameters:



      -Xmx3296m -Xms1977m -Xss256k
      -XX:MetaspaceSize=128m
      -XX:MaxMetaspaceSize=256m
      -XX:+UnlockExperimentalVMOptions
      -XX:+UseZGC
      -XX:MinHeapFreeRatio=50
      -XX:MaxHeapFreeRatio=80


      After turning off ZGC, shared memory uses only 33K as below.



      VIRT: 29g, RES: 1.5g, SHR: 33564, %CPU: 26, %MEM: 39.










      share|improve this question
















      Why does the JVM process using ZGC of OpenJDK 11 on CentOS within Docker use huge shared memory?



      Server: 2 cores/4G memory;
      VIRT: 17.032t, RES: 7.974g, SHR: 7.382g, %CPU: 26.9, %MEM: 199



      JVM parameters:



      -Xmx3296m -Xms1977m -Xss256k
      -XX:MetaspaceSize=128m
      -XX:MaxMetaspaceSize=256m
      -XX:+UnlockExperimentalVMOptions
      -XX:+UseZGC
      -XX:MinHeapFreeRatio=50
      -XX:MaxHeapFreeRatio=80


      After turning off ZGC, shared memory uses only 33K as below.



      VIRT: 29g, RES: 1.5g, SHR: 33564, %CPU: 26, %MEM: 39.







      java adoptopenjdk






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 25 at 18:32









      Lii

      7,5874 gold badges46 silver badges64 bronze badges




      7,5874 gold badges46 silver badges64 bronze badges










      asked Mar 28 at 1:43









      Spike LiuSpike Liu

      163 bronze badges




      163 bronze badges

























          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55388971%2fdoes-zgc-use-more-shared-memory%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55388971%2fdoes-zgc-use-more-shared-memory%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현