HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- syntax of lsof command
Operating System - HP-UX
1835038
Members
3404
Online
110073
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2006 04:28 PM
04-08-2006 04:28 PM
Hi,
I want to track the hung application process or file descriptors which are not being closed gracefully or processes opened for more than required period and become unresponsive.
I want to use #lsof command. I want to store the result in a file to analyze later.
Can someone suggest a good sytax of the lsof command to accomplish the above ?
Thanks,
Shiv
I want to track the hung application process or file descriptors which are not being closed gracefully or processes opened for more than required period and become unresponsive.
I want to use #lsof command. I want to store the result in a file to analyze later.
Can someone suggest a good sytax of the lsof command to accomplish the above ?
Thanks,
Shiv
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2006 06:13 PM
04-08-2006 06:13 PM
Solution
Shalom Shiv,
Here is some sample output:
view 29810 root mem VREG 64,0x7 1568768 7257 /usr/lib/libc.2
view 29810 root mem VREG 64,0x7 241664 22103 /usr/lib/dld.sl
Note there is a definite fileystem listed /usr
I would say to begin, what is the filesystem your application is running in?
Lets say its /webshere
So:
lsof | grep webshere
Other possibilities:
lsof -c c
# everything with command beginning with the letter c.
Perhaps w for webshere in this case.
+d s
# Open instances of directory s
I'm giving examples but how to proceed will depend heavily on how your system is setup.
I'm reading through the man page also.
A combination of looking at how the system is structured and looking for interesting options on the man page will get you going.
How did the tusc thing work out?
SEP
Here is some sample output:
view 29810 root mem VREG 64,0x7 1568768 7257 /usr/lib/libc.2
view 29810 root mem VREG 64,0x7 241664 22103 /usr/lib/dld.sl
Note there is a definite fileystem listed /usr
I would say to begin, what is the filesystem your application is running in?
Lets say its /webshere
So:
lsof | grep webshere
Other possibilities:
lsof -c c
# everything with command beginning with the letter c.
Perhaps w for webshere in this case.
+d s
# Open instances of directory s
I'm giving examples but how to proceed will depend heavily on how your system is setup.
I'm reading through the man page also.
A combination of looking at how the system is structured and looking for interesting options on the man page will get you going.
How did the tusc thing work out?
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2006 09:27 PM
04-08-2006 09:27 PM
Re: syntax of lsof command
SEP; Thanks a lot for providing very useful syntax on tusc. tusc is not installed on the system. I will install it and test the command provided by you.
Regards,
Shiv
Regards,
Shiv
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP