[ 
https://issues.apache.org/jira/browse/GEODE-6253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Owen Nichols closed GEODE-6253.
-------------------------------

> Sampling of VM stats generates fatal log message and skips remaining stats in 
> sample
> ------------------------------------------------------------------------------------
>
>                 Key: GEODE-6253
>                 URL: https://issues.apache.org/jira/browse/GEODE-6253
>             Project: Geode
>          Issue Type: Bug
>          Components: statistics
>         Environment: JDK 11
>            Reporter: Kirk Lund
>            Assignee: Kirk Lund
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.9.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> I've seen several bugs filed for this and then fixed by using 
> addIgnoredException.
> Unfortunately, this means that quite a few stats that are refreshed after 
> line 624 of VMStats50 are not refreshed. Also it seems silly to keep adding 
> addIgnoredException to lots of tests.
> I think the product code should be changed to catch this and workaround it 
> (skip the sample and move on to the next stats). At most, this should be a 
> `warning` or `info` level statement:
> {noformat}
> [fatal 2018/11/12 19:50:18.909 UTC <StatSampler> tid=15055] committed = 
> 538968064 should be < max = 536870912
> java.lang.IllegalArgumentException: committed = 538968064 should be < max = 
> 536870912
>       at 
> java.management/java.lang.management.MemoryUsage.<init>(MemoryUsage.java:166)
>       at java.management/sun.management.MemoryImpl.getMemoryUsage0(Native 
> Method)
>       at 
> java.management/sun.management.MemoryImpl.getHeapMemoryUsage(MemoryImpl.java:71)
>       at 
> org.apache.geode.internal.stats50.VMStats50.refresh(VMStats50.java:624)
>       at 
> org.apache.geode.internal.statistics.HostStatSampler.sampleSpecialStats(HostStatSampler.java:542)
>       at 
> org.apache.geode.internal.statistics.HostStatSampler.run(HostStatSampler.java:215)
>       at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to