<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Of course the 100% CPU is probably due to it waiting for some resource, rather than actually being loaded to 100%. Press “1” in top and look for the “%wa”<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>I found (like some others) that the problem is actually the “lame” program which vanishes for some reason.  I run a script every 10 minutes that checks the pid for lame and restarts ezstream – but only if needed.  I think that is better than killing ezstream when it is, in fact, running fine.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>This is the script (it is not my invention)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>#!/bin/bash <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>lamenumber=$(/sbin/pidof lame)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>if [ "$lamenumber" = "" ]<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>then<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>        eznumber=$(/sbin/pidof ezstream)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>        echo "$eznumber"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>        kill -9 "$eznumber"     <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>        echo "restarting"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>        date <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>else<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>        eznumber=""<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'>fi<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Ken<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Brent Weatherall [mailto:va3bfw@gmail.com] <br><b>Sent:</b> Monday, May 02, 2016 11:09 AM<br><b>To:</b> Loren Tedford <lorentedford@gmail.com><br><b>Cc:</b> app_rpt mailing list <app_rpt-users@ohnosec.org><br><b>Subject:</b> Re: [App_rpt-users] ezstream 100% cpu<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>A quick look at that cron schedule looks like it would run every minute of the 0 hour and 12 hour. Did you just want it to run only once at 0 and 12? If that is the case you'd want:<o:p></o:p></p><div><p class=MsoNormal>0 */12 * * *.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I'll let you know how it works out for stability. Thanks again.<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Mon, May 2, 2016 at 11:03 AM Loren Tedford <<a href="mailto:lorentedford@gmail.com">lorentedford@gmail.com</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p>The biggest issue with ezstream is that for some reason you get multiple instances of the program running.. Not sure exactly what would be the best solution to actually fix this but the cron script is a big bandage with duck tape.. I really wish I knew how to write code..<o:p></o:p></p><p>Loren Tedford (KC9ZHV) <br>Email: <a href="mailto:lorentedford@gmail.com" target="_blank">lorentedford@gmail.com</a><o:p></o:p></p><p>Phone: 618-553-0806<br>Fax: 16185512755<br><a href="http://www.lorentedford.com" target="_blank">http://www.lorentedford.com</a><br><a href="http://kc9zhv.com" target="_blank">http://kc9zhv.com</a><o:p></o:p></p><p>Sent from Droid Turbo from Verizon wireless network<o:p></o:p></p><div><p class=MsoNormal>On May 2, 2016 10:00 AM, "Brent Weatherall" <<a href="mailto:va3bfw@gmail.com" target="_blank">va3bfw@gmail.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><p class=MsoNormal>Thanks for the cron script to try Loren. Hopefully the daily restart of ezstream will cure any issues.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Mon, Apr 25, 2016 at 3:57 PM Loren Tedford <<a href="mailto:lorentedford@gmail.com" target="_blank">lorentedford@gmail.com</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><p class=MsoNormal>Here is what i did to get ezstream working I will be updating this forum as well as to my fix for ezstream locking open randomly basicly it kinda goes like this..<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><a href="http://forum.kc9zhv.com/index.php/topic,23.0.html" target="_blank">http://forum.kc9zhv.com/index.php/topic,23.0.html</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>crontab -e <o:p></o:p></p></div><div><div><p class=MsoNormal>* */12 * * * sh /etc/asterisk/stopez.sh<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>script that i use to reset ezstream..<o:p></o:p></p></div><div><div><p class=MsoNormal>root@server:/etc/asterisk# cat stopez.sh<o:p></o:p></p></div><div><p class=MsoNormal>#!/bin/bash<o:p></o:p></p></div><div><p class=MsoNormal>kill -9 $(pgrep ezstream)&<o:p></o:p></p></div><div><p class=MsoNormal>sleep 2s<o:p></o:p></p></div><div><p class=MsoNormal>kill -9 pgrep ezstream<o:p></o:p></p></div><div><p class=MsoNormal>sleep 2s<o:p></o:p></p></div><div><p class=MsoNormal>/usr/sbin/asterisk -rx "module reload"<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>now to restart asterisk i run this customized script.<o:p></o:p></p></div><div><div><p class=MsoNormal>root@server:/etc/asterisk# cat restart.sh<o:p></o:p></p></div><div><p class=MsoNormal>#!/bin/bash<o:p></o:p></p></div><div><p class=MsoNormal>kill -9 $(pgrep ezstream)&<o:p></o:p></p></div><div><p class=MsoNormal>kill -9 pgrep ezstream<o:p></o:p></p></div><div><p class=MsoNormal>service asterisk stop<o:p></o:p></p></div><div><p class=MsoNormal>sleep 1s<o:p></o:p></p></div><div><p class=MsoNormal>killall asterisk<o:p></o:p></p></div><div><p class=MsoNormal>kill -9 $(pgrep ezstream)&<o:p></o:p></p></div><div><p class=MsoNormal>service asterisk stop<o:p></o:p></p></div><div><p class=MsoNormal>sleep 1s<o:p></o:p></p></div><div><p class=MsoNormal>service asterisk start<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>So far I have had no issues with ezstream since i did this..<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><div><div><div><div><div><div><div><div><div><div><p class=MsoNormal><span style='font-family:"Arial",sans-serif'>Loren Tedford (KC9ZHV) <br>Email: <a href="mailto:lorentedford@gmail.com" target="_blank"><span style='color:#1155CC'>lorentedford@gmail.com</span></a><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><a href="http://www.lorentedford.com/" target="_blank"><span style='color:#1155CC'>http://www.lorentedford.com</span></a><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><a href="http://www.kc9zhv.com" target="_blank">http://www.kc9zhv.com</a><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><a href="http://forum.kc9zhv.com" target="_blank">http://forum.kc9zhv.com</a><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><a href="http://hub.kc9zhv.com" target="_blank">http://hub.kc9zhv.com</a><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><a href="http://www.newwavesucks.com" target="_blank">http://www.newwavesucks.com</a><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><a href="http://forum.newwavesucks.com" target="_blank">http://forum.newwavesucks.com</a><o:p></o:p></span></p></div></div></div></div></div></div></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal>On Mon, Apr 25, 2016 at 12:10 PM, Brent Weatherall <<a href="mailto:va3bfw@gmail.com" target="_blank">va3bfw@gmail.com</a>> wrote:<o:p></o:p></p></div></div><div><div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><p class=MsoNormal>Hello,<br>I've recently setup an allstar hub node and decided to stream it via broadcastify.<o:p></o:p></p><div><p class=MsoNormal><br>Setup has gone well - I'm running debian, with the allstar node running without issue, as well as streaming now being delivered via Broadcastify.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I've ran in to an issue where the ezstream process will occasionally pin at 100%. I can kill it fine, and asterisk gracefully resumes by creating a new working output stream.<o:p></o:p></p></div><div><p class=MsoNormal><br>Has anyone else encountered this cpu pinned usage? Will I have to set up something to monitor the process to kill it, so it restarts?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks in advance for any suggestions<o:p></o:p></p></div><div><p class=MsoNormal>VA3BFW - Brent<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p></blockquote></div></div><div><div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal>_______________________________________________<br>App_rpt-users mailing list<br><a href="mailto:App_rpt-users@ohnosec.org" target="_blank">App_rpt-users@ohnosec.org</a><br><a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br><br>To unsubscribe from this list please visit <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"<br>You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. <o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></blockquote></div></div></blockquote></div></blockquote></div></div></body></html>