java.lang.OutOfMemoryError: PermGen space

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

java.lang.OutOfMemoryError: PermGen space

Postby EDWARD BOLLES » Tue Jun 17, 2008 10:16 am

WindowTester: WindowTesterPro_v3.0.1.200806101125
Eclipse: Eclipse SDK
Use: Evaluation

When I play the following script, I get error: "java.lang.OutOfMemoryError: PermGen space" at the line indicated below.


public class simulateScript extends UITestCaseSWT {

* Main test method.
public void testsimulateScript() throws Exception {
IUIContext ui = getUI();
// import project ---------------------------------------------------
ui.contextClick(new SWTWidgetLocator(Tree.class, new ViewLocator(
ui.wait(new ShellShowingCondition("Import")); FilteredTreeItemLocator("General")); FilteredTreeItemLocator(
"General/Existing Projects into Workspace")); ButtonLocator("&Next >")); SWTWidgetLocator(Text.class, 0, new SWTWidgetLocator(
ui.keyClick(WT.CR); ButtonLocator("&Finish"));
ui.wait(new ShellDisposedCondition("Import"));

// open BPEL file to canvas ------------------------, new TreeItemLocator(
"Tutorial/bpel/loanProcessCompleted.bpel", new ViewLocator(
"org.eclipse.ui.navigator.ProjectExplorer"))); // ERROR IS TRIGGERED HERE ContributedToolItemLocator(
"com.RCPapplication.bpep.start_simulation")); CTabItemLocator("Debug")); ContributedToolItemLocator(
"org.eclipse.debug.ui.commands.StepInto")); ContributedToolItemLocator(
"org.eclipse.debug.ui.commands.StepInto")); ContributedToolItemLocator(
"org.eclipse.debug.ui.commands.StepInto")); CTabItemLocator("loanProcessCompleted.bpel")); ContributedToolItemLocator(
ui.close(new CTabItemLocator("loanProcessCompleted.bpel")); TreeItemLocator("Tutorial", new ViewLocator(
ui.contextClick(new TreeItemLocator("Tutorial", new ViewLocator(
"org.eclipse.ui.navigator.ProjectExplorer")), "Delete");
ui.wait(new ShellShowingCondition("Confirm Project Delete")); ButtonLocator("&Yes"));
ui.wait(new ShellDisposedCondition("Confirm Project Delete"));
ui.wait(new ShellDisposedCondition("Progress Information"));
ui.wait(new ShellShowingCondition("Deleting resources"));
ui.wait(new ShellDisposedCondition("Deleting resources"));


The complete error message is:

Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
Exception in thread "WT Test Thread" java.lang.OutOfMemoryError: PermGen space
Exception in thread "WorkbenchTestable" org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.OutOfMemoryError: PermGen space)
java.lang.OutOfMemoryError: PermGen space
Exception in thread "ShutdownHook" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Thread-3" java.lang.OutOfMemoryError: PermGen space

I have tried boosting my numbers in the RecordDialogue->Arguments->VM Argument field but I always get the same OutofMemoryError.

Could you clue me as to where the bug is and if there is any way to get around it?

Last edited by EDWARD BOLLES on Thu Jun 26, 2008 9:12 am, edited 1 time in total.
Posts: 7
Joined: Tue Jun 17, 2008 9:02 am

Re: java.lang.OutOfMemoryError: PermGen space

Postby Phil Quitslund » Fri Jun 20, 2008 12:38 pm

Boosting memory, as you tried, is the way to go. I think you'll want to do it in the launch configuration for the test itself ("simulateScript"). If this does not remedy the problem, please send a bug report to support:

Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest