cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo Drive for Mac uses 100% CPU

Julio_Coelho
Champ in-the-making
Champ in-the-making

Nuxeo Drive for Mac uses 100% CPU all the time, consuming rapidly my battery, what can be done to minimize the CPU activity?

6 REPLIES 6

ataillefer_
Star Contributor
Star Contributor

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:

  • Try to minimize the volume of synchronized folders / files (maybe by making a more granular choice of the synchronized folders at a lower level in the document hierarchy).
  • Launch Drive with:
    • A big (let's say infinite) 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.
    • A bigger 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.

[ataillefer](https

Hi, could you please send us a bug report for us to investigate ? Thank you ( rcattiau@nuxeo.com )

[Rémi Cattiau](https

Antonio_Abreu
Champ in-the-making
Champ in-the-making

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.

Hi,

Getting started

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.