weblogic简单问题一例
java.io.FileNotFoundException: /app/rms/release/web/update/Rmt_krUpfiles.ini (Too many open files)at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java(Compiled Code))
at weblogic.utils.classloaders.FileSource.getInputStream(FileSource.java(Compiled Code))
at weblogic.servlet.FileServlet.sendFile(FileServlet.java(Compiled Code))
at weblogic.servlet.FileServlet.service(FileServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java(Inlined Compiled Code))
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java(Compiled Code))
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java(Inlined Compiled Code))
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java(Compiled Code))
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java(Compiled Code))
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java(Inlined Compiled Code))
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java(Compiled Code))
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java(Compiled Code))
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java(Compiled Code))
>
####<2008-7-1 10时15分05秒 GMT+08:00> <Info> <HTTP> <sczyapp1> <zyserver01_8621> <ExecuteThread: '3' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> < LogfileSearch: init>
####<2008-7-1 10时15分06秒 GMT+08:00> <Notice> <WebLogicServer> <sczyapp1> <zyserver01_8621> <ListenThread.Default> <<WLS Kernel>> <> <BEA-000205> <After having failed to listen, the server is now listening on port 8621.>
####<2008-7-1 10时15分06秒 GMT+08:00> <Critical> <WebLogicServer> <sczyapp1> <zyserver01_8621> <ListenThread.Default> <<WLS Kernel>> <> <BEA-000204> <Failed to listen on port 8621, failure count: 1, failing for 0 seconds, java.net.SocketException: Too many open files>
####<2008-7-1 10时15分07秒 GMT+08:00> <Critical> <WebLogicServer> <sczyapp1> <zyserver01_8621> <ListenThread.Default> <<WLS Kernel>> <> <BEA-000204> <Failed to listen on port 8621, failure count: 2, failing for 1 seconds, java.net.SocketException: Too many open files>
####<2008-7-1 10时15分08秒 GMT+08:00> <Notice> <Log Management> <sczyapp1> <zyserver01_8621> <ExecuteThread: '3' for queue: 'weblogic.kernel.Default'> <weblogic> <> <BEA-170020> <Maximum number of messages (500) reached.>
####<2008-7-1 10时15分08秒 GMT+08:00> <Notice> <Log Management> <sczyapp1> <zyserver01_8621> <ExecuteThread: '3' for queue: 'weblogic.kernel.Default'> <weblogic> <> <BEA-170021> <Search complete.>
####<2008-7-1 10时15分09秒 GMT+08:00> <Notice> <WebLogicServer> <sczyapp1> <zyserver01_8621> <ListenThread.Default> <<WLS Kernel>> <> <BEA-000205> <After having failed to listen, the server is now listening on port 8621.>
####<2008-7-1 10时15分09秒 GMT+08:00> <Critical> <WebLogicServer> <sczyapp1> <zyserver01_8621> <ListenThread.Default> <<WLS Kernel>> <> <BEA-000204> <Failed to listen on port 8621, failure count: 1, failing for 0 seconds, java.net.SocketException: Too many open files>
####<2008-7-1 10时15分09秒 GMT+08:00> <Info> <Management> <sczyapp1> <zyserver01_8621> <ExecuteThread: '1' for queue: 'weblogic.admin.RMI'> <<WLS Kernel>> <> <BEA-141080> <A request has been received to force shut down of the server.>
####<2008-7-1 10时15分09秒 GMT+08:00> <Notice> <WebLogicServer> <sczyapp1> <zyserver01_8621> <ExecuteThread: '1' for queue: 'weblogic.admin.RMI'> <<WLS Kernel>> <> <BEA-000365> <Server state changed to SHUTTING_DOWN>
(Too many open files)
这个问题经过分析,可能是系统打开的文件数超过最大限制造成的.
通过看bea最大打开文件数限制,发现操作系统没有限制.
/bea #ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 4194304
memory(kbytes) unlimited
coredump(blocks) 2097151
nofiles(descriptors) unlimited
/bea #
------------------------------------
通过查询bea设置发现
/bea/weblogic81/common/bin/commEnv.sh中,设置了
resetFd
所以bea的最大打开文件数为默认的 1024
此问题只要注释掉resetFd,并重启服务器就可以解决.
页:
[1]