-
Notifications
You must be signed in to change notification settings - Fork 1k
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
CPU High #4265
Comments
Is there anything weird in your log files? |
Is this all in your logs? |
Today, the CPU usage of erl.exe soared again(about 30%). I ended its thread, but it immediately revived. After the revival, the CPU usage was about 20%. After several seconds, it dropped to a very low level. Now it is stable. |
After Windows sleep for a weekend, activate Windows, erl.exe CPU usage reaches 50% - 70%, It may be related to the windows sleep switch |
Are there any active tasks in CouchDB while erl-CPU is high? |
There are no active tasks. This may be a problem with Erlang or the Windows sleep mechanism. This happens every Monday morning when the computer wakes up. |
@waversky Hi, is this still a problem (with the latest version)? |
@big-r81: Are there any changes that may explain or fix this problem in recent versions? We are using version 3.1.0 and facing the same problem. In our scenario the couchdb is installed on windows surface tablets. Caused by the high cpu usage the tablets are getting uncomfortable warm. As waversky said, this appears when waking the tablet from standby. We have no aktive tasks or replications running. |
@BeckmannM Maybe you should try the latest version, there are many improvements (besides CVE fixes). The question is, what process is causing the high cpu usage and from which state ... |
I did a little research. I believe @waversky assumption is right and the problem is caused by windows sleep mode / fast start feature. I found some threads relating to the same problem with other software running with erlang. The suggested workaround is to disable windows fast start feature. I will try this and let you know. Further informations: |
So i can confirm disabling windows fast start fixes the issue for us. This is a workaround only, but this solution is suitable for us. And it proves the cause is related to erlang/windows and no couchdb issue. |
It would be good to report this problem to the Erlang/OTP team. |
Description
我在自己的电脑上安装了CouchDB ,用于学习,这大概是一个月前,最近我的电脑有点卡,今天发现是由erl.exe CPU(70%左右)占用过高导致的,它让电脑的CPU一直保持在100%,它来自“Apache CouchDB\erts-11.2.2.12\bin” 这个目录
I installed CouchDB on my computer for learning. About a month ago, my the computer is a little laggy recently had a bit of cards. Today, I found that it was due to the high CPU(about 70%) usage of CouchDB, It keeps the CPU of the computer at 100%,它来自“Apache CouchDB\erts-11.2.2.12\bin”这个目录
之后,我结束了“erl.exe” 进程,过了几秒,它又被唤起了,不过现在CPU占用维持在很低的水平
After that, I ended the "erl. exe" process. After a few seconds, it was awakened again, but now the CPU usage is kept at a very low level
我查看了本地的CouchDB,没有活跃的任务
I checked the local CouchDB and found no active tasks
Steps to Reproduce
我不知道怎么重现,但是我还是想报告这个问题
I don't know how to reproduce,But I still want to report this problem
Expected Behaviour
我最近没有关注自己电脑上的CouchDB ,它应该保持静默
I haven't paid attention to CouchDB on my computer recently. It should remain silent
Your Environment
Additional Context
异常情况:
![image](https://user-images.githubusercontent.com/18565394/201555682-3b0ec54c-a132-4f3e-95e8-f21a095aa066.png)
Exceptions:
进程重启后:
![image](https://user-images.githubusercontent.com/18565394/201557850-c1fca6ce-8cbb-4d82-99b0-cd55da9f4cd3.png)
After the process restarts:
The text was updated successfully, but these errors were encountered: