Unix Technical Forum

"w" command hangs for 3 seconds and then goes ahead...

This is a discussion on "w" command hangs for 3 seconds and then goes ahead... within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello, Could anyone please answer the question why during printing current system activity ststus with "w" command it lists ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 08:34 PM
Ogien
 
Posts: n/a
Default "w" command hangs for 3 seconds and then goes ahead...

Hello,

Could anyone please answer the question why during printing current
system activity ststus with "w" command it lists a few lines then
hangs for 3 seconds and after it lists the rests of lines? How to
investigate and solve this problem?

AIX 5.2, ML_01


regards,
O.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 08:35 PM
Nicholas Dronen
 
Posts: n/a
Default Re: "w" command hangs for 3 seconds and then goes ahead...

Ogien <ogniemi@poczta.onet.pl> wrote:
O> Hello,

O> Could anyone please answer the question why during printing current
O> system activity ststus with "w" command it lists a few lines then
O> hangs for 3 seconds and after it lists the rests of lines? How to
O> investigate and solve this problem?

O> AIX 5.2, ML_01

Altogether now:

$ truss w

Regards,

Nicholas

--
"Why shouldn't I top-post?" http://www.aglami.com/tpfaq.html
"Meanings are another story." http://www.ifas.org/wa/glossolalia.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 08:35 PM
johnthompson
 
Posts: n/a
Default Re: "w" command hangs for 3 seconds and then goes ahead...

Nicholas Dronen <ndronen@io.frii.com> wrote in message news:<3f969275$0$201$75868355@news.frii.net>...
> Ogien <ogniemi@poczta.onet.pl> wrote:
> O> Hello,
>
> O> Could anyone please answer the question why during printing current
> O> system activity ststus with "w" command it lists a few lines then
> O> hangs for 3 seconds and after it lists the rests of lines? How to
> O> investigate and solve this problem?
>
> O> AIX 5.2, ML_01
>
> Altogether now:
>
> $ truss w
>
> Regards,
>
> Nicholas



Truss seems like too much science for a common condition -- I get this
in 4.3.3 frequently and it represents an orphaned telnet session. Do
a ps -ef |grep pts/xx where pts/xx is the session listed immediately
after the delay.

If you ps -ef |grep the Parent PID you should see a telnet -a
process. If you kill this process the ghost session goes away as does
the delay in the "w" command.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 08:35 PM
Nicholas Dronen
 
Posts: n/a
Default Re: "w" command hangs for 3 seconds and then goes ahead...

johnthompson <john.thompson@sunhealth.org> wrote:
j> Nicholas Dronen <ndronen@io.frii.com> wrote in message news:<3f969275$0$201$75868355@news.frii.net>...
>> Ogien <ogniemi@poczta.onet.pl> wrote:
>> O> Hello,
>>
>> O> Could anyone please answer the question why during printing current
>> O> system activity ststus with "w" command it lists a few lines then
>> O> hangs for 3 seconds and after it lists the rests of lines? How to
>> O> investigate and solve this problem?
>>
>> O> AIX 5.2, ML_01
>>
>> Altogether now:
>>
>> $ truss w


j> Truss seems like too much science for a common condition -- I get this
j> in 4.3.3 frequently and it represents an orphaned telnet session. Do
j> a ps -ef |grep pts/xx where pts/xx is the session listed immediately
j> after the delay.

Any administrator who doesn't first think of using truss to debug
an hanged process has a toolbox that's one tool short. I have no
problem understanding the output, so for me it's barely science.

Regards,

Nicholas

--
"Why shouldn't I top-post?" http://www.aglami.com/tpfaq.html
"Meanings are another story." http://www.ifas.org/wa/glossolalia.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com