Susan On Unix at least you can use the "fuser -u <<filename>>" command.
e.g. find dir_path -exec fuser -u {} \;>>/work/pidlog The pidlog file will contain an entry for every file and each file will have the list of PIDs that have the file open. You can use the text file to collate a counted total of files open by each process. The PID then relates to the UV (or UDT) process in the usual way. The usual culprits for "too many files" if you have kept an eye on the kernel 9MFILES/MAXFILES/maximum inodes etc) and udtconfig are: 1. Failing to close O/S level files (OPENSEQ etc or file handles for API calls (e.g. socket)) 2. Program recursion via EXECUTEs or similar 3. (not in your case) setting the maximum number of files > 240 or thereabouts on Sun. (Solaris has a hard upper limit of 256 file handles for a 32-bit application. 4. GCI//CALLC functions leaking memory handles 5. Message queues take file handles too.... Take a look at the output from "kp" and match it against the kernel and your udtconfig (post them if you want and we can look): /etc/system "kp" output udtconfig Hope some of this helps. Regards JayJay -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Susan Joslyn Sent: 13 December 2006 15:30 To: u2-users@listserver.u2ug.org Subject: [U2] Managing open files Greetings group, I have a problem at a new installation of PRC on a Unidata/Windows system. There are a couple of occasions where I get an announcement that "too many files" are open, and my program bombs. I think it's the combination of files that the application software has open as well as the ones I have open at that moment, plus SB+. The most helpful thing for me would be some function that will tell me at any given time how many files I have open and what files they are. I can't find anything like that. I have ways that I can determine what files I have open, and SB+ keeps a list of the ones it has open. But I don't know what the limit is. I guess I'm going to have to take the "known places" where this is occurring (as they occur) and close all of my files that I don't need and hope it's enough. Anyone know of anything that will help me solve this problem? All advice appreciated! Cheers, Susan Joslyn p.s. I'm a digest subscriber so I'll either see responses later (which is fine, I'm in no hurry) or you can copy me directly at [EMAIL PROTECTED] if you like. ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/