Skip to main content

thirdlane communication manager 8.3.1.2, kill mpeg123 process + restart asterisk only

Posted by wu on Thu, 02/24/2022

Hi, support team:

   we found, with times goes by, our box is using more and more memory, I am sure if following ideas are helpful.

1. history mpeg process, today is Feb 24, some process seems quite old, I am not sure if I can kill them

<<

 ps -aux|grep asterisk |grep mpg123

asterisk  2224  0.0  0.0  15472  3124 ?        S    Feb08   0:01 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 U2_-_Original_Of_The_Species_(2).mp3 U2_-_Tryin_To_Throw_Your_Arms_Around_The_World_HD_(Zoo.mp3 U2_-_The_unforgettable_fire.mp3
asterisk  2233  0.0  0.0  15324  2280 ?        S    Feb08   0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 U2_-_Original_Of_The_Species_(2).mp3 U2_-_Tryin_To_Throw_Your_Arms_Around_The_World_HD_(Zoo.mp3 U2_-_The_unforgettable_fire.mp3
asterisk  3821  0.0  0.0  15472  1548 ?        S    Feb14   1:37 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 orig_2_Men_and_a_Truck_'Lots_of_Trucks'_R30E_B_Martin.mp3
asterisk  3822  0.0  0.0  15324   572 ?        S    Feb14   0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 orig_2_Men_and_a_Truck_'Lots_of_Trucks'_R30E_B_Martin.mp3
asterisk 17525  0.0  0.0  15472  3108 ?        S    Feb23   0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 09_Querido_Amigo.mp3
asterisk 17526  0.0  0.0  15324  1312 ?        S    Feb23   0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 09_Querido_Amigo.mp3
asterisk 24458  0.0  0.0  15472  3116 ?        S    Feb23   0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 5minsilence.mp3
asterisk 24459  0.0  0.0  15324  2276 ?        S    Feb23   0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 5minsilence.mp3
asterisk 32151  0.0  0.0  15472  2628 ?        S    09:28   0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 Jan22OnHold.mp3
asterisk 32152  0.0  0.0  15324  1672 ?        S    09:28   0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 Jan22OnHold.mp3
 <<

 

2. I suspect asterisk is using more and more memory, then I want to restart asterisk only (without other sevice affected). is there some command such as "service asterisk restart" ?

thank you for your time.