LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 04-12-2008, 05:27 AM   #1
kurnia1
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
X taking up a lot CPU time


Lately our main server running RHEL AS3 indicates high CPU Time by X.
Performance degrades by time as this value increases and eventually hung up the operating system (even some users still can connect to the application/database).

Below is a snapshot of TOP:
330 processes: 327 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 78.3% 0.0% 4.8% 0.0% 1.8% 0.0% 14.8%
cpu00 70.4% 0.0% 7.1% 0.0% 3.7% 0.0% 18.5%
cpu01 86.2% 0.0% 2.5% 0.0% 0.0% 0.0% 11.1%
Mem: 4016448k av, 4002876k used, 13572k free, 0k shrd, 57876k buff
2888164k actv, 548780k in_d, 82492k in_c
Swap: 20482864k av, 1206212k used, 19276652k free 3157980k cache
d

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
9826 oraerpp 25 0 78732 69M 69348 R 46.3 1.7 2:09 1 oracle
8162 oraerpp 19 0 165M 160M 153M R 30.9 4.0 0:30 0 oracle
1084 root 15 0 17736 3280 1100 S 1.9 0.0 143:40 0 X
2323 applerpp 15 0 15924 10M 1584 S 1.1 0.2 2:19 0 java
1737 applerpp 15 0 90756 47M 1340 S 0.5 1.2 2:09 1 java
2696 applerpp 15 0 18832 12M 2096 S 0.3 0.3 3:07 1 java
1738 applerpp 15 0 91336 47M 1340 S 0.2 1.2 1:57 0 java
1736 applerpp 15 0 169M 64M 2404 S 0.1 1.6 3:43 1 java
2370 applerpp 15 0 3920 2900 604 S 0.1 0.0 2:30 1 jre
2499 applerpp 15 0 15924 10M 1584 S 0.1 0.2 0:21 0 java
9290 root 16 0 1624 1624 972 R 0.1 0.0 0:01 1 top
1 root 15 0 536 488 452 S 0.0 0.0 0:09 1 init
2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0
3 root RT 0 0 0 0 SW 0.0 0.0 0:00 1 migration/1

==============================
ps -eo "pid pcpu comm args" --sort "pcpu"
PID %CPU COMMAND COMMAND
1 0.0 init init
2 0.0 migration/0 [migration/0]
3 0.0 migration/1 [migration/1]
4 0.0 keventd [keventd]
5 0.0 ksoftirqd/0 [ksoftirqd/0]
6 0.0 ksoftirqd/1 [ksoftirqd/1]
9 0.0 bdflush [bdflush]
10 0.0 kupdated [kupdated]
11 0.0 mdrecoveryd [mdrecoveryd]
20 0.0 kjournald [kjournald]
75 0.0 khubd [khubd]
307 0.0 kjournald [kjournald]
308 0.0 kjournald [kjournald]
309 0.0 kjournald [kjournald]
310 0.0 kjournald [kjournald]
311 0.0 kjournald [kjournald]
312 0.0 kjournald [kjournald]
313 0.0 kjournald [kjournald]
657 0.0 syslogd syslogd -m 0
661 0.0 klogd klogd -x
680 0.0 portmap portmap
700 0.0 rpc.statd rpc.statd
713 0.0 auditd /sbin/auditd
780 0.0 acpid /usr/sbin/acpid
792 0.0 cupsd cupsd
835 0.0 sshd /usr/sbin/sshd
851 0.0 xinetd xinetd -stayalive -pidfile /var/run/xinetd.pid
874 0.0 rpc.rquotad rpc.rquotad
878 0.0 nfsd [nfsd]
879 0.0 nfsd [nfsd]
880 0.0 nfsd [nfsd]
881 0.0 nfsd [nfsd]
882 0.0 nfsd [nfsd]
883 0.0 nfsd [nfsd]
884 0.0 nfsd [nfsd]
885 0.0 nfsd [nfsd]
886 0.0 lockd [lockd]
887 0.0 rpciod [rpciod]
893 0.0 rpc.mountd rpc.mountd
903 0.0 vsftpd /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
923 0.0 sendmail sendmail: accepting connections
932 0.0 sendmail sendmail: Queue runner@01:00:00 for /var/spool/clien
943 0.0 gpm gpm -t ps/2 -m /dev/mouse
953 0.0 crond crond
977 0.0 xfs xfs -droppriv -daemon
987 0.0 atd /usr/sbin/atd
1003 0.0 mdadm mdadm --monitor --scan
1015 0.0 mdmpd mdmpd
1023 0.0 mingetty /sbin/mingetty tty1
1024 0.0 mingetty /sbin/mingetty tty2
1025 0.0 mingetty /sbin/mingetty tty3
1026 0.0 mingetty /sbin/mingetty tty4
1027 0.0 mingetty /sbin/mingetty tty5
1028 0.0 mingetty /sbin/mingetty tty6
1029 0.0 gdm-binary /usr/bin/gdm-binary -nodaemon
1083 0.0 gdm-binary /usr/bin/gdm-binary -nodaemon
1094 0.0 gnome-session /usr/bin/gnome-session
1160 0.0 ssh-agent /usr/bin/ssh-agent /etc/X11/xinit/Xclients
1170 0.0 gconfd-2 /usr/libexec/gconfd-2 5
1173 0.0 bonobo-activati /usr/libexec/bonobo-activation-server --ac-activate
1175 0.0 gnome-settings- gnome-settings-daemon --oaf-activate-iid=OAFIID:GNOM
1180 0.0 fam fam
1187 0.0 metacity /usr/bin/metacity --sm-client-id=default1
1191 0.0 gnome-panel gnome-panel --sm-client-id default2
1193 0.0 nautilus nautilus --no-default-window --sm-client-id default3
1198 0.0 eggcups eggcups --sm-client-id default6
1200 0.0 pam-panel-icon pam-panel-icon --sm-client-id default0
1203 0.0 pam_timestamp_c /sbin/pam_timestamp_check -d root
1213 0.0 notification-ar /usr/libexec/notification-area-applet --oaf-activate
5641 0.0 oracle oracleERPP (LOCAL=NO)
6754 0.0 f60webmx f60webmx webfile=5,930,orapps_9000_ERPP
7041 0.0 oracle oracleERPP (LOCAL=NO)
7091 0.0 oracle oracleERPP (LOCAL=NO)
7181 0.0 oracle oracleERPP (LOCAL=NO)
7579 0.0 in.telnetd in.telnetd: 10.10.0.24
7580 0.0 login login -- root
7639 0.0 ps ps -eo pid pcpu comm args --sort pcpu
7 0.1 kswapd [kswapd]
8 0.1 kscand [kscand]
1402 0.1 oracle ora_j000_ERPP
1736 0.1 java /usr/java/jdk1.3.1_02/jre/bin/i386/native_threads/ja
30931 0.1 f60webmx f60webmx webfile=5,897,orapps_9000_ERPP
32038 0.1 oracle oracleERPP (LOCAL=NO)
2203 0.1 f60webmx f60webmx webfile=5,913,orapps_9000_ERPP
5259 0.1 f60webmx f60webmx webfile=5,924,orapps_9000_ERPP
5512 0.1 oracle oracleERPP (LOCAL=NO)
7329 0.1 f60webmx f60webmx webfile=5,932,orapps_9000_ERPP
2858 0.2 gnome-system-mo gnome-system-monitor
31642 0.2 f60webmx f60webmx webfile=5,900,orapps_9000_ERPP
32511 0.3 oracle oracleERPP (LOCAL=NO)
32616 0.3 f60webmx f60webmx webfile=5,905,orapps_9000_ERPP
6465 0.3 f60webmx f60webmx webfile=5,929,orapps_9000_ERPP
1195 0.4 magicdev magicdev --sm-client-id default4
1202 0.4 rhn-applet-gui /usr/bin/python /usr/bin/rhn-applet-gui --sm-client-
7089 0.4 f60webmx f60webmx webfile=5,931,orapps_9000_ERPP
32667 0.5 oracle oracleERPP (LOCAL=NO)
31499 0.6 oracle oracleERPP (LOCAL=NO)
7395 0.6 oracle oracleERPP (LOCAL=NO)
31009 0.7 f60webmx f60webmx webfile=5,898,orapps_9000_ERPP
32192 0.9 f60webmx f60webmx webfile=5,903,orapps_9000_ERPP
32647 0.9 f60webmx f60webmx webfile=5,906,orapps_9000_ERPP
7584 1.0 bash -bash
6787 2.0 oracle oracleERPP (LOCAL=NO)
32735 3.4 oracle oracleERPP (LOCAL=NO)
1084 4.4 X /usr/X11R6/bin/X :0 -auth /var/gdm/:0.Xauth vt7

======================

Can anyone give me a hint on what exactly causes this or where to look further?

TIA!
 
Old 04-12-2008, 06:14 AM   #2
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
I might be wrong but what this seems to indicate is that X was up and running for 143+ hours but only consumes 1.9% cpu.
Oracle on the other hand consumes about 77% cpu combined.
 
Old 04-13-2008, 09:23 PM   #3
kurnia1
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Original Poster
Rep: Reputation: 0
I guess I misinterpreted the CPU (up) time... I've never seen any process taking such a lengthy CPU Time on the TOP list previously.
Thanks crashmeister for the enlightenment! Will have to look further on the other side now ...
 
  


Reply

Tags
as, cpu, high, rhel, time


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
many instances of smbd taking up much cpu time kaplan71 Linux - Server 1 05-10-2007 01:54 PM
XORG using a lot of CPU resources GreatBrak Ubuntu 1 12-02-2005 03:56 PM
ubuntu smp: why is kswapd0 taking 100% CPU time? eantoranz Linux - Software 0 10-18-2005 03:38 PM
how do i find which script is taking up my cpu time? Pete Dogg Linux - Software 4 07-23-2004 07:35 PM
magicdev taking up too much cpu time phahn Linux - Software 2 04-29-2002 02:13 PM


All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration