Auto Generating -bash process

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Auto Generating -bash process

kvmishra
Dear Sir,

In my Oracle Linux Env, there is a process which auto generating and taking 98% cpu. many times ive killed it but its generating automatic after killing the process. Custom Oracle forms and reports installed on this server along with Oracle weblogic and 19c database. Ive attached the top command output for your reference-

top - 11:24:54 up 200 days, 20:25,  2 users,  load average: 6.73, 5.38, 5.29
Tasks: 454 total,   3 running, 338 sleeping,   0 stopped,   0 zombie
%Cpu(s): 99.5 us,  0.1 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.4 hi,  0.0 si,  0.0 st
KiB Mem : 65464312 total,  5090044 free,  9776780 used, 50597488 buff/cache
KiB Swap: 39063548 total, 39062000 free,     1548 used. 36064516 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
19510 applmgr   20   0 2460800   2.3g      4 S 394.7  3.7  21:13.61 -bash

Thanks
Vikash
Reply | Threaded
Open this post in threaded view
|

Re: Auto Generating -bash process

ErmanArslansOracleBlog
Administrator
You need to provide more..
That process is executing bash, but what is it doing..
Check using /proc filesystem, and use ps with related arguments the find the command that is executed by the process.
Reply | Threaded
Open this post in threaded view
|

Re: Auto Generating -bash process

kvmishra
Dear Sir,

Please see below-

[root@dev proc]# ps -elf |grep 8879
1 S applmgr   8879     1 99  80   0 - 615175 ep_pol 14:21 ?       01:04:25 -bash
0 R root     18229   470  0  80   0 - 28574 -      14:38 pts/0    00:00:00 grep --color=auto 8879
[root@dev proc]#

Thanks
Vikash
Reply | Threaded
Open this post in threaded view
|

Re: Auto Generating -bash process

ErmanArslansOracleBlog
Administrator
That bash is sleeping.. (s state)

1)What is the output of the command "w" ?
2)Execute the following commands and send the outputs;

cat /proc/8879/cmdline
cat /proc/8879/cwd
cd /proc/8879/fd; ls -al