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

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript