11-28-2013 08:40 PM
Nuxeo Drive for Mac uses 100% CPU all the time, consuming rapidly my battery, what can be done to minimize the CPU activity?
11-29-2013 06:53 AM
Hi,
I imagine that you have a lot of files in your Nuxeo Drive folder. This is a known issue tracked by https://jira.nuxeo.com/browse/NXP-10951 on which we have planned to work at the beginning of next year: for now the client spends a lot of time scanning the file system to detect changes, whereas it should use a notification mechanism to get informed of the actual changes, which would obviously eat less CPU and battery.
As a workaround you can:
max-sync-step
: this is the number of documents to synchronize before refereshing the local DB, remotely and locally, so if you set this parameter as large enough to cover the total number of local files / folders, Drive will synchronize all of them before doing a local scan. The default value is 10.delay
: this is the delay in seconds between consecutive sync operations, to lower the frequency of local scans. Default value is 5 seconds.You will need to use the command line for this, for instance:
ndrive --max-sync-step=1000000 --delay=60
Hope this helps.
02-10-2017 03:30 AM
[ataillefer](https
02-10-2017 10:54 AM
Hi, could you please send us a bug report for us to investigate ? Thank you ( rcattiau@nuxeo.com )
02-11-2017 03:38 AM
[Rémi Cattiau](https
01-29-2014 04:49 PM
Hi.
I have the same problem, and the settings provided do really bring the CPU usage down.
However, the way it is being instructed to launch the application locks a Terminal window while the application is running. It only returns to the prompt when you quit the nuxeo-drive App... and if you close the Terminal window, the application dies.
An alternative way to launch the application with arguments, and not holding a Terminal window, is:
open -a /Applications/Nuxeo\ Drive.app --args --max-sync-step=1000000 --delay=60
Nevertheless, I would prefer that the application would not refresh/reset the file ~/LIbrary/LaunchAgents/org.nuxeo.drive.plist
every time it is (re)started and could enable the setting of these startup parameters (and others) in it, like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.nuxeo.drive.agentlauncher</string>
<key>RunAtLoad</key>
<true/>
<key>Program</key>
<string>/Applications/Nuxeo Drive.app/Contents/MacOS/Nuxeo Drive</string>
<key>ProgramArguments</key>
<array>
<string>--max-sync-step=1000000</string>
<string>--delay=60</string>
</array>
</dict>
</plist>
Thanks for the info.
01-31-2014 10:43 AM
Hi,
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.