Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
servicemix-http-2009.01, servicemix-http-2009.02, servicemix-http-2010.01
-
None
-
Linux 2.6.35-23-generic-pae #41-Ubuntu SMP i686 GNU/Linux
SMX- web app distribution
jboss 4.3
Description
Hi all! i have been facing a connection leak when using new http provider endpoints.
The component consumes linux kernel's file descriptors when provider endpoint points to non existing URL.
To test it, i have attached a single http proxy that consumes requests that are sent thro a http provider with a wrong target URL. it can be consumed using the following line:
wget *serviceURL* --post-data="<msg>amsg</msg>"
Each time a request is done, a file descriptor is consumed but released. It can be detected by counting consumed file descriptor:
ps aux |grep java # helps to determine which SMX process id
lsof -p *smxProcessId* | wc -l #counts smx file descriptors
As long requests are done, last command line will show an increasing usage fd count. Then maximum allowed file descriptor is reached, SMX stop working because it cant open any kind of connection.
Regards