cancel
Showing results for 
Search instead for 
Did you mean: 

lsof 4.81 issue

 
SOLVED
Go to solution
Court Campbell
Honored Contributor

lsof 4.81 issue

I have lsof installed on an 11.23 PA machine. When I run the command it just sits there and never returns.In glance it says the process id waiting on PIPE. Anyone else seen this issue?
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
21 REPLIES 21
Avinash20
Honored Contributor

Re: lsof 4.81 issue

Are you using any specific flags with lsof
I have faces a issue with lsof hang, when I used -O flag
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Court Campbell
Honored Contributor

Re: lsof 4.81 issue

I am running lsof +aL1 /var. Sometimes we have oracle processes that use up all the inodes making the filesystem seem full. But when I run the command it just sits. I have been waiting close to 45 minutes for something to return. For grins I even compiled from source to no avail.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Avinash20
Honored Contributor

Re: lsof 4.81 issue

Check if lsof works fine with other filesystem
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Patrick Wallek
Honored Contributor

Re: lsof 4.81 issue

I just installed lsof 4.81 on an 11.23 PA server (an old A500) and it seems to work fine.

I tried running 'lsof +aL1 /var' and it returned almost instantly.

The lsof that I installed was downloaded from the Internet Express bundle for 11iv2 here:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123
Court Campbell
Honored Contributor

Re: lsof 4.81 issue

I have three 11.23 PA systems. Two of them have this issue. And one is working fine. I know that it should not be taking this long, hence my query.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: lsof 4.81 issue

Running tusc shows it going to sleep when it gets to pstat(PSTAT_SOCKET).
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Armin Kunaschik
Esteemed Contributor

Re: lsof 4.81 issue

Maybe you have some name resolution issue (DNS/NIS)?

In additon if you have lots of memory and lots of processes and open connections this might delay the output substantialy. On a busy 24CPU/256GB SAP system I have to wait severy minutes for lsof to complete (I'm using 4.78 from HP-UX internet express).

To be curious: Did it work with an earlier lsof version? Do you really need the brand new 4.81?

My 2 cents,
Armin

And now for something completely different...
Court Campbell
Honored Contributor

Re: lsof 4.81 issue

All right. I have reopened this thread. HP support has been useless. The problem lies with PSTAT and/or libc.2. When I run lsof with gdb and do a backtrace, I get this:

(gdb) where
#0 0x7b00ab68 in pstat+0x10 () from /usr/lib/libc.2
#1 0x7afe0174 in __pstat_getsocket64+0x34 () from /usr/lib/libc.2
#2 0x6180 in read_sock+0x30 ()
#3 0x5fe0 in gather_proc_info+0x1098 ()
#4 0xe3f4 in main+0x2014 ()

I have installed every known pstat patch out there. I have installed quite a few networking related patches also. Any ideas? Dennis Handley, are you out there?

P.S. Please do not post any lame answers aksing about DNS, etc. I am looking for real answers.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Steven E. Protter
Exalted Contributor

Re: lsof 4.81 issue

Shalom,

That is a pretty typical issue. I've seen it on several OS releases.

My way around it was to compile the code myself.

That didn't always work, but sometimes it did.

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