Chinaunix首页 | 论坛 | 博客
  • 博客访问: 179209
  • 博文数量: 1
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 390
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-17 09:22
文章存档

2008年(1)

我的朋友

分类:

2008-11-27 10:38:09

weblogic Too many open files 问题
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.(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> <> <> <[ServletContext(id=1250043234,name=wl_management_internal1,context-path=/wl_management_internal1)] LogfileSearch: init>
####<2008-7-1 10时15分06秒 GMT+08:00> <> <>
####<2008-7-1 10时15分06秒 GMT+08:00> <> <>
####<2008-7-1 10时15分07秒 GMT+08:00> <> <>
####<2008-7-1 10时15分08秒 GMT+08:00> <>
####<2008-7-1 10时15分08秒 GMT+08:00> <>
####<2008-7-1 10时15分09秒 GMT+08:00> <> <>
####<2008-7-1 10时15分09秒 GMT+08:00> <> <>
####<2008-7-1 10时15分09秒 GMT+08:00> <> <>
####<2008-7-1 10时15分09秒 GMT+08:00> <> <>
 (Too many open files)
这个问题经过分析,可能是系统打开的文件数超过最大限制造成的.
通过看bea最大打开文件数限制,发现操作系统没有限制(最好修改操作系统也修改weblogic的配置).
[bea@sczyapp1]/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@sczyapp1]/bea #
------------------------------------
通过查询bea设置发现
/bea/weblogic81/common/bin/commEnv.sh中,设置了
resetFd
所以bea的最大打开文件数为默认的 1024
此问题只要注释掉resetFd,并重启服务器就可以解决.
 
系统默认的shell中写的是小与,将shell中的逻辑修改一下也可以(就是修改 /bea/weblogic81/common/bin/commEnv.sh 脚本)
阅读(5813) | 评论(1) | 转发(0) |
0

上一篇:没有了

下一篇:没有了

给主人留下些什么吧!~~

chinaunix网友2008-12-10 17:21:02

谢谢,我的问题和你一样,不知道是否可能解决,期待中,我已经按照你的方法设置了一下