Operating System - HP-UX
1832978 Members
2844 Online
110048 Solutions
New Discussion

how to expand pathname of "Open Files" in glance or gpm?

 
abc_18
Regular Advisor

how to expand pathname of "Open Files" in glance or gpm?

We've got some java processes which open a LOT of file descriptors (~250, according to glance).

Unfortunately, the "Open Files" screen is truncating the pathnames. Forums will probably mangle this, but here's an
ascii representation of a glance screen:

B3692A GlancePlus C.03.72.00 20:32:47 scooby 9000/800 Current Avg High
--------------------------------------------------------------------------------
CPU Util S SN N | 65% 31% 88%
Disk Util F | 2% 2% 23%
Mem Util S SU UB B | 97% 97% 97%
Swap Util U UR R | 28% 28% 28%
--------------------------------------------------------------------------------
Open Files PID: 7502, java PPID: 1 euid: 51 User: abc
Open Open
FD File Name Type Mode Count Offset
--------------------------------------------------------------------------------
12 reg read 1 178
13 reg read 1 60338
14 reg read 1 478069
15 reg read 1 162
16 /opt/.../weblogic81/server/lib/weblogic.jar reg read 1 26510353
17 /opt/.../weblogic81/server/lib/webservices.jar reg read 1 1574397
18 reg read 1 311
19 reg read 1 1104786
20 reg read 1 1553
21 reg read 1 764263
22 reg read 1 4682
23 reg read 1 4045
Page 2 of 17

----
In other words, glance is displaying:



but what I'd *like* to see is the full pathname:

/opt/path/to/the/file

so we can then troubleshoot what all these
files are used for.

----
I've tried the X11 gui for glance (ie, "gpm") but unfortunately it too is truncating the
pathnames, even if I stretch the screen wider.

Any ideas???

Thanks in advance.
2 REPLIES 2
Mel Burslan
Honored Contributor

Re: how to expand pathname of "Open Files" in glance or gpm?

I am not sure if what you want and expect from glance is possible at all but if you can grab that output from the screen and put it in a file, you can script it to give you the file name by the following command:

find /opt -inum 15115

so all you need to do is to extract the inum and the filesystem name from the string you gave as an example, using awk or cut commands, nothing fancy.

Hope this helps
________________________________
UNIX because I majored in cryptology...
abc_18
Regular Advisor

Re: how to expand pathname of "Open Files" in glance or gpm?

Thanks. It's a lot of work, but if that's the only way...