Desktop Client 3.0.1 Windows constant high CPU load ~20-32% (while doing nothing)
Like in https://github.com/nextcloud/desktop/issues/964 I tried the trick with the registration and it seemed to work, but it didn't while writing a post there the CPU usage goes up again.
My Machine Windows 10 Laptop (i5-6300U, 16GB RAM, Windows 10 1909, SSD)
I have around 25% CPU load, got down and up (Task Manager showed that Nextcloud drained a lot of power, so my Laptops battery goos down quickly, too).
I am syncing 301 GB and 144k files (through Windows Explorer checking the folder).
I am just browsing the web. Have no documents or anything inside the Nextcloud folder open.
I am probably reinstalling 2.3.3 revision 1 again. As sadly new features don't help me if all programs lack and I feel like I have an ten year old laptop and have to kill nextcloud for using the pc.
Hope this gets fixed, I keep 3.0.1 on for a few days, so if I can provide log files, I will be happy to do so.
Could be interesting if you start the client with the --logdebug and --logfile parameters and see if it keeps claiming something in the logs while doing nothing from your point of view.
Note we spotted a performance regression last week, should be fixed in 3.0.2 at the end of the month.
Ok, I will enable them and start the client.
I believe this bug was there before 3.x version (so also in like 2.5 or 2.6). But can't say when it started.
Will report back with logfiles if something is in there that is interesting.
High, I got an log file. Ran it like for 6 minutes. File is 344MB big. Has 1.2 million lines. I tried to replace every domain name and file name with generic names but it takes too long and I can't know if I found all. Is there a a way to automatically anonymize the log file?
I can see a lot of readings of files and database reading, like "Database entry found" Then a lot of: 2020-09-07 14:30:06:813 [ debug nextcloud.sync.csync.reconciler ] [ _csync_merge_algorithm_visitor ]: INSTRUCTION_NONE client file: filepath_and_name
and a lot of (both just thousands of lines with same looking code, but different files) 2020-09-07 14:28:45:774 [ info nextcloud.sync.csync.updater ]: Database entry found for private_file, compare: 1585729090 <-> 1585729090, etag: <-> a5ff180aedcc2024373a91d1ac27c255, inode: 196050 <-> 196050, size: 0 <-> 0, perms: 0 <-> 9f, checksum: <-> , ignore: 0, e2e: 2020-09-07 14:28:45:774 [ info nextcloud.sync.csync.updater ]: file: private_file, instruction: INSTRUCTION_NONE <<= 2020-09-07 14:28:45:778 [ debug nextcloud.sync.csync.updater ] [ csync_walker ]: directory: different_private_file_or_folder [inode=203981] 2020-09-07 14:28:45:778 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 QVariant(qlonglong, 2379251382556297252) 2020-09-07 14:28:45:778 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path, inode, modtime, type, md5, fileid, remotePerm, filesize, ignoredChildrenRemote, contentchecksumtype.name || ':' || contentChecksum, e2eMangledName, isE2eEncrypted FROM metadata LEFT JOIN checksumtype as contentchecksumtype ON metadata.contentChecksumTypeId == contentchecksumtype.id WHERE phash=?1"
So it looks like there's a sync on-going. It could be that it takes forever to complete.
Please try again with 3.0.2 when it is out and let us know, it might go back to normal then (an index is missing in the database which made things unfortunately longer than needed).
Hi there, I encountered probably the same issue, with constant cpu load of about 25%, today for the first time. After stop the process and start the client again it seems to be over. I will observe it furthermore.
I'm using the Desktop Client 3.0.2 on a Win10 Pro 1909
I will provide a log as soon i have one.
Similar issue with Desktop Client 3.1.1 and Windows 10 Pro version 20H2, build 19042.685. Task Manager shows 15% CPU of a Ryzen 4800H at 2 am in the morning. More suspicious is that when I "Exit Nextcloud" on the taskbar, there is still the task running in the task manager. And after the restart of the Desktop Client there are two instances of Nextcloud running in the Task Manager (see link below for screenshot). The CPU usage stays that high even when the Desktop Client is in sync with the NC.
I had a look at the properties of the process and it does not lead to "nextcloud.exe" as the client properties show (unfortunately I made no screenshot of the properties).
Is there any information about an NC virus or Crypto Miner?
https://drive.google.com/file/d/1nR9wtfHmu82hy-Ut4XZYT5a_q2tXVO43/view?usp=sharing
Hi, I am observing the same issue here. Average CPU utilization around 35%. Intel i5, 8Gb ram. Mine if a very small NC test installation. (around 100 files, I'm guessing) I ran procmon for 3 minutes and the only write activity I could see, were write actions to the logfile. The rest were reading some dll's and SSL libraries. Should you want to investigate further, I can share the NC link. Kind regs
same issue here. 20-25% CPU usage and Task Manager says very high power consumption. I am running NC Client 3.1.2 I also tried to locate the source file behind th task and it points to a file f9f0.rbf in the c:\config.msi folder. i googled that and it has something to do with role ack scripts to for when i would uninstall NC.
Any suugestions?
I had the same issue, only after updating.
It's actually a script 3d84d2fc.rbf ran by config.msi as @johannes314 state.
I made a full dump of the main process, if any dev. is interrested.
Same here, this is really not acceptable. My laptop constantly goes to leaf-blower mode because of the Nextcloud Client.


BTW could somebody escalate this issue? Just image how much energy is wasted because of thousands of computers running in constant 30% CPU load (for nothing), because of a software bug in the nextcloud client. Thats kind of shocking and probably not in line with the ethics and sustainability goals of nextcloud.
This seems to be triggered only after a client update. The updater spawns another process shown as Nextcloud in the task manager, which doesn't stop if you exit the Nextcloud client. Manually stopping the troublesome process makes it go away, and it doesn't seem to come back with normal use of the client.
I stopped and restarted the client (and the computer) several times after updating and it definitely did not go away, so, cannot confirm your theory.
Hello @tilllt, you are right, closing the client is not sufficient. But as @andreipoe and I some posts earlier have pointed out: There is an extra process for Nextcloud in the Task Manager that you can stop manually. Just look in the long list of processes in the Task Manager for the process that has a high CPU load and is also called Nextcloud (if I remember correctly). For sure, this is just an individual workaround and it would be nice if the Team from Desktop Client could have a look into this.
There is no extra process in my task manager related to NC - or it's name is completely untelated to NC and thus impossible to find (in the 100s of processes running on my machine). I will gladly try to stop if if somebody points me to the name. In process-explorer it looks to me as if the culprit is a QT5 related task but maybe i am wrong.
Just as an anecdote: my i7-7700HQ has a TDP of 45W, so JUST the CPU running at 30% will consume roughly 15W. FOR NOTHING. And this is a pretty power efficient machine. Just imagine if on a worldwide level, people have their CPU's running at 30% load, thats thousands of Watts blown out of the window.
@tobiasKaminsky @karlitschek @jancborchardt I think programmers are sometimes unaware of this type of repercusssions their work has.
EDIT: I am running Desktop Sync Client 3.1.3 on Win10 so even though the Issue mentions Version 3.0.1, this problem persists.
@tilllt I'm unable to reproduce this issue on my side for now. Could you please have a look at your Nextcloud installation directory (usually this directory is C:\Program Files\Nextcloud) if you have a folder named bearer with a file named qgenerbearer.dll in it? I ask because we had a report from a guy on OSX that had also high cpu usage and it was caused by this dll.
From the newer installs, we remove this dll but maybe for some reason it is still left on your machine.
Is there any information about an NC virus or Crypto Miner?
I just want to be clear on that: There is no virus or crypto-miner embedded into the client. The code is as you can see in the public domain and you can verify that yourself:)
@andreipoe Same here. Killing this process helps for the moment and i cant see a problem after that.
I solved the issue by completely uninstalling and reinstalling the Nextcloud Client. There was no "leftover" process running on my system at least nothing that i could identify in task manager / process explorer. In any case, it is something that the Client Team should probably investigate further. As said before, it is not acceptable that an idle process takes over 30% cpu. Manually killing a process in the task manager is merely a bad workaround but not a solution and nothing you can expect an average user to do.
@tilllt Was the bearer folder there before you uninstalled? It's sometimes really difficult to investigate further if you are not able to reproduce the problem and indeed it could be the case that the issues described here have different origins.