帮助处理 pfiles 输出

发布于 2024-11-30 07:46:03 字数 1513 浏览 1 评论 0原文

我将应用程序部署在安装在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许仙没带伞 2024-12-07 07:46:03

看起来您的应用程序正在打开它永远不会关闭的套接字。检查您的应用程序。

Looks like your application is opening sockets that it never closes. Check your app.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文