Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
#!/bin/bash
  
java -jar duracloudsync-{version}.jar -x [parameters] >> ~/synctool-output.log 2>&1

The -x parameter is included here to ensure the Sync Tool exists after completing its run.

 

Large Datasets and Out of Memory Errors

When using the synctool to transmit datasets with large number of files (ie  greater than one million items)  users occassionally run into out of memory errors.   Users with sufficient memory resources on their machines can usually remedy this problem by increasing the maximum heap space available to the JVM.

We recommend starting with a max heap space of at least  1.5 GB.   If you're still running into issues,  try increasing by 500MB until the problem ceases to manifest.  To increase the heap space use the -Xmx java option.  Click for more information on setting the heap space.

Code Block
#!/bin/bash
 
#for 1GB 
java -Xmx1024m  -jar duracloudsync-{version}.jar [parameters]
#or 
java -Xmx1g  -jar ...
#for 2GB 
java -Xmx2048m  ...
#or 
java -Xmx2g  ...