OSS下载大文件内存溢出 Throwing OutOfMemoryError with VmSiz[阿里云oss]

使用Android OSS最新版本库com.aliyun.dpa:oss-android-sdk:2.9.12,流式异步下载440多兆的文件下载57%左右,会导致内存溢出,无法继续下载,SDK没有报任何异常。

系统异常: Throwing OutOfMemoryError with VmSize 2623704 kB “Failed to allocate a 536870924 byte allocation with 25165824 free bytes and 236MB until OOM, max allowed footprint 313698656, growth limit 536870912”

使用如下: OSSCredentialProvider credetialProvider = SmarthomeApplication.getCredetialProvider(); OSSClient oss = new OSSClient(getApplicationContext(), endPoint, credetialProvider);

    GetObjectRequest get = new GetObjectRequest(bucketName, fileName);

   
    get.setProgressListener((request, currentSize, totalSize) -> {

    });

    oss.asyncGetObject(get, new OSSCompletedCallback() {}

「点点赞赏,手留余香」

    还没有人赞赏,快来当第一个赞赏的人吧!
=====这是一个广告位,招租中,联系qq 78315851====