You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by subh <su...@aol.com> on 2009/09/21 23:23:47 UTC

"Could not accept connection : java.net.SocketException: Too many open files" error

I am getting this error when I keep servicemix server running for few days.
What does it mean and how to correct that?

21:00:05,074 | DEBUG | pool-flow.seda.servicemix-eip-thread-304 | SedaQueue               
| .jbi.nmr.flow.seda.SedaQueue$1  132 |
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1ad9b54 dequeued
exchange: InOnly[
  id: ID:10.30.1.32-123ce1e79aa-4:151
  status: Done
  role: consumer
  service: {http://services.fuelquest.com/orderservice}orsfileservices
  endpoint: endpoint
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://services.fuelquest.com/orderservice}quartzservice:qrtzEndpoint</name><group>DEFAULT</group><fullname>DEFAULT.{http://services.fuelquest.com/orderservice}quartzservice:qrtzEndpoint</fullname><description/><fireTime>Mon
Sep 21 21:00:00 GMT 2009</fireTime></timer>
]
21:00:05,075 | DEBUG | pool-flow.seda.servicemix-eip-thread-304 |
QuartzComponent          | emix.common.AsyncBaseLifeCycle  561 | Received
exchange: status: Done, role: consumer
21:00:05,075 | DEBUG | pool-flow.seda.servicemix-eip-thread-304 |
QuartzComponent          | emix.common.AsyncBaseLifeCycle  623 | Retrieved
correlation id: ID:10.30.1.32-123ce1e79aa-4:151
21:00:16,869 | ERROR | ActiveMQ Transport Server:
tcp://10.30.1.40:61616?wireFormat.maxInactivityDuration=0 |
TransportConnector       | mq.broker.TransportConnector$1  233 | Could not
accept connection : java.net.SocketException: Too many open files
21:00:47,950 | ERROR | ActiveMQ Transport Server:
tcp://10.30.1.40:61616?wireFormat.maxInactivityDuration=0 |
TransportConnector       | mq.broker.TransportConnector$1  233 | Could not
accept connection : java.net.SocketException: Too many open files
21:01:18,932 | ERROR | ActiveMQ Transport Server:
tcp://10.30.1.40:61616?wireFormat.maxInactivityDuration=0 |
TransportConnector       | mq.broker.TransportConnector$1  233 | Could not
accept connection : java.net.SocketException: Too many open files
21:01:49,913 | ERROR | ActiveMQ Transport Server:
tcp://10.30.1.40:61616?wireFormat.maxInactivityDuration=0 |
TransportConnector       | mq.broker.TransportConnector$1  233 | Could not
accept connection : java.net.SocketException: Too many open files
21:02:05,249 | DEBUG | pool-component.servicemix-file-thread-2519 |
FileComponent            | icemix.file.FilePollerEndpoint  291 | Polling
directory ORS/InFile
21:02:05,249 | ERROR | pool-component.servicemix-file-thread-2519 |
FileComponent            | mmon.endpoints.PollingEndpoint  222 | Caught
exception while polling: java.lang.NullPointerException
java.lang.NullPointerException
        at
org.apache.servicemix.file.FilePollerEndpoint.pollFileOrDirectory(FilePollerEndpoint.java:293)
        at
org.apache.servicemix.file.FilePollerEndpoint.pollFileOrDirectory(FilePollerEndpoint.java:284)
        at
org.apache.servicemix.file.FilePollerEndpoint.poll(FilePollerEndpoint.java:100)
        at
org.apache.servicemix.common.endpoints.PollingEndpoint$PollSchedulerTask$1.run(PollingEndpoint.java:202)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
21:02:20,893 | ERROR | ActiveMQ Transport Server:
tcp://10.30.1.40:61616?wireFormat.maxInactivityDuration=0 |
TransportConnector       | mq.broker.TransportConnector$1  233 | Could not
accept connection : java.net.SocketException: Too many open files

-- 
View this message in context: http://www.nabble.com/%22Could-not-accept-connection-%3A-java.net.SocketException%3A-Too-many-open-files%22-error-tp25530491p25530491.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: "Could not accept connection : java.net.SocketException: Too many open files" error

Posted by Stan Lewis <st...@progress.com>.
Increase the resource limit for open files (ulimit -n) and also maybe turn
off multicast discovery in activemq.xml

On Sep 21, 2009 5:24 PM, "subh" <su...@aol.com> wrote:


I am getting this error when I keep servicemix server running for few days.
What does it mean and how to correct that?

21:00:05,074 | DEBUG | pool-flow.seda.servicemix-eip-thread-304 | SedaQueue
| .jbi.nmr.flow.seda.SedaQueue$1  132 |
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1ad9b54 dequeued
exchange: InOnly[
 id: ID:10.30.1.32-123ce1e79aa-4:151
 status: Done
 role: consumer
 service: {http://services.fuelquest.com/orderservice}orsfileservices
 endpoint: endpoint
 in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{
http://services.fuelquest.com/orderservice}quartzservice:qrtzEndpoint
</name><group>DEFAULT</group><fullname>DEFAULT.{
http://services.fuelquest.com/orderservice}quartzservice:qrtzEndpoint
</fullname><description/><fireTime>Mon
Sep 21 21:00:00 GMT 2009</fireTime></timer>
]
21:00:05,075 | DEBUG | pool-flow.seda.servicemix-eip-thread-304 |
QuartzComponent          | emix.common.AsyncBaseLifeCycle  561 | Received
exchange: status: Done, role: consumer
21:00:05,075 | DEBUG | pool-flow.seda.servicemix-eip-thread-304 |
QuartzComponent          | emix.common.AsyncBaseLifeCycle  623 | Retrieved
correlation id: ID:10.30.1.32-123ce1e79aa-4:151
21:00:16,869 | ERROR | ActiveMQ Transport Server:
tcp://10.30.1.40:61616?wireFormat.maxInactivityDuration=0 |
TransportConnector       | mq.broker.TransportConnector$1  233 | Could not
accept connection : java.net.SocketException: Too many open files
21:00:47,950 | ERROR | ActiveMQ Transport Server:
tcp://10.30.1.40:61616?wireFormat.maxInactivityDuration=0 |
TransportConnector       | mq.broker.TransportConnector$1  233 | Could not
accept connection : java.net.SocketException: Too many open files
21:01:18,932 | ERROR | ActiveMQ Transport Server:
tcp://10.30.1.40:61616?wireFormat.maxInactivityDuration=0 |
TransportConnector       | mq.broker.TransportConnector$1  233 | Could not
accept connection : java.net.SocketException: Too many open files
21:01:49,913 | ERROR | ActiveMQ Transport Server:
tcp://10.30.1.40:61616?wireFormat.maxInactivityDuration=0 |
TransportConnector       | mq.broker.TransportConnector$1  233 | Could not
accept connection : java.net.SocketException: Too many open files
21:02:05,249 | DEBUG | pool-component.servicemix-file-thread-2519 |
FileComponent            | icemix.file.FilePollerEndpoint  291 | Polling
directory ORS/InFile
21:02:05,249 | ERROR | pool-component.servicemix-file-thread-2519 |
FileComponent            | mmon.endpoints.PollingEndpoint  222 | Caught
exception while polling: java.lang.NullPointerException
java.lang.NullPointerException
       at
org.apache.servicemix.file.FilePollerEndpoint.pollFileOrDirectory(FilePollerEndpoint.java:293)
       at
org.apache.servicemix.file.FilePollerEndpoint.pollFileOrDirectory(FilePollerEndpoint.java:284)
       at
org.apache.servicemix.file.FilePollerEndpoint.poll(FilePollerEndpoint.java:100)
       at
org.apache.servicemix.common.endpoints.PollingEndpoint$PollSchedulerTask$1.run(PollingEndpoint.java:202)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
       at java.lang.Thread.run(Thread.java:619)
21:02:20,893 | ERROR | ActiveMQ Transport Server:
tcp://10.30.1.40:61616?wireFormat.maxInactivityDuration=0 |
TransportConnector       | mq.broker.TransportConnector$1  233 | Could not
accept connection : java.net.SocketException: Too many open files

--
View this message in context:
http://www.nabble.com/%22Could-not-accept-connection-%3A-java.net.SocketException%3A-Too-many-open-files%22-error-tp25530491p25530491.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.