Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » org.eclipse.swt.SWTError: No more handles(getting "No more handles" error with no resource leak)
org.eclipse.swt.SWTError: No more handles [message #770817] Sun, 25 December 2011 12:49 Go to next message
Eclipse Guest
Messages: 93
Registered: February 2013
Location: Vienna
Member
I'm new to SWTBot, I'm not sure if this is the right place but I thought the information I found is worth sharing and might interest others.

We are working with Jenkins as a CI tool. This server is connected to a VM running windows XP, it is used to automate our SWTBot tests.

After running 100 tests or so we started getting the "No more handles" error, since I know this issue I turned to sleak to search for a resource leak.
When I couldn't find a leak I followed the handles allocated to the process while the tests were running. I noticed that after 750 "USER Objects" were allocated to the process I started getting the "No more handles" error.

It seems that this error occurred because the Jenkins server is connected to the VM using a service, and in windows XP every non interactive service has a very low size of heap allocated to it that is easily exceeded when an eclipse process is running.

In windows XP the size of the heap allocated to a noninteractive service is configurable. For more information on how to do this see: http ://msdn.microsoft.com/en-us/library/ms682124.aspx
Re: org.eclipse.swt.SWTError: No more handles [message #770906 is a reply to message #770817] Sun, 25 December 2011 19:07 Go to previous message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
Hi Michael,

This is good information to have. Could you add in your observations on
the SWTBot wiki at http://wiki.eclipse.org/SWTBot/CI_Server?

Thanks a lot!

-- Ketan

On 12/25/11 4:49 AM, Michael Adada wrote:
> I'm new to SWTBot, I'm not sure if this is the right place but I thought
> the information I found is worth sharing and might interest others.
>
> We are working with Jenkins as a CI tool. This server is connected to a
> VM running windows XP, it is used to automate our SWTBot tests.
>
> After running 100 tests or so we started getting the "No more handles"
> error, since I know this issue I turned to sleak to search for a
> resource leak. When I couldn't find a leak I followed the handles
> allocated to the process while the tests were running. I noticed that
> after 750 "USER Objects" were allocated to the process I started getting
> the "No more handles" error.
>
> It seems that this error occurred because the Jenkins server is
> connected to the VM using a service, and in windows XP every non
> interactive service has a very low size of heap allocated to it that is
> easily exceeded when an eclipse process is running.
>
> In windows XP the size of the heap allocated to a noninteractive service
> is configurable. For more information on how to do this see: http
> ://msdn.microsoft.com/en-us/library/ms682124.aspx
Previous Topic:SWTBot Test Plugin RCPMailClient tutorial example fails
Next Topic:ComboBox in Popup window
Goto Forum:
  


Current Time: Tue Sep 23 12:29:19 GMT 2014

Powered by FUDForum. Page generated in 0.02474 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software