You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2020/10/21 16:52:09 UTC

[GitHub] [geode] jdeppe-pivotal opened a new pull request #5648: GEODE-8752: Try to improve memory reporting stats for Windows

jdeppe-pivotal opened a new pull request #5648:
URL: https://github.com/apache/geode/pull/5648


   - This change is specifically to see if things improve on Windows
   
   Authored-by: Jens Deppe <jd...@vmware.com>
   
   Thank you for submitting a contribution to Apache Geode.
   
   In order to streamline the review of the contribution we ask you
   to ensure the following steps have been taken:
   
   ### For all changes:
   - [ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
   
   - [ ] Has your PR been rebased against the latest commit within the target branch (typically `develop`)?
   
   - [ ] Is your initial contribution a single, squashed commit?
   
   - [ ] Does `gradlew build` run cleanly?
   
   - [ ] Have you written or updated unit tests to verify your changes?
   
   - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
   
   ### Note:
   Please ensure that once the PR is submitted, check Concourse for build issues and
   submit an update to your PR as soon as possible. If you need help, please send an
   email to dev@geode.apache.org.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [geode] jdeppe-pivotal commented on a change in pull request #5648: GEODE-5782: Try to improve memory reporting stats for Windows

Posted by GitBox <gi...@apache.org>.
jdeppe-pivotal commented on a change in pull request #5648:
URL: https://github.com/apache/geode/pull/5648#discussion_r512349356



##########
File path: geode-core/src/integrationTest/java/org/apache/geode/distributed/LauncherMemberMXBeanIntegrationTest.java
##########
@@ -227,6 +227,8 @@ public void showJVMMetrics_returnsOJVMMetricsType()
         if (cdsValue.equals(osMetricValue)) {
           break;
         }
+        System.gc();
+        System.runFinalization();

Review comment:
       If I understand the code correctly, I believe they are being updated via a StatsMonitor, so I presume no more frequently than `statistic-sample-rate`. The test could retrieve that setting and try for at least that amount of time.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [geode] jdeppe-pivotal commented on a change in pull request #5648: GEODE-5782: Try to improve memory reporting stats for Windows

Posted by GitBox <gi...@apache.org>.
jdeppe-pivotal commented on a change in pull request #5648:
URL: https://github.com/apache/geode/pull/5648#discussion_r512001303



##########
File path: geode-core/src/integrationTest/java/org/apache/geode/distributed/LauncherMemberMXBeanIntegrationTest.java
##########
@@ -227,6 +227,8 @@ public void showJVMMetrics_returnsOJVMMetricsType()
         if (cdsValue.equals(osMetricValue)) {
           break;
         }
+        System.gc();
+        System.runFinalization();

Review comment:
       Yes, I'm probably on the wrong track here. The test flakiness is around reporting memory stats. Since the underlying (volatile) values are retrieved from `VMStatsMonitor` would it then be better to reduce the stat sampling period so that values are updated more frequently?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [geode] dschneider-pivotal commented on a change in pull request #5648: GEODE-5782: Try to improve memory reporting stats for Windows

Posted by GitBox <gi...@apache.org>.
dschneider-pivotal commented on a change in pull request #5648:
URL: https://github.com/apache/geode/pull/5648#discussion_r512149019



##########
File path: geode-core/src/integrationTest/java/org/apache/geode/distributed/LauncherMemberMXBeanIntegrationTest.java
##########
@@ -227,6 +227,8 @@ public void showJVMMetrics_returnsOJVMMetricsType()
         if (cdsValue.equals(osMetricValue)) {
           break;
         }
+        System.gc();
+        System.runFinalization();

Review comment:
       or can you change the test to be more patient to see an expected value? Do you know how often these values are currently being updated?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [geode] jdeppe-pivotal merged pull request #5648: GEODE-5782: Try to improve memory reporting stats for Windows

Posted by GitBox <gi...@apache.org>.
jdeppe-pivotal merged pull request #5648:
URL: https://github.com/apache/geode/pull/5648


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [geode] kirklund commented on a change in pull request #5648: GEODE-5782: Try to improve memory reporting stats for Windows

Posted by GitBox <gi...@apache.org>.
kirklund commented on a change in pull request #5648:
URL: https://github.com/apache/geode/pull/5648#discussion_r511141909



##########
File path: geode-core/src/integrationTest/java/org/apache/geode/distributed/LauncherMemberMXBeanIntegrationTest.java
##########
@@ -227,6 +227,8 @@ public void showJVMMetrics_returnsOJVMMetricsType()
         if (cdsValue.equals(osMetricValue)) {
           break;
         }
+        System.gc();
+        System.runFinalization();

Review comment:
       I'm really reluctant to add `gc()` or `runFinalization()`. Why do you think these will fix flakiness in this test?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org