Symptom Description:

OOM abnormal

Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit 
    at java.lang.StringCoding.encode(StringCoding.java.350)
    at java.lang.String.getBytes(String.java.941)
    at org.apache.commons.io.IOUtils.write(IOUtils.java:1527)
Copy the code

Solutions:

  1. In the o2server/configSample directory, COPY the file to o2server/config: 1) dumprestoreData. json 2) dumprestoreStorage. json
  2. Change the batchSize values in both file configurations to 500 (default 2000)
    Modifying a Configuration File
  3. Restart the server and try exporting or importing again.