<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Nuxeo Drive for Mac uses 100% CPU in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314427#M1428</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;I have the same problem, and the settings provided do really bring the CPU usage down.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;An alternative way to launch the application with arguments, and not holding a Terminal window, is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;open -a /Applications/Nuxeo\ Drive.app --args --max-sync-step=1000000 --delay=60
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Nevertheless, I would prefer that the application would not refresh/reset the file &lt;CODE&gt;~/LIbrary/LaunchAgents/org.nuxeo.drive.plist&lt;/CODE&gt; every time it is (re)started and could enable the setting of these startup parameters (and others) in it, like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&amp;gt;
&amp;lt;plist version="1.0"&amp;gt;
&amp;lt;dict&amp;gt;
  &amp;lt;key&amp;gt;Label&amp;lt;/key&amp;gt;
  &amp;lt;string&amp;gt;org.nuxeo.drive.agentlauncher&amp;lt;/string&amp;gt;
  &amp;lt;key&amp;gt;RunAtLoad&amp;lt;/key&amp;gt;
  &amp;lt;true/&amp;gt;
  &amp;lt;key&amp;gt;Program&amp;lt;/key&amp;gt;
  &amp;lt;string&amp;gt;/Applications/Nuxeo Drive.app/Contents/MacOS/Nuxeo Drive&amp;lt;/string&amp;gt;
  &amp;lt;key&amp;gt;ProgramArguments&amp;lt;/key&amp;gt;
  &amp;lt;array&amp;gt;
    &amp;lt;string&amp;gt;--max-sync-step=1000000&amp;lt;/string&amp;gt;
    &amp;lt;string&amp;gt;--delay=60&amp;lt;/string&amp;gt;
  &amp;lt;/array&amp;gt;
&amp;lt;/dict&amp;gt;
&amp;lt;/plist&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks for the info.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2014 21:49:08 GMT</pubDate>
    <dc:creator>Antonio_Abreu</dc:creator>
    <dc:date>2014-01-29T21:49:08Z</dc:date>
    <item>
      <title>Nuxeo Drive for Mac uses 100% CPU</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314425#M1426</link>
      <description>&lt;P&gt;Nuxeo Drive for Mac uses 100% CPU all the time, consuming rapidly my battery, what can be done to minimize the CPU activity?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2013 01:40:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314425#M1426</guid>
      <dc:creator>Julio_Coelho</dc:creator>
      <dc:date>2013-11-29T01:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Drive for Mac uses 100% CPU</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314426#M1427</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I imagine that you have a lot of files in your Nuxeo Drive folder.
This is a known issue tracked by &lt;A href="https://jira.nuxeo.com/browse/NXP-10951"&gt;https://jira.nuxeo.com/browse/NXP-10951&lt;/A&gt; 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.&lt;/P&gt;
&lt;P&gt;As a workaround you can:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;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).&lt;/LI&gt;
&lt;LI&gt;Launch Drive with:
&lt;UL&gt;
&lt;LI&gt;A big (let's say infinite) &lt;CODE&gt;max-sync-step&lt;/CODE&gt;: 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.&lt;/LI&gt;
&lt;LI&gt;A bigger &lt;CODE&gt;delay&lt;/CODE&gt;: this is the delay in seconds between consecutive sync operations, to lower the frequency of local scans. Default value is 5 seconds.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You will need to use the command line for this, for instance:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;ndrive --max-sync-step=1000000 --delay=60
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2013 11:53:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314426#M1427</guid>
      <dc:creator>ataillefer_</dc:creator>
      <dc:date>2013-11-29T11:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Drive for Mac uses 100% CPU</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314427#M1428</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;I have the same problem, and the settings provided do really bring the CPU usage down.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;An alternative way to launch the application with arguments, and not holding a Terminal window, is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;open -a /Applications/Nuxeo\ Drive.app --args --max-sync-step=1000000 --delay=60
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Nevertheless, I would prefer that the application would not refresh/reset the file &lt;CODE&gt;~/LIbrary/LaunchAgents/org.nuxeo.drive.plist&lt;/CODE&gt; every time it is (re)started and could enable the setting of these startup parameters (and others) in it, like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&amp;gt;
&amp;lt;plist version="1.0"&amp;gt;
&amp;lt;dict&amp;gt;
  &amp;lt;key&amp;gt;Label&amp;lt;/key&amp;gt;
  &amp;lt;string&amp;gt;org.nuxeo.drive.agentlauncher&amp;lt;/string&amp;gt;
  &amp;lt;key&amp;gt;RunAtLoad&amp;lt;/key&amp;gt;
  &amp;lt;true/&amp;gt;
  &amp;lt;key&amp;gt;Program&amp;lt;/key&amp;gt;
  &amp;lt;string&amp;gt;/Applications/Nuxeo Drive.app/Contents/MacOS/Nuxeo Drive&amp;lt;/string&amp;gt;
  &amp;lt;key&amp;gt;ProgramArguments&amp;lt;/key&amp;gt;
  &amp;lt;array&amp;gt;
    &amp;lt;string&amp;gt;--max-sync-step=1000000&amp;lt;/string&amp;gt;
    &amp;lt;string&amp;gt;--delay=60&amp;lt;/string&amp;gt;
  &amp;lt;/array&amp;gt;
&amp;lt;/dict&amp;gt;
&amp;lt;/plist&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks for the info.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2014 21:49:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314427#M1428</guid>
      <dc:creator>Antonio_Abreu</dc:creator>
      <dc:date>2014-01-29T21:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Drive for Mac uses 100% CPU</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314428#M1429</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 15:43:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314428#M1429</guid>
      <dc:creator>ataillefer_</dc:creator>
      <dc:date>2014-01-31T15:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Drive for Mac uses 100% CPU</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314429#M1430</link>
      <description>&lt;P&gt;[ataillefer](https&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 08:30:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314429#M1430</guid>
      <dc:creator>mathias_lin</dc:creator>
      <dc:date>2017-02-10T08:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Drive for Mac uses 100% CPU</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314430#M1431</link>
      <description>&lt;P&gt;Hi, could you please send us a bug report for us to investigate ? Thank you ( rcattiau@nuxeo.com )&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 15:54:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314430#M1431</guid>
      <dc:creator>Rémi_Cattiau</dc:creator>
      <dc:date>2017-02-10T15:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Drive for Mac uses 100% CPU</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314431#M1432</link>
      <description>&lt;P&gt;[Rémi Cattiau](https&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 08:38:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-drive-for-mac-uses-100-cpu/m-p/314431#M1432</guid>
      <dc:creator>mathias_lin</dc:creator>
      <dc:date>2017-02-11T08:38:20Z</dc:date>
    </item>
  </channel>
</rss>

