<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jozef Chúťka&#039;s blog &#187; Flash Media Server</title>
	<atom:link href="http://blog.yoz.sk/category/flash-media-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yoz.sk</link>
	<description>My life, my work</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:40:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quick tip: Ports Required For RTMFP</title>
		<link>http://blog.yoz.sk/2010/06/quick-tip-ports-required-for-rtmfp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=quick-tip-ports-required-for-rtmfp</link>
		<comments>http://blog.yoz.sk/2010/06/quick-tip-ports-required-for-rtmfp/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 07:37:25 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[Flash Media Server]]></category>
		<category><![CDATA[P2P]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[RTMFP]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=1809</guid>
		<description><![CDATA[In order to be able to use P2P communication within flash apps, you need to have opened UDP ports in range 1024..65535. First, to connect stratus server, you need UDP ports 1935 and 10000..10100, then the communication between peers (Flash Players and AIR) goes through random UDP port in range 1024..65535. In detail: UDP port [...]]]></description>
			<content:encoded><![CDATA[<p>In order to be able to use P2P communication within flash apps, you need to have <strong>opened UDP ports in range 1024..65535</strong>. First, to connect stratus server, you need UDP ports 1935 and 10000..10100, then the communication between peers (Flash Players and AIR) goes through random UDP port in range 1024..65535. In detail:</p>
<blockquote><p>UDP port 1935 and ports 10000+ are used by the Stratus servers.  the UDP ports used on client computers could be any port from 1024..65535.</p>
<p>in order to just connect to the Stratus servers, you must be able to send and receive UDP packets with any UDP port on your client computer (source port for outgoing, destination port for incoming) and port 1935 and ports 10000+ on the Stratus server computers (destination port for outgoing, source port for incoming).</p>
<p>*just* connecting to Stratus isn&#8217;t useful, though, since all it can do is help you to connect directly to other clients running Flash Player or AIR.  other client computers, just like your client computer, will be using a random UDP port in the range 1024..65535.  therefore, in order to communicate P2P with other client computers using RTMFP, you must do one of the two following things:</p>
<p>   1) allow all UDP with a source or destination port from 1024..65535.</p>
<p>   2) have a &#8220;stateful firewall&#8221; that allows bidirectional UDP connections to and from any UDP ports in the range 1024 through 65535 inclusive as long as a first packet is sent outbound through the firewall.  this is commonly called &#8220;allowing outbound UDP&#8221;.  sending the first packet outbound through your firewall to allow return packets is commonly called &#8220;UDP hole punching&#8221;.  searching on these terms should give you more information.</p>
<p>in general, a firewall that blocks UDP will block RTMFP communication.</p></blockquote>
<p>Read more about <a href="http://forums.adobe.com/thread/583118">PORT NUMBER of RTMFP</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2010/06/quick-tip-ports-required-for-rtmfp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flash Media Server: Core is no longer active (update)</title>
		<link>http://blog.yoz.sk/2009/10/fms-problems/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fms-problems</link>
		<comments>http://blog.yoz.sk/2009/10/fms-problems/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 09:36:40 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[Flash Media Server]]></category>
		<category><![CDATA[core]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[master]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=259</guid>
		<description><![CDATA[In a past few weeks I have been working on a middle sized flash project. While its nature is in multi user communication and it was crucial to do that with low latency, our first choice was of course Flash Media Server. I spent few days by programming server side (fms) and few days on [...]]]></description>
			<content:encoded><![CDATA[<p>In a past few weeks I have been working on a middle sized flash project. While its nature is in multi user communication and it was crucial to do that with low latency, our first choice was of course Flash Media Server. I spent few days by programming server side (fms) and few days on optimizing its performance and debugging and finally it was fast enough to get staged live. Server side was just about calling client methods (client -> fms -> client) and some SharedObjects, but no video nor audio streaming was used. My company dedicated super fast server (4 x quadcore Intel(R) Xeon(R) CPU E7440 @ 2.40GHz, 32 GB ram) just for Flash Media Server so we were able to run it on 16 cores. We installed fms v.3.0.1 r123 with valid unlimited licence on it. And went live.</p>
<p>First, we tried default fms configuration and soon after start master.log (and all other logs) started to grow up. The main content of the log was:</p>
<pre>
2009-10-07 00:03:31 24962 (i)2581223 Core (8684) is no longer active. -
2009-10-07 00:03:31 24962 (w)2581256 Core (8684) _defaultRoot_:_defaultVHost_:::_1 experienced 1 failure[s]! -
2009-10-07 00:03:31 24962 (i)2581221 Core (10772) started, arguments : -adaptor "_defaultRoot_" -vhost "_defaultVHost_" -app  -inst  -tag "_1" -conf "./conf/Server.xml" -name "_defaultRoot_:_defaultVHost_:::_1". -
</pre>
<p><span id="more-259"></span></p>
<p>This caused our client app to be unconnected for a few seconds but connected automaticaly back. So no big deal, right? &#8230; Well, after few days server started to refuse any connection into running instances (even with 1-2 clients in it). So there was no other possibility than to restart whole fms. We started thinking this is not good. So we taked action&#8230;</p>
<p>Well, what uncle google know about this? <a href="http://www.google.cz/search?q=Core+is+no+longer+active">3 000 000 results</a>? Results taked me to adobe forums and I found there was dozens of topics with same problems. But no working solution for noone.</p>
<p>First, we tried to configure and reconfigure everything here and there, from default 3 cores to 1 than to 16 cores, disconnectiong idle clients etc. &#8230; but still the same. Master.log was growing lineary as more and more clients got connected at the same time (we are not talking about huge loads, just 10-20 simultaneous connections). Core crashes logged every 5 minutes, and after few days server refusing all client connections. <img src='http://blog.yoz.sk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Okay lets handle this by watch dog. We created java watchdog based on testing connection into instance, and fmscheck watchdog to check all running instances periodically every 10 minutes just to know when server is down (refusing connections). Soon we discovered, java watchdog reported correctly and based on its output we were able to restart fms in case of crash. But this was not the solution.</p>
<p>The next step was to contact support. I created and posted <a href="http://forums.adobe.com/thread/503010">article to adobe forum</a>, but noone has replied yet. As an Adobe client we sent e-mail to Adobe support but no reply. Finally our local solution manager for adobe replied that we should try to upgrade to v.3.0.4. We did, but nothing changed. We even tried to run it on v.3.5.x but still the same results.</p>
<p>Our administrators even tried to trace core crash on system level &#8220;strace -p PID&#8221; but when attached on process, core never crashed. Solution? Not at all, as I was told tracing is slowing down system. There is one more way to trace crash (<a href="http://www.flashcomguru.com/index.cfm/2007/10/1/core-crash-linux">Core crash on linux</a>) but we never gave it a try based on all previous failures&#8230;</p>
<p>Few weeks after we launched our project we were still not able to make it run smoothly, core crashed here and there and our client was not happy of course&#8230;</p>
<p>We were forced to change socket server and as an alternative we have chosen <a href="http://www.red5.org/">Red5</a>. While it is written in java, we were able to rebuild and debug server side in a few days. And now our project runs great. Our <strong>solution is open source flash server Red5</strong>.</p>
<p>I am really disappointed about fms because:</p>
<ul>
<li>fms is crashy and broken, log files does not contain important informations</li>
<li>even if we paid big money for licence we did not got any support that would help us</li>
<li>server side scripting is based on some kind of extended version of <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide">JavaScript 1.5</a> what is definitely not a good language for server side now, Adobe please wake up</li>
<li>I am not mentioning browser crashes caused by corrupted SharedObject</li>
</ul>
<p>It is great we have all these <a href="http://www.adobe.com/products/flashmediainteractive/features/">new features with every new version of Flash Media Server</a>, but as long as it is absolutely unstable, I do not know whether I will ever count on Flash Media Server anymore.</p>
<p>update Mar 10, 2010:</p>
<blockquote><p>We have seen similar issues and the best work around is to have your clients connect on alternate cores/servers. The way to accomplish this really depends on your type of application. (<a href="http://forums.adobe.com/message/2647671#2647671">Adobe Forums</a>)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2009/10/fms-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

