Uploaded image for project: 'Bitrepository'
  1. Bitrepository
  2. BITMAG-766

FileExchange cannot handle large files

    XMLWordPrintable

Details

    Description

      Currently it is not possible to use the commandline-client to perform the PutFile operation on large files (e.g. 300+ MB).
      Received the following error:

      Performing the PutFile operation.
      Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOf(Arrays.java:2798)
      at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:111)
      at sun.net.www.http.PosterOutputStream.write(PosterOutputStream.java:78)
      at org.bitrepository.common.utils.StreamUtils.copyInputStreamToOutputStream(StreamUtils.java:61)
      at org.bitrepository.protocol.http.HTTPFileExchange.performUpload(HTTPFileExchange.java:200)
      at org.bitrepository.protocol.http.HTTPFileExchange.uploadToServer(HTTPFileExchange.java:112)
      at org.bitrepository.commandline.PutFile.putTheFile(PutFile.java:147)
      at org.bitrepository.commandline.PutFile.performOperation(PutFile.java:98)
      at org.bitrepository.commandline.PutFile.main(PutFile.java:55)

      Attachments

        Activity

          People

            jolf Jonas Lindberg Frellesen (Inactive)
            jolf Jonas Lindberg Frellesen (Inactive)
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: