- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
6#
发表于 2013-4-3 17:20:33
writeable/private: 1423820K ==> 1gb
orarootagent.bin 用来监控 一些network 、等资源的, 用这么多内存必然也有原因
可以通过kill orarootagent.bin进程来释放内存,orarootagent.bin进程被KILL之后会被重新respawned启动。
更多信息可以直接参考 :
1. How many orarootagent.bin processes should be running in GI environment?
By default there should be two orarootagent.bin.
One is spawned by ohasd and the other by crsd.
root:/> ps -ef |grep oraroot
root 26083426 1 0 Apr 22 - 68:11 /opt/rtl/11.2.0/grid/bin/orarootagent.bin
root 35979384 1 2 Apr 30 - 63:55 /opt/rtl/11.2.0/grid/bin/orarootagent.bin
2. Is it normal to have zombie/defunct processes associated with orarootagent.bin process?
Yes ,there are usually some zombie processes associated with the orarootagent.bin process.
They are spawned when orarootagent.bin process tries to restart HAIP resource.
3. How to check for Zombie processes?
- ps -ef |grep defunct
root 8781978 42795142 0 09:56:29 pts/0 0:00 grep defunct
root 17825906 26083426 2 0:00 <defunct>
root 41222186 26083426 1 0:00 <defunct>
root 41222186 26083426 1 0:00 <defunct>
All of them have the same parent, process id 26083426.
- “ps aux” and look for a Z in the STAT column.
- ps aux | awk '{ print $8 " " $2 }' | grep -w Z
- Also in top output
4. What is a Zombie process?
A zombie is a dead process, i.e, a child process that has completed execution but has not yet been reaped by the parent process.
The reason for zombies is so that the zombie's parent (process) can retrieve the zombie's exit status and resource usage statistics.
The parent process then signals the operating system that it no longer needs the zombie by using one of the wait() system calls.
A Zombie process has no resources (memory , cpu) allocated to it, but it still has an entry in the process tree.
5. Should Zombie processes be removed?
Usually no action is necessary as Zombies don't influence GI or RAC and should clear out eventually.
However, it is possible that under heavy load, many zombies can cause the system to run out of process ID numbers.
In such cases, Zombies should be removed.
6. How to remove Zombie processes ?
Since they are already dead processes, Zombies cannot be killed using "kill -9".
They can be removed by sending a SIGCHLD signal to the parent:
kill -s SIGCHLD <parent_pid>
Ideally this will cause parents to reap their zombie children.
If the parent process still refuses to reap the zombie, the next step is to remove the parent process.
kill -9 <parent_pid>
Killing the parent process causes all of the parent’s children to be adopted by the init process (pid 1), which periodically runs wait() to reap any zombie children.
Please note that killing orarootagent.bin process will not cause an issue , since it is automatically respawned.
|
|