[Asterisk-Users] Asterisk processes
daren pereira
darencrew at hotmail.com
Tue May 24 12:53:02 MST 2005
Hello,
Thanks for your answer, but i was wondering why the number of threads grow
with time...
Don't a thread have to be stopped when it has accomplished its tasks?
If it hasn't accomplished its task it goes on running, but why do other
threads appear?
So I worried to have a "thread leak"....
Thanks again for your precise reply
Regards
Daren
----- Original Message -----
From: "Tzafrir Cohen" <tzafrir at cohens.org.il>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Tuesday, May 24, 2005 9:19 PM
Subject: Re: [Asterisk-Users] Asterisk processes
> On Tue, May 24, 2005 at 12:31:09PM +0200, daren pereira wrote:
>> Hello
>>
>> I was wondering why the asterisk processes where growing, from one
>> process at launch time to more than twenty after some weeks....
>
> And all of them happen to use exactly the same ammount of memory? They
> are simply different threads of thesame process.
>
>> and
>> I was wondering if all resources won't be eated at last.... (with 2%
>> of memory by process make the sum....)
>
> As they are threads, they share all of their memory.
>
> Basically for Linux threads are simply a group of processes with exactly
> the same memory map: They use the same memory. Thus you can't simply sum
> memory.
>
> And generally the memory usage of a group of processes is normally lower
> than the sum of each process's memory usage, because processes do share
> memory. Normally this is not much: the code sections of libraries. But
> a local X server always appears to consume much memory that is actually
> allocated by clients and shared with the server.
>
> --
> Tzafrir Cohen | tzafrir at jbr.cohens.org.il | VIM is
> http://tzafrir.org.il | | a Mutt's
> tzafrir at cohens.org.il | | best
> ICQ# 16849755 | | friend
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list