CPU is high

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat CPU is high
# 1  
Old 03-06-2015
CPU is high

Hi ,

We found CPU is high due to python process .Is this something that Oracle team should look on or Unix team has to work on it ?Could you please advise use of python process ?
Code:
top - 12:03:03 up 43 days, 15:11,  5 users,  load average: 1.53, 1.33, 1.23
Tasks: 126 total,   3 running, 123 sleeping,   0 stopped,   0 zombie
Cpu(s): 93.9%us,  6.1%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   4043784k total,  3292548k used,   751236k free,   142624k buffers
Swap:  6094840k total,    72148k used,  6022692k free,  2718364k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 17862 root      25   0 68168 9736 3276 R 98.7  0.2   2581:49 python
22656 oracle    15   0 2286m  43m  39m S  0.3  1.1   0:00.85 oracle
    1 root      15   0 10372  696  588 S  0.0  0.0   0:25.05 init

Regards,
Maddy

Last edited by Maddy123; 03-06-2015 at 06:22 AM..
# 2  
Old 03-06-2015
Hello Maddy123,

Please do a ps -ef | grep "17862" and see the complete details about process which is running. Also seems this process is running from long time, check it if any script which ran previously is still running in hung state or so. Also it seems the process is root owned so you can contact your UNIX folks (In case you are not an unix admin) and check with them if it can be killed(at worst case) if it is in hung state.


NOTE: Don't try to kill any process in PR or any environment without complete analysis.


Thanks,
R. Singh
# 3  
Old 03-06-2015
Quote:
Originally Posted by Maddy123
We found CPU is high due to python process .Is this something that Oracle team should look on or Unix team has to work on it ?Could you please advise use of python process ?
Python is a is a scripting language like ksh, perl, PHP, etc.. See this link. Therefore, it depends on which python script is in fact running. Use ps -o [options] and add options to the ps command to display detailed information about the script. See the man page of "ps" for details about possible options. I suggest starting with "args" (complete command with all arguments), "time" (cumulative CPU time), "vsz" (virtual memory consumption in 4k-pages) and work from there.

The following outcomes are possible (note, the list is not complete):

1) process has gone wild
If the process normally should not consume so much CPU but for now does you have to kill it and perhaps start over. This can be regarded as a bug and the programm should be modified to avoid such situations in future.

2) this is the way the process works
depending on what the process is supposed to do it may need that much CPU. If this is the case the only thing which helps is a bigger system with more CPU resources.

I hope this helps.

bakunin
# 4  
Old 03-07-2015
Hi Ravinder/bakunin ,

Thanks of you suggestions.

I found something below when i do ps -ef
Code:
[root@bdb01 ~]# ps -ef | grep "17862"
root     17862     1 92 Mar04 ?        2-15:35:23 /opt/opsware/agent/bin/python /opt/opsware/agent/pylibs/cog/uninstall/agent_uninstall.pyc
root     22894 17301  0 09:29 pts/0    00:00:00 grep 17862

Quote:
see the complete details about process which is running
Can you suggest me how to see complete details of the process ?
Quote:
check it if any script which ran previously is still running in hung state or so
Can you guide me how to check for script ?
Quote:
Also it seems the process is root owned so you can contact your UNIX folks (In case you are not an unix admin) and check with them if it can be killed(at worst case) if it is in hung state
We approached them but they do not know about this python .

Hi bakunin ,
Use ps -o [options] and add options to the ps command to display detailed information about the script.
I am unable to find the exact command of ps -o using man command .

The process is still running with high CPU

Regards,
Maddy

Last edited by Maddy123; 03-07-2015 at 03:43 AM..
# 5  
Old 03-08-2015
Quote:
Originally Posted by Maddy123
I am unable to find the exact command of ps -o using man command .
This is perhaps so because "ps -o" is not a command. "ps" is a command and my suggestion was to use its "-o" option (and some arguments to this option too) to display details about the process. Refer to the man page of "ps" (issue "man ps") for details about which arguments the "-o" option expects and what they mean.

I hope this helps.

bakunin
# 6  
Old 03-08-2015
It is HP OPSware, a software that can install or patch or uninstall packages on the system. In this case it obviously wanted to uninstall something (maybe itself).
Its parent pid is 1 (init) so its former parent exited.
It is obviously not related to your Oracle environment.
IMHO killing it won't cause any harm.
# 7  
Old 03-08-2015
Hi bakunin,

Thanks for your suggestions.

MadeInGermany,

Are you saying that python is
Quote:
It is HP OPSware, a software that can install or patch or uninstall packages on the system. In this case it obviously wanted to uninstall something (maybe itself).
Its parent pid is 1 (init) so its former parent exited.
It is obviously not related to your Oracle environment.
IMHO killing it won't cause any harm.
Can you tell me what is IMHO and should i kill this? if so how to do that.Please guide me.

Regards,
Maddy
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

High cpu usage

I have created one script and i have added it into cron to run after 10 mins. However I have noted that whenever that script runs, It causes CPU utilization of server to increase about 10-20 % I have rechecked script and there is no way i can make changes, Script contain only 2-3 commands. So... (4 Replies)
Discussion started by: Nakul_sh
4 Replies

2. Red Hat

High CPU Utilization

Hi Experts, I need to understand few basic things regarding top command result from one of the node i have collected: Cpu0 : 4.6%us, 2.0%sy, 0.0%ni, 91.4%id, 1.3%wa, 0.3%hi, 0.3%si, 0.0%st Cpu1 : 0.0%us, 0.3%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu2 : ... (5 Replies)
Discussion started by: mackjack87
5 Replies

3. Shell Programming and Scripting

what would a script include to find CPU's %system time high and user time high?

Hi , I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( . how to find cpu's system high time and user time high in a script?? thanks , help would be appreciated ! :) (9 Replies)
Discussion started by: sushwey
9 Replies

4. Web Development

High CPU with Moodle

Hello list, I am managing a Moodle site on Apache2 server with Ubuntu. There are 20-30 simultaneous users and the server get 100% CPU and it stop working. The server is a dual core 3GHz and 4GB o memory. I think thta it is enough powerful machine for a Moodle site. How could I configure... (0 Replies)
Discussion started by: jlazkano
0 Replies

5. Red Hat

apache high cpu load on high traffic

i have a Intel Quad Core Xeon X3440 (4 x 2.53GHz, 8MB Cache, Hyper Threaded) with 16gig and 1tb harddrive with a 1gb port and my apache is causing my cpu to go up to 100% on all four cores heres my http.config <IfModule prefork.c> StartServers 10 MinSpareServers 10 MaxSpareServers 15... (4 Replies)
Discussion started by: awww
4 Replies

6. UNIX for Advanced & Expert Users

high cpu utilization

good morning. just wanted to ask if there's a way to check what causes the high cpu utilization of a server for the past 2 months? My jffnms report resulted to high utilization for a specific server last month. is there a way to check via a command line? thanks (9 Replies)
Discussion started by: lhareigh890
9 Replies

7. Ubuntu

High System CPU Usage

I am running a Dell PE R815 with 4 x AMD 12 core CPUs with 128GB of RAM and a RAID 5 array of 6 SAS disks. This is an HPC application and is definitely CPU bound, however once I run 16 of these processes (thus pinning 16 cores) the work performed slows down dramatically, to maybe 5 or 10% of what... (2 Replies)
Discussion started by: mowmentous
2 Replies

8. AIX

DB2 high CPU

Hello dear friends, I have Lpar AIX 6.1 and there is DB2 installed. I have 8 Virtual CPU's configured on my Lpar and when I run nmon the CPU waiting time is always big.. I will provide screenshot for better realizing.. my question is what may produce so big waiting time?? Thanks in advance! (19 Replies)
Discussion started by: Vit0_Corleone
19 Replies

9. AIX

High CPU utilization

Hi am facing high cpu utilization on my sybase server. I have P550 Number Of Processors: 4 Processor Clock Speed: 1656 MHz CPU Type: 64-bit Kernel Type: 32-bit LPAR Info: 1 65-D837E Memory Size: 7840 MB in topas it shows Name PID CPU% PgSp Owner dataserv 565264 ... (1 Reply)
Discussion started by: vjm
1 Replies

10. Solaris

High CPU Utilization

Good morning, I need some help figuring out what's eating up my cpu. My application can't get enough cpu to do its job. this is a sunfire V440 2CPU's at 1/593 GHZ with 8GB of memory. In the morning hours the box is at less than 3%. I can't figure out what else is using the CPU. We use foglight and... (2 Replies)
Discussion started by: bbouhaik
2 Replies
Login or Register to Ask a Question