SUMMARY: File Descriptors

From: Sara SaiMohan (sarasai@hotmail.com)
Date: Wed Dec 20 2000 - 13:05:39 CST


Thank you very too all who replied...

Everybody suggested lsof tool, it helped thank you...

>lsof -p <pid of process>
>
>This will generate a list of all files open, with inode and names attached
>- you should just be able to pipe it through to wc, and get a 'count +1'
>of the number of open files. (The plus on is from the initial line it
>spews out to tell you what it's printing)
>
>ex:
>(root@web2){/} # lsof -p 12563 | wc -l
> 59
>(root@web2){/} #
>

My Original Question was

> > Hi Gurus,
> >
> > I have the ulimit set for file descriptors to 4096 max and 1024 current.
> >
> > but I am getting the following error when I am running my weblogic
>server
> > 5.1 EXPRESS on Solaris 8....
> >
> > Tue Dec 19 05:32:33 GMT+00:00 2000:<E> <ListenThread> Listen failed,
>failure
> > count: '2138'
> > java.net.SocketException: Too many open files
> > at java.net.PlainSocketImpl.socketAccept(Native Method)
> > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:406)
> > at java.net.ServerSocket.implAccept(ServerSocket.java:240)
> > at java.net.ServerSocket.accept(ServerSocket.java:224)
> > at weblogic.t3.srvr.ListenThread.run(ListenThread.java:277)
> >
> > is there any way I can find the no of file descriptors that are
>currently
> > used by the processes at any given time...
> >
> > fast help appreciated..
> >
> > THank you
> > Sai

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:25 CDT