[Asterisk-Users] Stable from 4/20 launching many processes

Christopher Arnold chris at terrabee.net
Wed Apr 21 06:14:05 MST 2004


On Wed, 21 Apr 2004, Steven Kokinos wrote:

> which is exactly 15 instances of asterisk. this is certainly a usual way of
> running for many different applications, but i was not aware asterisk was
> one of them. i would think there was something haywire going on, however, if
> i start a single instance of asterisk, then stop it gracefully, all
> processes do indeed stop. Is this expected behavior, or something unexpected
> that i should be concerned with?
>
Could it be that you have been using diffrent flags to ps?

Check this out:
[root at thor chris]# ps auxw|grep aste
root      1474  0.0  0.0  4196  668 ?        S    Apr13   0:00 /bin/sh /usr/sbin/safe_ast erisk
root      1475  3.4  9.3 339372 96004 ?      S    Apr13 399:46 /usr/sbin/asterisk -fg
root       500  0.0  0.0  3580  632 pts/0    S    15:59   0:00 grep aste
[root at thor chris]# ps auxwm|grep aste
root      1474  0.0  0.0  4196  668 ?        S    Apr13   0:00 /bin/sh /usr/sbin/safe_asterisk
root      1475  0.0  9.3 339372 96004 ?      S    Apr13   0:00 /usr/sbin/asterisk -fg
root      1482  0.0  9.3 339372 96004 ?      S    Apr13   0:00 /usr/sbin/asterisk -fg
root      1483  0.0  9.3 339372 96004 ?      S    Apr13   0:02 /usr/sbin/asterisk -fg
root      1484  0.0  9.3 339372 96004 ?      S    Apr13   0:00 /usr/sbin/asterisk -fg
root      1485  0.0  9.3 339372 96004 ?      S    Apr13   0:00 /usr/sbin/asterisk -fg
root      1486  0.0  9.3 339372 96004 ?      S    Apr13   0:20 /usr/sbin/asterisk -fg
root      1487  0.0  9.3 339372 96004 ?      S    Apr13   0:10 /usr/sbin/asterisk -fg
root      1488  0.0  9.3 339372 96004 ?      S    Apr13   8:21 /usr/sbin/asterisk -fg
root      1489  0.0  9.3 339372 96004 ?      S    Apr13   0:32 /usr/sbin/asterisk -fg
root      1490  0.0  9.3 339372 96004 ?      S    Apr13   0:15 /usr/sbin/asterisk -fg
root      1491  0.0  9.3 339372 96004 ?      S    Apr13   0:05 /usr/sbin/asterisk -fg
root      1492  0.0  9.3 339372 96004 ?      S    Apr13   0:05 /usr/sbin/asterisk -fg
root      1493  0.0  9.3 339372 96004 ?      S    Apr13   2:54 /usr/sbin/asterisk -fg
root      1494  0.0  9.3 339372 96004 ?      S    Apr13   0:00 /usr/sbin/asterisk -fg
root      1495  0.0  9.3 339372 96004 ?      S    Apr13   0:49 /usr/sbin/asterisk -fg
root     31437  0.1  9.3 339372 96004 ?      S    13:49   0:08 /usr/sbin/asterisk -fg
root     31448  0.1  9.3 339372 96004 ?      S    13:50   0:09 /usr/sbin/asterisk -fg
root     31459  0.1  9.3 339372 96004 ?      S    13:51   0:08 /usr/sbin/asterisk -fg
root     32410  0.1  9.3 339372 96004 ?      S    15:15   0:02 /usr/sbin/asterisk -fg
root     32547  0.1  9.3 339372 96004 ?      S    15:27   0:02 /usr/sbin/asterisk -fg
root     32621  0.1  9.3 339372 96004 ?      S    15:34   0:01 /usr/sbin/asterisk -fg
root     32632  0.1  9.3 339372 96004 ?      S    15:35   0:02 /usr/sbin/asterisk -fg
root     32730  0.1  9.3 339372 96004 ?      S    15:44   0:01 /usr/sbin/asterisk -fg
root       327  0.1  9.3 339372 96004 ?      S    15:50   0:00 /usr/sbin/asterisk -fg
root       384  0.1  9.3 339372 96004 ?      S    15:55   0:00 /usr/sbin/asterisk -fg
root       408  0.1  9.3 339372 96004 ?      S    15:57   0:00 /usr/sbin/asterisk -fg
root       409  0.1  9.3 339372 96004 ?      S    15:57   0:00 /usr/sbin/asterisk -fg
root       494  0.1  9.3 339372 96004 ?      S    15:59   0:00 /usr/sbin/asterisk -fg
root       517  0.0  0.0  3588  656 pts/0    S    16:00   0:00 grep aste

Notice the -m in the last command.
The -m tells ps to print out all the diffrent asterisk threads.

This is a old behavour that has been around asterisk running on linux for
as long as i remember.

	/Chris



More information about the asterisk-users mailing list