<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=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Franklin Gothic Medium";
panose-1:2 11 6 3 2 1 2 2 2 4;}
@font-face
{font-family:"Franklin Gothic Book";
panose-1:2 11 5 3 2 1 2 2 2 4;}
@font-face
{font-family:"Franklin Gothic Heavy";
panose-1:2 11 9 3 2 1 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.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>First, I want to thank you for the great library! I appreciate your hard work on this!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am somewhat new to Live555, and to the world of video processing, so bear with me if I ask some silly questions.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am working on a windows service (a “Manager”) that starts, monitors, and stops multiple Proxy servers. These proxy servers are based on your Live555 Proxy Server code. Each proxy is serving a single stream from a single back end camera. This manager is written in managed C#, obviously the proxies are in unmanaged C++. This system runs with no user intervention outside of starting various clients to view the streaming video.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This “Manager” service is responsible for starting each proxy with a given back end rtsp address, monitoring the state of the proxies, and shutting any or all proxies down when directed, or when the proxy’s state becomes unstable. The manager reports its state (which is the state of all proxies) to other services in our application.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>During the lifetime of the proxy, I expect that the back end connection could terminate for some reason, or not connect at all in the first place. I have been looking for a hook to report this state back to the manager, but have not been successful. Does the RTSPClient provide any type of event, or other signal that could be used by other processes/services for the purpose of monitoring the state of the back end connection? My apologies if I have overlooked it in my search.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Now for part 2…<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In our system, we also have an archiving service. This service connects to the stream provided by the proxy and archives the data to a file. One archiver exists for each proxy. The Archiver uses the OpenRTSP client to achieve this. I have noticed that if the OpenRTSP client terminates unexpectedly, the CPU usage of the proxy skyrockets from about .07 average up to around 22.5 average. We run about 25 of the proxies, so you can imagine the hit if 4 of these clients die. In the case where the archiving service as a whole dies, all of the clients can terminate, which leaves us with 25 proxies running at around a 22% CPU usage with makes the system unusable.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I had considered monitoring the CPU load on all of the proxies through the manager, and terminating/restarting any that run high on CPU usage. But I was wondering if you could shed some light on what is going on in the proxy to produce this effect.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Franklin Gothic Heavy","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Franklin Gothic Medium","sans-serif"'>Russell Tyson | SAIC<br></span><span style='font-size:10.0pt;font-family:"Franklin Gothic Medium","sans-serif";color:gray'>Senior Software Engineer | Software Solutions Team<br></span><span style='font-size:10.0pt;font-family:"Franklin Gothic Book","sans-serif";color:gray'>phone: 256-971-6640 | mobile: 256-651-9981<br>russell.a.tyson.iii@saic.com | </span><a href="http://www.saic.com/"><span style='font-size:10.0pt;font-family:"Franklin Gothic Book","sans-serif";color:gray'>saic.com</span></a><span style='font-size:10.0pt;font-family:"Franklin Gothic Book","sans-serif";color:gray'><br><br>Science Applications International Corporation<br>6723 Odyssey Drive NW<br>Huntsville, AL 35806<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Franklin Gothic Book","sans-serif";color:gray'><br></span><span style='font-size:9.0pt;font-family:"Franklin Gothic Medium","sans-serif";color:gray'>NATIONAL SECURITY | ENERGY & ENVIRONMENT | HEALTH | CYBERSECURITY</span><span style='font-family:"Franklin Gothic Book","sans-serif";color:gray'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Franklin Gothic Book","sans-serif";color:gray'>This email and any attachments to it are intended only for the identified recipients. It may contain proprietary or otherwise legally protected information of SAIC. Any unauthorized use or disclosure of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and delete or otherwise destroy the email and all attachments immediately.</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>