From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,17b200ae5e26d5ed X-Google-Attributes: gid1164f8,public From: hoffman@xdelta.enet.dec.nospam (Hoff Hoffman) Subject: Re: Finding who is locking an RMS record Date: 1998/02/17 Message-ID: <6ccsgr$oq@usenet.pa.dec.com>#1/1 X-Deja-AN: 325974744 References: <34e97677.71395834@news.cstone.net> Reply-To: hoffman@xdelta.zko.dec.nospam Distribution: world Organization: Digital Equipment Corp Newsgroups: comp.sys.dec In article <34e97677.71395834@news.cstone.net>, tsnyder@no_spam.org (TSnyder) writes: :Is there a utility that can determine what process is locking a :specific RMS record? DEC has only provided me with a poor DCL :procedure to do this. I'm sure there must be a hack somewhere that :does this, as it's a probledm that most users encounter at some point :using OpenVMS. Frankly, I'm very surprised DEC doesn't have such a :utility built into the operating system. Uh, we do. It's called DECamds. :-) DECamds is quite powerful, and is quite capable of locating which process in a VMScluster is holding a lock, which disks are overly busy, what resources are lacking, which quotas have caused a process to deadlock, or any of a number of other common tasks. In the case of locks, DECamds looks at all locks and all locking activity, not just at the locks specific to RMS and XQP activity... If you have not installed and configured DECamds, you will want to. DECamds is installed seperately, is licensed with OpenVMS, and is included on the V6.1 and later distribution kits. Information on specific lock resource names used by RMS is available in the Internals and Data Structures Manuals, as well as in the _VMS File System Internals_ manual. (Most of the time, RMS deadlocks are quite obvious.) In most cases, an RMS file deadlock should be pretty obvious in the DECamds display, just by the process(es) involved... And you can use SET FILE/STATISTICS and MONITOR RMS/FILE to monitor the activity on the specified file -- this can look at file locking activity (in general, not at specific record locks), at data rates, at caching effectiveness, and at general operations. -------------------------- pure personal opinion --------------------------- Hoff (Stephen) Hoffman OpenVMS Engineering hoffman@xdelta.ZZenet.dec.com note to those folks not contributing spam -- there is no ZZ in my address