帮助处理 pfiles 输出
我将应用程序部署在安装在 Solaris 上的 Weblogic 10.3 上。一段时间后,我开始看到“打开文件太多”异常,这会导致许多问题。我获取了 pfiles 输出,几乎所有输出都充满了类似于以下内容的行:
1489: S_IFCHR mode:0000 dev:299,0 ino:51621 uid:0 gid:0 rdev:202,1966
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1490: S_IFCHR mode:0000 dev:299,0 ino:51619 uid:0 gid:0 rdev:202,1967
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1491: S_IFCHR mode:0000 dev:299,0 ino:53648 uid:0 gid:0 rdev:202,1968
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1492: S_IFCHR mode:0000 dev:299,0 ino:51618 uid:0 gid:0 rdev:202,1969
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1493: S_IFCHR mode:0000 dev:299,0 ino:51617 uid:0 gid:0 rdev:202,1970
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1494: S_IFCHR mode:0000 dev:299,0 ino:51616 uid:0 gid:0 rdev:202,1971
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1495: S_IFCHR mode:0000 dev:299,0 ino:39102 uid:0 gid:0 rdev:202,1972
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
你知道这些行试图告诉我们什么吗?
注意:根据评论中的要求,我在下面添加了“ls -li /devices/pci@7c0/pci@0/network@4:bge0”输出:
# ls -li /devices/pci@7c0/pci@0/network@4:bge0
105906182 crw-rw-rw- 1 root sys 202, 1 Jul 1 09:34 /devices/pci@7c0/pci@0/network@4:bge0
# ls -li /devices/pci@7c0/pci@0/network@4:bge0
105906182 crw-rw-rw- 1 root sys 202, 1 Jul 1 09:34 /devices/pci@7c0/pci@0/network@4:bge0
# ls -li /devices/pci@7c0/pci@0/network@4:bge0
105906182 crw-rw-rw- 1 root sys 202, 1 Jul 1 09:34 /devices/pci@7c0/pci@0/network@4:bge0
I deployed my application on a Weblogic 10.3 which is installed on a solaris. After a while I began to see "Too many open files" exceptions which yields to numerious problems. I took a pfiles output and nearly all the output is filled with lines which are similar to these:
1489: S_IFCHR mode:0000 dev:299,0 ino:51621 uid:0 gid:0 rdev:202,1966
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1490: S_IFCHR mode:0000 dev:299,0 ino:51619 uid:0 gid:0 rdev:202,1967
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1491: S_IFCHR mode:0000 dev:299,0 ino:53648 uid:0 gid:0 rdev:202,1968
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1492: S_IFCHR mode:0000 dev:299,0 ino:51618 uid:0 gid:0 rdev:202,1969
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1493: S_IFCHR mode:0000 dev:299,0 ino:51617 uid:0 gid:0 rdev:202,1970
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1494: S_IFCHR mode:0000 dev:299,0 ino:51616 uid:0 gid:0 rdev:202,1971
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
1495: S_IFCHR mode:0000 dev:299,0 ino:39102 uid:0 gid:0 rdev:202,1972
O_RDWR
/devices/pci@7c0/pci@0/network@4:bge0
Do you have any idea what these lines are trying to tell us?
Note: As requested in comments, I added "ls -li /devices/pci@7c0/pci@0/network@4:bge0" output below:
# ls -li /devices/pci@7c0/pci@0/network@4:bge0
105906182 crw-rw-rw- 1 root sys 202, 1 Jul 1 09:34 /devices/pci@7c0/pci@0/network@4:bge0
# ls -li /devices/pci@7c0/pci@0/network@4:bge0
105906182 crw-rw-rw- 1 root sys 202, 1 Jul 1 09:34 /devices/pci@7c0/pci@0/network@4:bge0
# ls -li /devices/pci@7c0/pci@0/network@4:bge0
105906182 crw-rw-rw- 1 root sys 202, 1 Jul 1 09:34 /devices/pci@7c0/pci@0/network@4:bge0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您的应用程序正在打开它永远不会关闭的套接字。检查您的应用程序。
Looks like your application is opening sockets that it never closes. Check your app.