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 GuestFriend
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 messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
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
Re: org.eclipse.swt.SWTError: No more handles [message #1695962 is a reply to message #770906] Wed, 20 May 2015 15:22 Go to previous messageGo to next message
Franck Malartic is currently offline Franck MalarticFriend
Messages: 7
Registered: September 2012
Junior Member
Hi,

I ran into the same problem, using tycho + SWTBot with Jenkins.
Tests run fine when started locally (mvn verify) but fails with Jenkins with SWTError: no more handles.
The Jenkins slave uses sshd/cygwin (as a service).
The solution I found is here: http://stackoverflow.com/questions/507853/system-error-code-8-not-enough-storage-is-available-to-process-this-command
It consists in increasing the heap size if the sshd service by modifying the registry key \System\CurrentControlSet\Control\Session Manager\SubSystem\Windows.

Thanks for the information above which guided me towards the solution.
Re: org.eclipse.swt.SWTError: No more handles [message #1695963 is a reply to message #770906] Wed, 20 May 2015 15:23 Go to previous message
Franck Malartic is currently offline Franck MalarticFriend
Messages: 7
Registered: September 2012
Junior Member
Edit: sorry for the double post. Can I delete this message ?

[Updated on: Wed, 20 May 2015 15:24]

Report message to a moderator

Previous Topic:SWTBot tests for an SWTBrowser component
Goto Forum:
  


Current Time: Sat May 23 16:31:45 GMT 2015

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

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