Can't open any project [SWT Exeption]


I am using Katalon Studio for two years for testing frontend of my web aplication. I have made many test cases and everything been great since last week when I saw that I can not open any project.

I am running Katalon Studio as always, as administrator, an then I open project. But now when I try to do it i have an error message:

in Details:
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.OutOfMemoryError: Java heap space)
at org.eclipse.swt.SWT.error(
at org.eclipse.swt.SWT.error(
at org.eclipse.swt.widgets.Synchronizer.syncExec(
at org.eclipse.ui.internal.UISynchronizer.syncExec(
at org.eclipse.swt.widgets.Display.syncExec(
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(
at com.kms.katalon.composer.project.handlers.OpenProjectHandler$
at org.eclipse.jface.operation.ModalContext$
Caused by: java.lang.OutOfMemoryError: Java heap space

Please help me handle this. My entire two-year work is now ruined


You can open katalon.ini file under Katalon Studio application folder, update the value:

-Xmx2048m to -Xmx4096m

Then save the file and reopen Katalon Studio again.

1 Like

Thank you @duyluong that was the solution! You are the best!

Will it be a big bother if I ask you to explain where this problem came from and why this solution is helpful?
Iā€™m just curious.

-XmxNNNNm Sets the size of the memory heap where m means MegaBytes.

Those args allow the maximum heap size to grow to 2048 MB and 4096MB, respectively. So @duyluong is suggesting you double the current value to 4096MB (4GB).

1 Like

Cristal clear, thank you both @Russ_Thomas @duyluong

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.