<?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: dropbox-core-sdk upload memory issues in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-core-sdk-upload-memory-issues/m-p/198046#M9154</link>
    <description>&lt;P&gt;Thanks for the report! We'll look into it. It looks like you also &lt;A href="https://github.com/dropbox/dropbox-sdk-java/issues/86" target="_self"&gt;posted this on GitHub&lt;/A&gt;, so we'll follow up there once we've reviewed this.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2016 04:44:01 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-12-16T04:44:01Z</dc:date>
    <item>
      <title>dropbox-core-sdk upload memory issues</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-core-sdk-upload-memory-issues/m-p/198045#M9153</link>
      <description>&lt;P&gt;I wrote simple app to test upload with&amp;nbsp;&lt;SPAN&gt;dropbox-core-sdk 2.1.2. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It opens stream from a file located at Dropbox&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;InputStream fileContentStream = getClient&lt;/SPAN&gt;().files().download(path).getInputStream();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and passes it to upload method (within same account, but should be same even for different accounts):&lt;/P&gt;&lt;PRE&gt;builder.uploadAndFinish(fileContentStream);&lt;/PRE&gt;&lt;P&gt;The problem is&amp;nbsp;memory consumption rapidly increases from 5MB to 192MB within 10 s., then app crashes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;I/art: Clamp target GC heap from 207MB to 192MB
I/art: HomogeneousSpaceCompact marksweep + semispace GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 624.881ms total 624.881ms
W/art: Throwing OutOfMemoryError "Failed to allocate a 12 byte allocation with 3680 free bytes and 3KB until OOM"&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;File size is 550MB. Allocation trace showing DbxUploadStyleBuilder.uploadAndFinish():92 is the main contributor; it breaks down to com.android.okhttp.okio.SegmentPool.take():46 which is allocating numerous byte[] chunks 12288 each until crash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Question: am I using the dropbox SDK not properly for&amp;nbsp;uploading of large files or it's an issue with SDK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:27:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-core-sdk-upload-memory-issues/m-p/198045#M9153</guid>
      <dc:creator>boxer</dc:creator>
      <dc:date>2019-05-29T09:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: dropbox-core-sdk upload memory issues</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-core-sdk-upload-memory-issues/m-p/198046#M9154</link>
      <description>&lt;P&gt;Thanks for the report! We'll look into it. It looks like you also &lt;A href="https://github.com/dropbox/dropbox-sdk-java/issues/86" target="_self"&gt;posted this on GitHub&lt;/A&gt;, so we'll follow up there once we've reviewed this.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 04:44:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-core-sdk-upload-memory-issues/m-p/198046#M9154</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-12-16T04:44:01Z</dc:date>
    </item>
  </channel>
</rss>

