I am using Jersey client for http-based request. It works well if the file is small but run into error when I post a file with size of 700M:
Exception in thr
If possible, can you split the file you send into smaller parts? This will reduce memory usage, but you need to change the code on both sides of the uploading/downloading code.
If you can't, then your heap space is too low, try increasing it with this JVM parameter. In your application server add/change the Xmx
JVM options. For example
-Xmx1024m
to set Max Heap Space to 1Gb