Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Determining the lifespan of a process

Reply
 
Thread Tools Display Modes
  #1  
Old 04-09-2008, 08:55 AM
Default Determining the lifespan of a process



Hi hi,

I've got some network service that spawns agents upon client
connections. But I'm wondering if those things get cleaned up again.
Does anybody know how I can determine/see how long a process exists on a
server?

Thanks.

-R-


Jurgen Haan
Reply With Quote
  #2  
Old 04-09-2008, 09:54 AM
Chris Davies
Guest
 
Posts: n/a
Default Re: Determining the lifespan of a process

Jurgen Haan <(E-Mail Removed)> wrote:
> I've got some network service that spawns agents upon client
> connections. But I'm wondering if those things get cleaned up again.


If it's your code, make it clean up after the protocol ends, or the
sockets are closed. If it's someone else's code, maybe telling us what
it is might help. Some common network services hang around in case
more connections come in. (These are often UDP based servers.) Others
exit as soon as their share of the work has been completed (usually TCP
based servers.)


> Does anybody know how I can determine/see how long a process exists on a
> server?


The STIME field from "ps -f" ("ps -ef") shows you the time (date)
a process was started.

Chris
Reply With Quote
  #3  
Old 04-09-2008, 10:36 AM
Jurgen Haan
Guest
 
Posts: n/a
Default Re: Determining the lifespan of a process

Chris Davies wrote:

> The STIME field from "ps -f" ("ps -ef") shows you the time (date)
> a process was started.
>
> Chris



Ah! Thanks. Exactly what I needed. :P
A classic case of RTFM!
Reply With Quote
Reply

Tags
determining, lifespan, process

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:05 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.