Networking Forums

Networking Forums > Computer Networking > Linux Networking > Determining the lifespan of a process

Reply
Thread Tools Display Modes

Determining the lifespan of a process

 
 
Jurgen Haan
Guest
Posts: n/a

 
      04-09-2008, 07:55 AM
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-
 
Reply With Quote
 
 
 
 
Chris Davies
Guest
Posts: n/a

 
      04-09-2008, 08:54 AM
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
 
Jurgen Haan
Guest
Posts: n/a

 
      04-09-2008, 09:36 AM
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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
determining what process is hogging bandwidth Damon Getsman Linux Networking 5 06-25-2008 01:42 PM
NETGEAR DG834G v2 / WG311 lifespan. chipshop Broadband 4 01-29-2005 05:15 PM
Determining OS language Cfm Windows Networking 1 06-20-2004 02:29 AM
Determining which process is using a network share Rick Genter Windows Networking 2 02-25-2004 10:31 PM
Determining IP address? mpierce Linux Networking 6 01-01-2004 12:29 PM



1 2 3 4 5 6 7 8 9 10 11