Hi All,
i want to check all the child processes attached to a specific process.
Say for a example; my process is a java process. then i wanna know what are the processes attached to that java process.
at the moment i use the command # ps aux|grep java ; this gives the details about the currently running java process.
One java process is running by my server.In the logs I found that my server restarts automatically ( logic is there that if the process killed, start automatically ). Here I don't know who is killing my java process.May be some script, or anything...not idea about it.
Is there any way to find out who is the process killer.
I am working on Linux machine.
Hello everyone.
Here Yfrog Image : yfrog.com/3tkillprocessj
you will see a process that can not be killed and my failed attempts.
Could you please let me know:
A) why some processes can not be killed?
b) why kill -9 does not return any error?
c) what do you do for killing such processes?
I want to kill a process using python and rerun it.
I am currently using a pycurl connection to a source website via python.
I want to kill the process after specified time(automatically) and re run this process.
(even if i have to call it from another terminal)
(I want to extract the id of the process and kill it after certain time and then rerun it).
Is there a way to do this?
I have two set of questions.
1) To skip killing some process automatically.
2) To kill other process and capture their log.
I have set of process, some needs to be killed gracefully and others should be skipped.
I have a question. Over time, should an apache process's memory consumption grow? I am wondering if this is normal apache behavior or we may be causing this somehow in code?
Basically, we have a simple LAMP stack running Drupal. On an apache restart the processes fire up @ 120MB and eventually all the processes climb to 500-1GB of memory(resident aka physical-non-swap).
I am sometimes stuck in a situation where a script/command kept in Cron runs more than once because of some reasons (the first instance is not completed fully, the second instance of the same process starts) and at some point of time these processes increase a lot and show system hanging etc.
I have a home server sometimes running at a high CPU usage rate of about 50 to 70 percents.
In htop, my favorite process manager, I can sort the processes by CPU usage, but often there isn't any process consuming more than 0 % CPU.
I am trying to do safe process killing for salvaging memory. Is it safe to kill all background processes in a an activity by calling either ActivityManager.killBackgroundProcesses or IActivityManager.killAllBackgroundProcesses? I know it is painful in case one of the killed processes needs to be restarted, but is it safe?