Re: 'kill' does not reclaim the process' resources, causes memory
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Re: 'kill' does not reclaim the process' resources, causes memory




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: 'kill' does not reclaim the process' resources, causes memory  
Daniel C. von Asmuth


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-15-06 10:52 PM

Michael Trausch wrote:
> guybas@yahoo.com wrote:
> 
Something like??
while :
do
prog &
kill -9 $!
done

I guess adding a 'sleep' command to the loop would thwart your speed
measurements.
[vbcol=seagreen] 

Memory leaks in applications cuase the memory consumption to increase
and performance to degrade. We sometimes kill processes and restart the
application to free up leaked memory.

If 'kill' removes all traces of the user process, then the memory leak
could only be in the kernel.
[vbcol=seagreen] 

What resources are we talking about? Normal memory should be reclaimed
when a process terminates, and so should open files and sockets. Shared
memory, message queues and semaphores remain in use if the program does
not release them properly.
[vbcol=seagreen]
> What is happening to the process when you kill it?  Does it remain in
> the process list as a zombie?  Is its parent cleaning up after it?  What
> is its parent?

A zombie process uses up no resources except for the process table
entry. However, if a process 'hangs' in a system call that never
completes, the kill signal is not delivered and resources remain in use.

> If you could show or tell more about it, that'd be helpful.
>
> 	- Mike

Indeed it might,


Daniel






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:31 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register