IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
  • 1 reply
  • Latest Post - ‏2012-05-04T01:29:36Z by U4UE_xie_zhi
3 Posts

Pinned topic Too many open files under the java_IO_temp folder defined for tomcat

‏2012-05-03T09:16:04Z |
I have a problem in Linux 2.6. There are a lot temp empty files under the java_IO_temp folder defined for tomcat. They are marked as "deleted", but still referred by java process.
I guess the files are created when there is a network problem and printer is not reachable.

I want to know
1) Most of the files on the lsof output was marked deleted. Why is java not releasing the handle of those files which are marked as deleted.
2) If we find the API and if it is one of the default java API's is there a way to disable java_IO_temp behavior. As there is no benefit and the store prints their report again if they do not see it on the printer.
3) what's the behavior of sun.print.UnixPrintServiceLookup.execCmd()

There is an exception about this problem.

Apr 23, 2012 11:11:18 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop
WARNING: RMI TCP Accept-12001: accept loop for
ServerSockethttp://addr=/,port=0,localport=12001 throws
Throwable occurred: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:431)
at java.net.ServerSocket.implAccept(ServerSocket.java:464)
at java.net.ServerSocket.accept(ServerSocket.java:432)
at java.lang.Thread.run(Thread.java:736)
Apr 23, 2012 11:11:49 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop
Updated on 2012-05-04T01:29:36Z at 2012-05-04T01:29:36Z by U4UE_xie_zhi
  • U4UE_xie_zhi
    3 Posts

    Re: Too many open files under the java_IO_temp folder defined for tomcat

    I got the answer. There is a technote about JDK SR9