Skip to content

Out of memory error: Java heap space #42

@DJvBatCG

Description

@DJvBatCG

The backup tool works fine for a long time, but this morning I got this error. I cannot tell what the cause of this error is looking at the error message. The user where the backup is busy with, has a couple of sheets and a lot of large workspaces and uses a lot of attachments. What can I do to get this backup tool running again, if I can do that?

Below is the erroor message:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.StringCoding.safeTrim(Unknown Source)
at java.lang.StringCoding.access$100(Unknown Source)
at java.lang.StringCoding$StringDecoder.decode(Unknown Source)
at java.lang.StringCoding.decode(Unknown Source)
at java.lang.String.(Unknown Source)
at java.io.ByteArrayOutputStream.toString(Unknown Source)
at com.smartsheet.utils.HttpUtils.getJsonPayload(HttpUtils.java:76)
at com.smartsheet.restapi.service.RestfulSmartsheetService.getJsonPayload(RestfulSmartsheetService.java:85)
at com.smartsheet.restapi.service.RestfulSmartsheetService.getSheetDetails(RestfulSmartsheetService.java:67)
at com.smartsheet.restapi.service.RetryingSmartsheetService.getSheetDetails(RetryingSmartsheetService.java:96)
at com.smartsheet.restapi.service.ErrorContextualizingSmartsheetService.getSheetDetails(ErrorContextualizingSmartsheetService.java:68)
at com.smartsheet.tools.SmartsheetBackupService.saveSheetToFolder(SmartsheetBackupService.java:230)
at com.smartsheet.tools.SmartsheetBackupService.createFoldersRecursively(SmartsheetBackupService.java:342)
at com.smartsheet.tools.SmartsheetBackupService.backupTo(SmartsheetBackupService.java:196)
at com.smartsheet.tools.SmartsheetBackupService.assumeUserAndBackup(SmartsheetBackupService.java:160)
at com.smartsheet.tools.SmartsheetBackupService.backupOrgTo(SmartsheetBackupService.java:122)
at com.smartsheet.tools.SmartsheetBackupTool.main(SmartsheetBackupTool.java:107)

I run Java Version 8 update 321 on a Win10pro machine with 16gb ram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions