<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Nginx Passenger vs JRuby on Jetty</title>
	<atom:link href="http://letsgetdugg.com/2009/08/31/nginx-passenger-vs-jruby-on-jetty/feed/" rel="self" type="application/rss+xml" />
	<link>http://letsgetdugg.com/2009/08/31/nginx-passenger-vs-jruby-on-jetty/</link>
	<description>Random tech jargon</description>
	<lastBuildDate>Mon, 30 Jan 2012 20:30:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Chad Johnson</title>
		<link>http://letsgetdugg.com/2009/08/31/nginx-passenger-vs-jruby-on-jetty/comment-page-1/#comment-112</link>
		<dc:creator>Chad Johnson</dc:creator>
		<pubDate>Wed, 02 Sep 2009 03:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://letsgetdugg.com/?p=322#comment-112</guid>
		<description>There&#039;s a few tweaks to your JRuby opts that I would suggest.

I would try using the latest 1.6 release first and foremost.  1.7 is still an unknown quantity at this time.  Most people enjoying the performance benefits of JRuby are using it on 1.6 currently.

I would also suggest benchmarking with and without -XX:+AggressiveOpts.  That maybe hurting more than helping.

JRuby is definitely higher than MRI on its memory requirements.  If you can spare more than 384m to the JVM heap great.  Give JRuby all you can.

More specifically JRuby is very hard on the New (or Eden) generation of the heap.  I set the new generation for my JRuby apps anywhere from 1/3 to 1/2 the total size of my heap.  You can do that with : -Xmn192m.

Here are a few other options than I am currently setting :

-XX:ParallelGCThreads=8  (where 8 is the number of cpus/cores)
-XX:MaxTenuringThreshold=15 (let objects sit in the new generation longer than they normally would, it will fill up soon enough causing a GC to kick in)</description>
		<content:encoded><![CDATA[<p>There&#8217;s a few tweaks to your JRuby opts that I would suggest.</p>
<p>I would try using the latest 1.6 release first and foremost.  1.7 is still an unknown quantity at this time.  Most people enjoying the performance benefits of JRuby are using it on 1.6 currently.</p>
<p>I would also suggest benchmarking with and without -XX:+AggressiveOpts.  That maybe hurting more than helping.</p>
<p>JRuby is definitely higher than MRI on its memory requirements.  If you can spare more than 384m to the JVM heap great.  Give JRuby all you can.</p>
<p>More specifically JRuby is very hard on the New (or Eden) generation of the heap.  I set the new generation for my JRuby apps anywhere from 1/3 to 1/2 the total size of my heap.  You can do that with : -Xmn192m.</p>
<p>Here are a few other options than I am currently setting :</p>
<p>-XX:ParallelGCThreads=8  (where 8 is the number of cpus/cores)<br />
-XX:MaxTenuringThreshold=15 (let objects sit in the new generation longer than they normally would, it will fill up soon enough causing a GC to kick in)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: victori</title>
		<link>http://letsgetdugg.com/2009/08/31/nginx-passenger-vs-jruby-on-jetty/comment-page-1/#comment-110</link>
		<dc:creator>victori</dc:creator>
		<pubDate>Tue, 01 Sep 2009 15:57:55 +0000</pubDate>
		<guid isPermaLink="false">http://letsgetdugg.com/?p=322#comment-110</guid>
		<description>10,000 iterations? that is quite a lot. Servlet container restarts would be *really* painful if that is the case.</description>
		<content:encoded><![CDATA[<p>10,000 iterations? that is quite a lot. Servlet container restarts would be *really* painful if that is the case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Noordhuis</title>
		<link>http://letsgetdugg.com/2009/08/31/nginx-passenger-vs-jruby-on-jetty/comment-page-1/#comment-109</link>
		<dc:creator>Ben Noordhuis</dc:creator>
		<pubDate>Tue, 01 Sep 2009 11:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://letsgetdugg.com/?p=322#comment-109</guid>
		<description>Victor, your benchmark is possibly flawed because (IIRC) JRuby with a default config only warms up after 10,000 rounds. What happens if you run ab with -n100000?</description>
		<content:encoded><![CDATA[<p>Victor, your benchmark is possibly flawed because (IIRC) JRuby with a default config only warms up after 10,000 rounds. What happens if you run ab with -n100000?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

