Troubleshooting
Problem
Java heap space errors reported when building a resource in WCA Studio. See stack trace under Symptom.
Symptom
java.lang.OutOfMemoryError: Java heap space
at java.lang.StringBuilder.<init>(StringBuilder.java:78)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.lookUpHandler(HandlerServiceImpl.java:91)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.isEnabled(HandlerServiceHandler.java:49)
at org.eclipse.core.commands.Command.isEnabled(Command.java:862)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.canExecute(HandlerServiceImpl.java:174)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.canExecuteItem(HandledContributionItem.java:864)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$2(HandledContributionItem.java:853)
Cause
Eclipse, which is the platform upon which Studio is built, has an insufficient heap size allocated to it.
Environment
Linux
Watson Content Analytics Studio (WCA) 3.5
Resolving The Problem
To resolve the problem, please increase the max heap size in the eclipse.ini file. To locate the eclipse.ini file, see instructions below:
- Manually: If the Eclipse IDE is downloaded manually from internet, the "eclipse.ini" file is located just inside the unpacked folder.
- Terminal: If Eclipse has been installed via a terminal or through the software centre, the location of the file will be "/etc/eclipse.ini".
- Linux: In Linux, the file can be found at the following location; "/usr/share/eclipse/eclipse.ini". Do not use this file if you found a config file at "/etc/eclipse.ini".
- $ECLIPSE_HOME: The Eclipse folder can also be located in the $ECLIPSE_HOME environment variable, which will point to the Eclipse directory.
- PATH Environment Variable: If the location of the Eclipse folder is not specified in any of the above location, then please follow the steps below:
1. Open Eclipse.
2. Click Help -> About Eclipse SDK.
3. Click Installation Details.
4. Go to the Configuration tab.
5. Find "eclipse.home.location=file:PATH".
PATH is the environment variable that points to the directory where eclipse is installed.
6. From the PATH variable, locate the eclipse.ini file and double the heap size. So for example, if the default heap size is 512, double this to 1024, or if the default heap size is 1024, increase it to 2048, etc.
7. Restart the server.
This should resolve the issue.
Note: Backup the original eclipse.ini file before making changes.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21998150