Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.
This repository was archived by the owner on May 25, 2025. It is now read-only.

Large number of files to 'put' blows JVM heap #228

@markjfisher

Description

@markjfisher

Environment info

groovy-ssh-2.8.0 (java-1.8.0_111, groovy-2.4.7, jsch-0.1.54)

Steps to reproduce

  1. 'put' a directory with large number of files and directories

I'm using put to copy a directory of exploded EARs to target destinations.

The directory I'm trying to push has 58k files (largest directory depth 19). When trying to send, the code that creates the instructions to execute through the connection eventually kills the JVM process with heap errors.

My work-around is to compress the directory into a single file, push that, then decompress on the target, but this is adding overhead (even with 'store' of zip it's adding ~60 seconds to the process).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions