Symptom Description:
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:
- In the o2server/configSample directory, COPY the file to o2server/config: 1) dumprestoreData. json 2) dumprestoreStorage. json
- Change the batchSize values in both file configurations to 500 (default 2000)
- Restart the server and try exporting or importing again.