MacOS每秒唤醒错误 [英] MacOS wakeups per second error

查看:93
本文介绍了MacOS每秒唤醒错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

构建一个Rails应用程序(红宝石2.4.0p0/Rails 5.1.4)并使用Macbook air(MacOS High Sierra 10.13.2)进行本地测试,然后我一直遇到这个问题:

Building a Rails app (ruby 2.4.0p0 / Rails 5.1.4) and testing locally with my Macbook air (MacOS High Sierra 10.13.2) and I keep running into this problem:

最近241秒内的45001次唤醒(每秒187次唤醒) 平均),超过300秒内每秒150次唤醒的上限

45001 wakeups over the last 241 seconds (187 wakeups per second average), exceeding limit of 150 wakeups per second over 300 seconds

我认为这可能与我使用Mongoid(6.1.0)作为数据库这一事实有关,但我不确定.这是我第一次和Mongo玩耍.

I think this might have to do with the fact that I'm using Mongoid (6.1.0) as a database, but I'm not sure. It's my first time playing around with Mongo.

任何对我如何解决此问题的想法将不胜感激!

Any thoughts on how I might be able to address this would be greatly appreciated!

推荐答案

这是受浏览器限制的,尤其是在iPhone和iPad上,我也遇到了同样的情况.

This is browser limited, I also experienced the same especially on iPhone and iPad.

因此,Safari浏览器会限制最大唤醒次数. (例如,您可能会在前端收到大量的事件调用)

So the safari browser limits the max number of wakeups. (E.g. you might get massive event call back in the front end)

将内部设置为较长,或将一些时间间隔合并为较少的回调.

Set the internal to be long, or merge some intervals into less callbacks.

或者您可能有很多具有超帧速率的视频

Or you may have many video with ultra framerates

这篇关于MacOS每秒唤醒错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆