Dear All, So are you saying that I should see 1 PID for "safe_asterisk" and many PIDs for "asterisk -vvvg -c" or just 1 PID for "asterisk -vvvg -c", the problem is I am seeing alot of PIDs for "asterisk -vvvg -c" on a couple of my systems and only 1 PID for "asterisk -vvvg -c" for the other couple, which way is correct and how do I rectify that? When I said seeing multiple PIDs, I mean I actually see like 20 different PID numbers (the second column when I do a ps), not sure if that means 20 different threads or 20 PIDs. How do I take care of wonky threading implementation as you suggested?
THanks -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Friday, January 16, 2004 1:33 PM To: [EMAIL PROTECTED] Cc: Alan Chan Subject: Re: [Asterisk-Users] RE: PID On Thu, Jan 15, 2004 at 09:02:00PM -0500, T. Chan wrote: > > Does anyone have any idea why there is a difference please? The reason that > it is important as well is because each "asterisk -vvvg -c" is taking up > certain memory and with 10 (more when there are calls) or more of these, I > am running into memory problem. The fact that you see multiple processes is symptomatic of a wonky threading implementation -- all threads should belong to the same process. The exception to this is chan_h323 which actually fork(2)s a new process. Also, as threads share memory space there is no extra usage with extra threads (except for the overhead of keeping the thread state itself, which is minimal). -w -- /~\ The ASCII Ribbon Campaign \ / No HTML/RTF in email X No Word docs in email / \ Respect for open standards _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004 _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users