Operating System - HP-UX
1834640 Members
3151 Online
110069 Solutions
New Discussion

Sporadic mwm process consumes excessive cpu. Need to periodically kill.

 
SOLVED
Go to solution
Jack C. Mahaffey
Super Advisor

Sporadic mwm process consumes excessive cpu. Need to periodically kill.

Any ideas why the mwm process periodically stays alive and consumes cpu when it is no longer needed? I understand it has something to do with Reflections. We periodically need to kill the process to make the problem go away.

Occurs on hp-ux 11.0
4 REPLIES 4
Alex Glennie
Honored Contributor

Re: Sporadic mwm process consumes excessive cpu. Need to periodically kill.

Not sure, however you should expect to see a mwm (parent) process running all the time, it should wait until it receives an XDMCP request froman xterminal or PC client and then spawn a new child process for the remote display. When the xterminal is power cycled this will die.

Are you using mwm only or is CDE involved ? You can configure dtlogin to run mwm not dtwm is why I ask. My advise would be to install the latest Xserver and X11 Motif 2.1 patches (for hp-ux 11.xx) and if CDE involved the latest CDE patch as well.

Is it just mwm eating CPU , Parent or Child process ? and what about X ?

You may wish to try creating a file in a users $HOME directory : .Xdefaults and add the following :

*terminateServer or if CDE is behind the scenes look in /usr/dt/config/Xconfig ant the Dtlogin line TerminateServer : True ......
CHRIS_ANORUO
Honored Contributor

Re: Sporadic mwm process consumes excessive cpu. Need to periodically kill.

You can execute a little script from cron. the script should be like:
ee=`ps -e|grep processname|grep "?"|cut -c2-6`
kill -9 $ee
Don't use this on root process please.
Only on the identified processes ugging the system
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
CHRIS_ANORUO
Honored Contributor

Re: Sporadic mwm process consumes excessive cpu. Need to periodically kill.

You can execute a little script from cron. the script should be like:
ee=`ps -e|grep processname|grep "?"|cut -c2-6`
kill -9 $ee
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Bill Hassell
Honored Contributor
Solution

Re: Sporadic mwm process consumes excessive cpu. Need to periodically kill.

The reason behind Xwindow programs consuming large amounts of CPU are usually traced to PC Xterminal emulators...the emulators work OK but the PC often crashes and X11 does not have a consistent way to see that a display has disappeared and often goes into a loop. Also, netwokr overloads can cause disconnects with similar results.


Bill Hassell, sysadmin