[root@ansy zivilyn]# lsof | grep "*.c*" -i
dhclient 1496 root 5u IPv4 726 0t0 UDP *:bootpc
dhclient 1496 root 20u IPv4 704 0t0 UDP *:33898
dhclient 1496 root 21u IPv6 705 0t0 UDP *:15731
sshd 1615 root 3u IPv4 2796 0t0 TCP *:ssh (LISTEN)
sshd 1615 root 4u IPv6 2798 0t0 TCP *:ssh (LISTEN)
ntpd 1626 ntp 16u IPv4 839 0t0 UDP *:ntp
ntpd 1626 ntp 17u IPv6 840 0t0 UDP *:ntp
mysqld 1793 mysql 10u IPv4 930 0t0 TCP *:mysql (LISTEN)
dovecot 1825 root 17u IPv4 959 0t0 TCP *:pop3 (LISTEN)
dovecot 1825 root 18u IPv6 960 0t0 TCP *:pop3 (LISTEN)
dovecot 1825 root 19u IPv4 961 0t0 TCP *:pop3s (LISTEN)
dovecot 1825 root 20u IPv6 962 0t0 TCP *:pop3s (LISTEN)
dovecot 1825 root 25u IPv4 967 0t0 TCP *:imap (LISTEN)
dovecot 1825 root 26u IPv6 968 0t0 TCP *:imap (LISTEN)
dovecot 1825 root 27u IPv4 969 0t0 TCP *:imaps (LISTEN)
dovecot 1825 root 28u IPv6 970 0t0 TCP *:imaps (LISTEN)
master 1925 root 12u IPv4 5207 0t0 TCP *:smtp (LISTEN)
master 1925 root 13u IPv6 5209 0t0 TCP *:smtp (LISTEN)
lighttpd 1943 lighttpd 4u IPv4 5307 0t0 TCP *:http (LISTEN)
murmurd 2050 mumble-server 20u IPv6 5530 0t0 TCP *:64738 (LISTEN)
murmurd 2050 mumble-server 21u IPv6 5533 0t0 UDP *:64738
rom 7571 root 5u IPv4 18632871 0t0 TCP *:8662 (LISTEN)
rom 8513 root 5u IPv4 10266860 0t0 TCP *:8660 (LISTEN)
rom 10142 root 5u IPv4 19832383 0t0 TCP *:8679 (LISTEN)
rom 15170 root 5u IPv4 19360178 0t0 TCP *:8650 (LISTEN)
[root@ansy zivilyn]# lsof | wc -l
3563
[root@ansy zivilyn]# lsof | wc
3563 32874 360704
File: `820' -> `/mud/playport/player/Sylphshade (deleted)'
Size: 64 Blocks: 0 IO Block: 1024 symbolic link
Device: 3h/3d Inode: 20501757 Links: 1
Access: (0500/lr-x——) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2013-10-07 11:37:15.790868756 -0400
Modify: 2013-10-07 11:37:15.782869084 -0400
Change: 2013-10-07 11:37:15.782869084 -0400
File: `666' -> `/mud/playport/player/Lazuli (deleted)'
Size: 64 Blocks: 0 IO Block: 1024 symbolic link
Device: 3h/3d Inode: 20501603 Links: 1
Access: (0500/lr-x——) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2013-10-07 11:37:15.788868850 -0400
Modify: 2013-10-07 11:37:15.782869084 -0400
Change: 2013-10-07 11:37:15.782869084 -0400
Preface: As many of you might recall I wasn't around for a couple years on the forums etc, same for the mud I had run. Someone else helped out, did coding etc.
Now: I have sockets that seem to keep climbing in #, if they hit 1024 I seem to have an I/O issue where the game can't write anything.
Logs read the usual: "New_descriptor: accept: Too many open files"
So I went through all of my code looking for file's not having a fclose etc. No luck. Question is, what's the linux grep command to see open files? I remember it had to do something with *.c*, but again I'm a hack at linux still (hack being the original definition of course, not the hack'er of today :P).
Any insight/discussion would be great.
Thanks guys,
- Dave.