We are receiving the below error or similar when running Smartstor Tool:
java.lang.OutOfMemoryError: Java heap space
at java.lang.String.<init>(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
APM 10.8.*
It is normal to see the Out of memory error when you run the stock script as it needs to load entire SmartStor data into memory first before executing any commands.
1.Open SmartStorTools.sh in a text editor
2.Look for the below line:
JAVA_OPTS=-Xmx512m; export JAVA_OPTS
3.Change to:
JAVA_OPTS=-Xmx1500m; export JAVA_OPTS
4.Save the changes and rerun the script
If the OOM error still happens, just repeat above steps until suitable heap size is found