Can't open any project [SWT Exeption]

Hello!

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(SWT.java:4723)
at org.eclipse.swt.SWT.error(SWT.java:4638)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:262)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4735)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:219)
at com.kms.katalon.composer.project.handlers.OpenProjectHandler$1.run(OpenProjectHandler.java:171)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.lang.OutOfMemoryError: Java heap space

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

@mkonstantinow,

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!

PS.
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).

https://forum.katalon.com/search?expanded=true&q=-Xmx

1 Like

Cristal clear, thank you both @Russ_Thomas @duyluong