Mon anglais est comme 3 ans bébé.Pool de fichiers (comme Pool de connexions)
Récemment, j'ai créé un site Web avec plusieurs accès aux fichiers.
Malheureusement, mon tomcat m'a donné ce message d'erreur suivant
Fatal: Socket accept failed
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408)
at java.net.ServerSocket.implAccept(ServerSocket.java:462)
at java.net.ServerSocket.accept(ServerSocket.java:430)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)
at java.lang.Thread.run(Thread.java:662)
org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
Cela se produit lorsque j'envoie la demande en peu de temps, je pense qu'il y trop de flux ouvert pour ce travail.
Est-ce que quelqu'un sait comment résoudre ce problème?
Mon environnement sont {tomcat 6.0.35, java 1.6.0_31, centos 5} Ah, cela se produit uniquement sous Linux;
merci.
besoin de ma folle source, – jeon
s'il vous plaît laissez vous votre email. – jeon
Possible dupliqué [Linux: socket accept - "Trop de fichiers ouverts"] (http://stackoverflow.com/q/880557/651140) –