New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GEODE-7221: Ensure management regions close CachePerfStats #4072
GEODE-7221: Ensure management regions close CachePerfStats #4072
Conversation
kirklund
commented
Sep 19, 2019
•
edited
edited
- Cleanup and unit test FederatingManager
- Cleanup and unit test LocalManager
- Fix GEODE-7221 by setting hasOwnStats true for management regions
f35f4d1
to
9159f06
Compare
* Move inner classes to bottom of outer class * Extract addMemberArtifacts from GIITask * Remove unnecessary code * Create FederatingManagerTest
* Move inner class to bottom of outer class * Remove unnecessary code * Extract doManagementTask from ManagementTask * Create LocalManagerTest
9159f06
to
a13a4a2
Compare
geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed mainly the fix for GEODE-7221.
The leak of StripedStatisticsImpl instances is gone after the fix.
jmap -histo:live | grep StripedStatisticsImpl
num #instances #bytes class name
Without the fix:
Start server:
459: 16 1280 org.apache.geode.internal.statistics.StripedStatisticsImpl
Stop server:
468: 15 1200 org.apache.geode.internal.statistics.StripedStatisticsImpl
Start server:
439: 18 1440 org.apache.geode.internal.statistics.StripedStatisticsImpl
Stop server:
441: 17 1360 org.apache.geode.internal.statistics.StripedStatisticsImpl
Start server:
409: 20 1600 org.apache.geode.internal.statistics.StripedStatisticsImpl
Stop server:
422: 19 1520 org.apache.geode.internal.statistics.StripedStatisticsImpl
With the fix:
Start server:
462: 16 1280 org.apache.geode.internal.statistics.StripedStatisticsImpl
Stop server:
506: 13 1040 org.apache.geode.internal.statistics.StripedStatisticsImpl
Start server:
455: 16 1280 org.apache.geode.internal.statistics.StripedStatisticsImpl
Stop server:
508: 13 1040 org.apache.geode.internal.statistics.StripedStatisticsImpl
Start server:
459: 16 1280 org.apache.geode.internal.statistics.StripedStatisticsImpl
Stop server:
508: 13 1040 org.apache.geode.internal.statistics.StripedStatisticsImpl
Ensure that managements regions close CachePerfStats by setting hasOwnStats to true from FederatingManager and LocalManager.
7082b5e
to
f681a04
Compare