Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

while ((second = indexIn.readLong()) < beginSecond) 出现 EOF异常 导致监控页面无数据

Open tooapi opened this issue 8 years ago • 3 comments

long offset;
        try {
            long second;
            lastPosition.offsetInIndex = in.getChannel().position();
            while ((second = indexIn.readLong()) < beginSecond) {
                offset = indexIn.readLong();
                lastPosition.offsetInIndex = in.getChannel().position();
            }
            offset = indexIn.readLong();
            lastPosition.metricFileName = metricFileName;
            lastPosition.indexFileName = idxFileName;
            lastPosition.second = second;
            return offset;
        } catch (EOFException ignore) {
            return -1;
        } finally {
            indexIn.close();
        }

 while ((second = indexIn.readLong()) < beginSecond)

出现 EOF异常 导致监控页面无数据

tooapi avatar Nov 30 '18 09:11 tooapi

Hi, can you give more information (e.g. code filename, exception you caught, your environment)? Please refer to the issue template.

sczyh30 avatar Nov 30 '18 10:11 sczyh30

没有任何异常 就是 监控页面无数据 怀疑是while ((second = indexIn.readLong()) < beginSecond) readLong的时候出现了异常 技术springboot+restful 使用的sentinel-web-servlet win10 jdk 8 监控部署在远程linux上

tooapi avatar Dec 05 '18 01:12 tooapi

Please check whether the system time of Sentinel dashboard matches the system time of the machines where your applications are deployed. Sentinel dashboard fetches the monitoring data by the timestamp of dashboard, so if the time doesn't match, the dashboard won't be able to get the monitoring data.

// 请检查 Sentinel 控制台所在机器的时间与服务部署机器的时间是否一致,不一致则无法正确拉取监控。另外还可参考 FAQ 进行排查。

sczyh30 avatar Dec 06 '18 12:12 sczyh30