[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-dev
Subject:    [jira] [Commented] (AXIS2-2581) Too many open files error
From:       "luffy (JIRA)" <jira () apache ! org>
Date:       2013-11-07 2:35:19
Message-ID: JIRA.12367822.1177320706730.31958.1383791719451 () arcas
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/AXIS2-2581?page=com.atlassian.jira.plugin. \
system.issuetabpanels:comment-tabpanel&focusedCommentId=13815574#comment-13815574 ] 

luffy commented on AXIS2-2581:
------------------------------

I have same problem ,how to solve it.

> Too many open files error
> -------------------------
> 
> Key: AXIS2-2581
> URL: https://issues.apache.org/jira/browse/AXIS2-2581
> Project: Axis2
> Issue Type: Bug
> Components: client-api
> Affects Versions: nightly
> Environment: Linux version 2.6.15-26-amd64-k8, Java HotSpot(TM) 64-Bit Server VM \
>                 (build 1.5.0_08-b03, mixed mode)
> Reporter: Michele Mazzucco
> Priority: Blocker
> Attachments: TestIO.java
> 
> 
> I'm running out of sockets after a few minutes. The same client works fine on Mac \
> OS X (JMX 1.5.0_07). The client sends 2 requests type to the server(s):
> - type 1: 0.2 requests/second. Service time 50 seconds (avg)
> - type 2: 1.8 requets/seconds. Service time 5 seconds (avg).
> After about 10 minutes the client crashes because the client machine runs out of \
> sockets (ulimit -n = 1024): [java] ERROR Sender:logException ERROR!:
> [java] ncl.qosp.test.functional.client.Sender.logException(Unknown Source) ERROR \
> [pool-1-thread-1] - ERROR!: [java] ERROR Sender:run Failed send #20588
> [java] ncl.qosp.test.functional.client.Sender.run(Unknown Source) ERROR \
> [pool-1-thread-2] - Failed send #20588 [java] ERROR Sender:logException \
> org.apache.axis2.AxisFault: Too many open files; nested exception is: [java]     \
> java.net.SocketException: Too many open files [java]     at \
> org.apache.axis2.AxisFault.makeFault(AxisFault.java:321) [java]     at \
> org.apache.axis2.transport.http.SimpleHTTPServer.getEPRsForService(SimpleHTTPServer.java:263)
>  [java]     at org.apache.axis2.engine.ListenerManager.getEPRforService(ListenerManager.java:108)
>  [java]     at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:273)
>  [java]     at org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking(ServiceClient.java:633)
>  [java]     at org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking(ServiceClient.java:601)
>  [java]     at ncl.qosp.test.functional.client.Sender.run(Unknown Source)
> [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>  [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>  [java]     at java.lang.Thread.run(Thread.java:595)
> [java] Caused by: java.net.SocketException: Too many open files
> [java]     at java.net.NetworkInterface.getAll(Native Method)
> [java]     at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:204)
>  [java]     at org.apache.axis2.transport.http.server.HttpUtils.getIpAddress(HttpUtils.java:72)
>  [java]     at org.apache.axis2.transport.http.SimpleHTTPServer.getEPRsForService(SimpleHTTPServer.java:258)
>  [java]     ... 8 more
> All ServiceClient objects share the following ConfigurationContext:
> ConfigurationContext configurationContext = \
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); \
> HttpClient httpClient = new HttpClient(new MultiThreadedHttpConnectionManager()); \
> configurationContext.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE); \
> configurationContext.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient);



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic