<?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/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>jetty-users</title>
		<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/maillist.html</link>
		<description>jetty-users</description>
		<language>en-us</language>
		<pubDate>Wed, 23 May 2012 08:40:09 GMT</pubDate>
		<lastBuildDate>Wed, 23 May 2012 08:40:09 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>jetty-users</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/maillist.html</link>
		</image>
 

	<item>
		<title>Re: [jetty-users] [SPAM] Re: jetty-maven-plugin v7.5.0.v20110901 no longer respects system properties?</title>
		<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02244.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre>Aaron,

Out of curiosity, can you try instead shifting your &lt;systemProperties&gt;
up to be the first configuration of the plugin, before any &lt;webApp&gt;
(aliased also to &lt;webAppConfig&gt;) or any other elements? Perhaps that
will get the system property set before any Jetty classes are loaded
that cause the loading of AbstractLifeCycle class and its static LOG
reference.

Let me know if that works and I'll update the doco.

thanks
Jan

On 22 May 2012 17:20, Pieper, Aaron &lt;PieperA@xxxxxxxxxxxxxx&gt; wrote:
&gt; I did a little more research and found out what's causing this conflict between newer versions of Jetty, and Log4j.
&gt;
&gt; When the AbstractLifeCycle class is loaded in Jetty 7.5.0, it initializes its static LOG field which results in a getLogger call, initializing the Log4j framework. At this time, the &quot;log4j.configuration&quot; system property is unset. ObjectWithFieldsConverter.processConfiguration is later invoked, which sets the system properties appropriately. However, by this time, log4j has already been initialized improperly because of AbstractLifeCycle's getLogger invocation.
&gt;
&gt; Back in Jetty 7.4.5, setProperty was invoked by ObjectWithFieldsConverter.processConfiguration, but the log was not initialized until later. There were no Jetty calls to getLogger, so the logging system wasn't initialized until my web application started up. The AbstractLifeCycle.LOG field is new to Jetty 7.5.0, and causes the Log4j system to be initialized before the jetty-maven-plugin has a chance to set system properties.
&gt;
&gt; I was able to work around this problem by using the properties-maven-plugin (<a  href="http://mojo.codehaus.org/properties-maven-plugin/">http://mojo.codehaus.org/properties-maven-plugin/</a>) to set the system property before Jetty's AbstractLifeCycle class is loaded. However, this seems like a regression in Jetty since after Jetty 7.5.0, the SystemProperties parameter can no longer be used to initialize logging systems like log4j. This regression seems like it would also affect any other logging systems which lazily initialize in response to the first getLogger call.
&gt;
&gt; - Aaron
&gt;
&gt; -----Original Message-----
&gt; From: jetty-users-bounces@xxxxxxxxxxx [<a  href="mailto:jetty-users-bounces@xxxxxxxxxxx">mailto:jetty-users-bounces@xxxxxxxxxxx</a>] On Behalf Of Jan Bartel
&gt; Sent: Monday, May 21, 2012 10:07 AM
&gt; To: JETTY user mailing list
&gt; Subject: [SPAM] Re: [jetty-users] jetty-maven-plugin v7.5.0.v20110901 no longer respects system properties?
&gt; Importance: Low
&gt;
&gt; Can you print out or otherwise examine what the value of the SystemProperty that is set via the pom.xml is at runtime? AFAIK, the system property stuff has not changed in a long time ... BTW,
&gt; jetty-7.5 is still a very old version, the most recent being 7.6.3.
&gt;
&gt; Jan
&gt;
&gt; On 15 May 2012 20:44, Pieper, Aaron &lt;PieperA@xxxxxxxxxxxxxx&gt; wrote:
&gt;&gt; I run Jetty via the jetty-maven-plugin, from the command line, with a
&gt;&gt; command like &quot;mvn jetty:run&quot;. After upgrading from jetty-maven-plugin
&gt;&gt; v7.4.5.v20110725 to v7.5.0.v20110901, my log4j.properties file is no
&gt;&gt; longer being parsed. It is not being parsed because the
&gt;&gt; log4j.configuration system property is no longer being set when
&gt;&gt; running Jetty. I have this configuration in my pom.xml...
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; &lt;plugin&gt;
&gt;&gt;
&gt;&gt; &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
&gt;&gt;
&gt;&gt; &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
&gt;&gt;
&gt;&gt; &lt;version&gt;7.5.0.v20110901&lt;/version&gt;
&gt;&gt;
&gt;&gt; &lt;configuration&gt;
&gt;&gt;
&gt;&gt; &#xA0; &lt;war&gt;${project.build.directory}/${webappName}.war&lt;/war&gt;
&gt;&gt;
&gt;&gt; &#xA0; ... snip ...
&gt;&gt;
&gt;&gt; &#xA0; &lt;systemProperties&gt;
&gt;&gt;
&gt;&gt; &#xA0;&#xA0;&lt;systemProperty&gt;
&gt;&gt;
&gt;&gt; &#xA0; &#xA0;&#xA0;&lt;key&gt;log4j.configuration&lt;/key&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; &lt;value&gt;file:${project.build.outputDirectory}/log4j.properties&lt;/value&gt;
&gt;&gt;
&gt;&gt; &#xA0;&#xA0;&lt;/systemProperty&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; As of Jetty v7.5.0, this log4j.configuration system property is no
&gt;&gt; longer being respected. I can still set the property via the command
&gt;&gt; line with &quot;mvn jetty:run
&gt;&gt; -Dlog4j.configuration=file:./target/classes/log4j.properties&quot;,
&gt;&gt; this works fine. I suspect this problem is due to a change in syntax
&gt;&gt; of the systemProperties xml element.
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; There is documentation for setting up the systemProperties element
&gt;&gt; with the Jetty 6 plugin
&gt;&gt; (<a  href="http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyP">http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyP</a>
&gt;&gt; lugin-sysprops), but I cannot find any comparable documentation for
&gt;&gt; the Jetty 7 plugin. The closest thing I can find
&gt;&gt; (<a  href="http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin">http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin</a>) says, &quot;For
&gt;&gt; more information, see Setting System Properties,&quot; but there is no
&gt;&gt; hyperlink anywhere. Was this omitted accidentally?
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; - Aaron
&gt;&gt;
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; jetty-users mailing list
&gt;&gt; jetty-users@xxxxxxxxxxx
&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/jetty-users">https://dev.eclipse.org/mailman/listinfo/jetty-users</a>
&gt;&gt;
&gt; _______________________________________________
&gt; jetty-users mailing list
&gt; jetty-users@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/jetty-users">https://dev.eclipse.org/mailman/listinfo/jetty-users</a>
&gt; _______________________________________________
&gt; jetty-users mailing list
&gt; jetty-users@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/jetty-users">https://dev.eclipse.org/mailman/listinfo/jetty-users</a>

</pre>]]></content:encoded>
		<pubDate>Wed, 23 May 2012 08:31:30 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02244.html</guid>
		<author>janb@xxxxxxx (Jan Bartel)</author>
	</item>


	<item>
		<title>Re: [jetty-users] [SPAM] Re: jetty-maven-plugin v7.5.0.v20110901 no	longer respects system properties?</title>
		<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02243.html</link>
		<description> _______________________________________________ jetty-users mailing list jetty-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/jetty-users </description>
		<content:encoded><![CDATA[<pre>I did a little more research and found out what's causing this conflict between newer versions of Jetty, and Log4j.

When the AbstractLifeCycle class is loaded in Jetty 7.5.0, it initializes its static LOG field which results in a getLogger call, initializing the Log4j framework. At this time, the &quot;log4j.configuration&quot; system property is unset. ObjectWithFieldsConverter.processConfiguration is later invoked, which sets the system properties appropriately. However, by this time, log4j has already been initialized improperly because of AbstractLifeCycle's getLogger invocation.

Back in Jetty 7.4.5, setProperty was invoked by ObjectWithFieldsConverter.processConfiguration, but the log was not initialized until later. There were no Jetty calls to getLogger, so the logging system wasn't initialized until my web application started up. The AbstractLifeCycle.LOG field is new to Jetty 7.5.0, and causes the Log4j system to be initialized before the jetty-maven-plugin has a chance to set system properties.

I was able to work around this problem by using the properties-maven-plugin (<a  href="http://mojo.codehaus.org/properties-maven-plugin/">http://mojo.codehaus.org/properties-maven-plugin/</a>) to set the system property before Jetty's AbstractLifeCycle class is loaded. However, this seems like a regression in Jetty since after Jetty 7.5.0, the SystemProperties parameter can no longer be used to initialize logging systems like log4j. This regression seems like it would also affect any other logging systems which lazily initialize in response to the first getLogger call.

- Aaron

-----Original Message-----
From: jetty-users-bounces@xxxxxxxxxxx [<a  href="mailto:jetty-users-bounces@xxxxxxxxxxx">mailto:jetty-users-bounces@xxxxxxxxxxx</a>] On Behalf Of Jan Bartel
Sent: Monday, May 21, 2012 10:07 AM
To: JETTY user mailing list
Subject: [SPAM] Re: [jetty-users] jetty-maven-plugin v7.5.0.v20110901 no longer respects system properties?
Importance: Low

Can you print out or otherwise examine what the value of the SystemProperty that is set via the pom.xml is at runtime? AFAIK, the system property stuff has not changed in a long time ... BTW,
jetty-7.5 is still a very old version, the most recent being 7.6.3.

Jan

On 15 May 2012 20:44, Pieper, Aaron &lt;PieperA@xxxxxxxxxxxxxx&gt; wrote:
&gt; I run Jetty via the jetty-maven-plugin, from the command line, with a 
&gt; command like &quot;mvn jetty:run&quot;. After upgrading from jetty-maven-plugin
&gt; v7.4.5.v20110725 to v7.5.0.v20110901, my log4j.properties file is no 
&gt; longer being parsed. It is not being parsed because the 
&gt; log4j.configuration system property is no longer being set when 
&gt; running Jetty. I have this configuration in my pom.xml...
&gt;
&gt;
&gt;
&gt; &lt;plugin&gt;
&gt;
&gt; &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
&gt;
&gt; &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
&gt;
&gt; &lt;version&gt;7.5.0.v20110901&lt;/version&gt;
&gt;
&gt; &lt;configuration&gt;
&gt;
&gt; &#xA0; &lt;war&gt;${project.build.directory}/${webappName}.war&lt;/war&gt;
&gt;
&gt; &#xA0; ... snip ...
&gt;
&gt; &#xA0; &lt;systemProperties&gt;
&gt;
&gt; &#xA0;&#xA0;&lt;systemProperty&gt;
&gt;
&gt; &#xA0; &#xA0;&#xA0;&lt;key&gt;log4j.configuration&lt;/key&gt;
&gt;
&gt; &#xA0; &#xA0;&#xA0;
&gt; &lt;value&gt;file:${project.build.outputDirectory}/log4j.properties&lt;/value&gt;
&gt;
&gt; &#xA0;&#xA0;&lt;/systemProperty&gt;
&gt;
&gt;
&gt;
&gt; As of Jetty v7.5.0, this log4j.configuration system property is no 
&gt; longer being respected. I can still set the property via the command 
&gt; line with &quot;mvn jetty:run 
&gt; -Dlog4j.configuration=file:./target/classes/log4j.properties&quot;,
&gt; this works fine. I suspect this problem is due to a change in syntax 
&gt; of the systemProperties xml element.
&gt;
&gt;
&gt;
&gt; There is documentation for setting up the systemProperties element 
&gt; with the Jetty 6 plugin 
&gt; (<a  href="http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyP">http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyP</a>
&gt; lugin-sysprops), but I cannot find any comparable documentation for 
&gt; the Jetty 7 plugin. The closest thing I can find
&gt; (<a  href="http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin">http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin</a>) says, &quot;For 
&gt; more information, see Setting System Properties,&quot; but there is no 
&gt; hyperlink anywhere. Was this omitted accidentally?
&gt;
&gt;
&gt;
&gt; Thanks,
&gt;
&gt;
&gt;
&gt; - Aaron
&gt;
&gt;
&gt; _______________________________________________
&gt; jetty-users mailing list
&gt; jetty-users@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/jetty-users">https://dev.eclipse.org/mailman/listinfo/jetty-users</a>
&gt;
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/jetty-users">https://dev.eclipse.org/mailman/listinfo/jetty-users</a>

</pre>]]></content:encoded>
		<pubDate>Tue, 22 May 2012 15:20:51 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02243.html</guid>
		<author>PieperA@xxxxxxx (Pieper, Aaron)</author>
	</item>
	<item>
		<title>Re: [jetty-users] Jetty5: CPU-Usage Problem</title>
		<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02242.html</link>
		<description>Some additional infos: root@phobos ~ # uname -a Linux phobos 2.6.32-6-pve #1 SMP Mon Jan 23 08:27:52 CET 2012 x86_64 GNU/Linux root@phobos [...] # ./java -version java version &amp;quot;1.7.0_03&amp;quot; Java(TM) SE Runtime Environment (build 1.7.0_03-b04) Java HotSpot(TM)...</description>
		<content:encoded><![CDATA[<pre>Some additional infos:

root@phobos ~ # uname -a
Linux phobos 2.6.32-6-pve #1 SMP Mon Jan 23 08:27:52 CET 2012 x86_64 GNU/Linux

root@phobos [...] # ./java -version
java version &quot;1.7.0_03&quot;
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode) 

-----Original Message-----
From: jetty-users-bounces@xxxxxxxxxxx [<a  href="mailto:jetty-users-bounces@xxxxxxxxxxx">mailto:jetty-users-bounces@xxxxxxxxxxx</a>] On Behalf Of Maximilian B&#xF6;hm
Sent: Tuesday, May 22, 2012 2:51 PM
To: jetty-users@xxxxxxxxxxx
Subject: [jetty-users] Jetty5: CPU-Usage Problem

Hi Guys,

We are running jetty5 on approximately ~50 server upwards. Mostly there are more than 40 virtualhosts on a machine.

Now we have a 100% cpu-usage on two of this servers. We already switched the hardware to virtualisation and now I replaced all regulary programfiles from files of a working server.

Through ps -eLf and jstack I found the following (never ending) Thread:

&quot;SocketListener0-7&quot; prio=10 tid=0x0000000001eb7000 nid=0x5d7a runnable [0x00007f569b2fc000]
   java.lang.Thread.State: RUNNABLE
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Throwable.java:782)
        - locked &lt;0x00000000d1b33c60&gt; (a java.lang.IllegalMonitorStateException)
        at java.lang.Throwable.&lt;init&gt;(Throwable.java:250)
        at java.lang.Exception.&lt;init&gt;(Exception.java:54)
        at java.lang.RuntimeException.&lt;init&gt;(RuntimeException.java:51)
        at java.lang.IllegalMonitorStateException.&lt;init&gt;(IllegalMonitorStateException.java:50)
        at org.mortbay.util.DateCache.format(DateCache.java:250)
        - locked &lt;0x00000000ddc05c90&gt; (a org.mortbay.util.DateCache)
        at org.mortbay.http.HttpRequest.getTimeStampStr(HttpRequest.java:154)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:937)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

What can cause this?
I know, jetty5... Upgrading and so on. We work on it. We made a mistake ealier, integrating jetty too deep into our software...

Best regards &amp; Thanks
Max B&#xF6;hm
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/jetty-users">https://dev.eclipse.org/mailman/listinfo/jetty-users</a>

</pre>]]></content:encoded>
		<pubDate>Tue, 22 May 2012 12:54:50 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02242.html</guid>
		<author>maximilian.boehm@xxxxxxx (Maximilian B&#xF6;hm)</author>
	</item>
	<item>
		<title>[jetty-users] Jetty5: CPU-Usage Problem</title>
		<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02241.html</link>
		<description>Hi Guys, We are running jetty5 on approximately ~50 server upwards. Mostly there are more than 40 virtualhosts on a machine. Now we have a 100% cpu-usage on two of this servers. We already switched the hardware to virtualisation and now I replaced all regu...</description>
		<content:encoded><![CDATA[<pre>Hi Guys,

We are running jetty5 on approximately ~50 server upwards. Mostly there are more than 40 virtualhosts on a machine.

Now we have a 100% cpu-usage on two of this servers. We already switched the hardware to virtualisation and now I replaced all regulary programfiles from files of a working server.

Through ps -eLf and jstack I found the following (never ending) Thread:

&quot;SocketListener0-7&quot; prio=10 tid=0x0000000001eb7000 nid=0x5d7a runnable [0x00007f569b2fc000]
   java.lang.Thread.State: RUNNABLE
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Throwable.java:782)
        - locked &lt;0x00000000d1b33c60&gt; (a java.lang.IllegalMonitorStateException)
        at java.lang.Throwable.&lt;init&gt;(Throwable.java:250)
        at java.lang.Exception.&lt;init&gt;(Exception.java:54)
        at java.lang.RuntimeException.&lt;init&gt;(RuntimeException.java:51)
        at java.lang.IllegalMonitorStateException.&lt;init&gt;(IllegalMonitorStateException.java:50)
        at org.mortbay.util.DateCache.format(DateCache.java:250)
        - locked &lt;0x00000000ddc05c90&gt; (a org.mortbay.util.DateCache)
        at org.mortbay.http.HttpRequest.getTimeStampStr(HttpRequest.java:154)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:937)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

What can cause this?
I know, jetty5... Upgrading and so on. We work on it. We made a mistake ealier, integrating jetty too deep into our software...

Best regards &amp; Thanks
Max B&#xF6;hm

</pre>]]></content:encoded>
		<pubDate>Tue, 22 May 2012 12:51:11 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02241.html</guid>
		<author>maximilian.boehm@xxxxxxx (Maximilian B&#xF6;hm)</author>
	</item>


	<item>
		<title>Re: [jetty-users] jetty-maven-plugin v7.5.0.v20110901 no longer respects system properties?</title>
		<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02240.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre>Can you print out or otherwise examine what the value of the
SystemProperty that is set via the pom.xml is at runtime? AFAIK, the
system property stuff has not changed in a long time ... BTW,
jetty-7.5 is still a very old version, the most recent being 7.6.3.

Jan

On 15 May 2012 20:44, Pieper, Aaron &lt;PieperA@xxxxxxxxxxxxxx&gt; wrote:
&gt; I run Jetty via the jetty-maven-plugin, from the command line, with a
&gt; command like &#x201C;mvn jetty:run&#x201D;. After upgrading from jetty-maven-plugin
&gt; v7.4.5.v20110725 to v7.5.0.v20110901, my log4j.properties file is no longer
&gt; being parsed. It is not being parsed because the log4j.configuration system
&gt; property is no longer being set when running Jetty. I have this
&gt; configuration in my pom.xml...
&gt;
&gt;
&gt;
&gt; &lt;plugin&gt;
&gt;
&gt; &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
&gt;
&gt; &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
&gt;
&gt; &lt;version&gt;7.5.0.v20110901&lt;/version&gt;
&gt;
&gt; &lt;configuration&gt;
&gt;
&gt; &#xA0; &lt;war&gt;${project.build.directory}/${webappName}.war&lt;/war&gt;
&gt;
&gt; &#xA0; ... snip ...
&gt;
&gt; &#xA0; &lt;systemProperties&gt;
&gt;
&gt; &#xA0;&#xA0;&lt;systemProperty&gt;
&gt;
&gt; &#xA0; &#xA0;&#xA0;&lt;key&gt;log4j.configuration&lt;/key&gt;
&gt;
&gt; &#xA0; &#xA0;&#xA0;&lt;value&gt;file:${project.build.outputDirectory}/log4j.properties&lt;/value&gt;
&gt;
&gt; &#xA0;&#xA0;&lt;/systemProperty&gt;
&gt;
&gt;
&gt;
&gt; As of Jetty v7.5.0, this log4j.configuration system property is no longer
&gt; being respected. I can still set the property via the command line with &#x201C;mvn
&gt; jetty:run -Dlog4j.configuration=file:./target/classes/log4j.properties&#x201D;,
&gt; this works fine. I suspect this problem is due to a change in syntax of the
&gt; systemProperties xml element.
&gt;
&gt;
&gt;
&gt; There is documentation for setting up the systemProperties element with the
&gt; Jetty 6 plugin
&gt; (<a  href="http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyPlugin-sysprops">http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyPlugin-sysprops</a>),
&gt; but I cannot find any comparable documentation for the Jetty 7 plugin. The
&gt; closest thing I can find
&gt; (<a  href="http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin">http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin</a>) says, &#x201C;For more
&gt; information, see Setting System Properties,&#x201D; but there is no hyperlink
&gt; anywhere. Was this omitted accidentally?
&gt;
&gt;
&gt;
&gt; Thanks,
&gt;
&gt;
&gt;
&gt; - Aaron
&gt;
&gt;
&gt; _______________________________________________
&gt; jetty-users mailing list
&gt; jetty-users@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/jetty-users">https://dev.eclipse.org/mailman/listinfo/jetty-users</a>
&gt;

</pre>]]></content:encoded>
		<pubDate>Mon, 21 May 2012 14:07:25 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02240.html</guid>
		<author>janb@xxxxxxx (Jan Bartel)</author>
	</item>


	<item>
		<title>Re: [jetty-users] benchmarking sample code</title>
		<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02239.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre>the jetty-client is the way we typically test jetty itself

there are a number of examples of its usage scattered throughout our
test cases, most of what you need in the tests of jetty-client itself
I suspect

You can also look to the BayeuxClient in the cometd project as a solid
example of what can be done with it

also the websocket client is based on it as well in jetty-websocket I believe

alternately I have heard good things of netty as a client as well if
you want to try something different

cheers,
jesse

--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx


On Thu, May 17, 2012 at 6:51 PM, S Ahmed &lt;sahmed1020@xxxxxxxxx&gt; wrote:
&gt; Any advice?
&gt;
&gt;
&gt; On Tue, May 15, 2012 at 7:44 PM, S Ahmed &lt;sahmed1020@xxxxxxxxx&gt; wrote:
&gt;&gt;
&gt;&gt; I want to benchmark my application, and was hoping there was some sample
&gt;&gt; code that I could model my code from.
&gt;&gt;
&gt;&gt; Basically I need to make a http post to my servlet handler, sending it a
&gt;&gt; xml file.
&gt;&gt;
&gt;&gt; I have used apache bench so far, and looked at jmeter but was hoping I
&gt;&gt; could jus write this bit myself as I need to modify the xml file per http
&gt;&gt; post (or every x that I post).
&gt;&gt;
&gt;&gt; I am looking to see how things work when I hit the site and sustain around
&gt;&gt; 3K requests per second.
&gt;&gt;
&gt;&gt; Are there any good samples of this type of benchmarking that I could look
&gt;&gt; at?
&gt;&gt;
&gt;&gt; I have used apache bench already, but want a little more control in terms
&gt;&gt; of the xml file that I am posting (the xml file contains user credentials
&gt;&gt; that I want to mix and match etc.)
&gt;
&gt;
&gt;
&gt; _______________________________________________
&gt; jetty-users mailing list
&gt; jetty-users@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/jetty-users">https://dev.eclipse.org/mailman/listinfo/jetty-users</a>
&gt;

</pre>]]></content:encoded>
		<pubDate>Fri, 18 May 2012 00:49:42 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02239.html</guid>
		<author>jesse.mcconnell@xxxxxxx (Jesse McConnell)</author>
	</item>
	<item>
		<title>Re: [jetty-users] benchmarking sample code</title>
		<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02238.html</link>
		<description></description>
		<content:encoded><![CDATA[Any advice?<br><br><div class="gmail_quote">On Tue, May 15, 2012 at 7:44 PM, S Ahmed <span dir="ltr">&lt;<a href="mailto:sahmed1020@xxxxxxxxx" target="_blank">sahmed1020@xxxxxxxxx</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I want to benchmark my application, and was hoping there was some sample code that I could model my code from.<div><br>Basically I need to make a http post to my servlet handler, sending it a xml file.</div><div><br></div>


<div>I have used apache bench so far, and looked at jmeter but was hoping I could jus write this bit myself as I need to modify the xml file per http post (or every x that I post).</div><div><br></div><div>I am looking to see how things work when I hit the site and sustain around 3K requests per second.</div>


<div><br></div><div>Are there any good samples of this type of benchmarking that I could look at?</div><div><br></div><div>I have used apache bench already, but want a little more control in terms of the xml file that I am posting (the xml file contains user credentials that I want to mix and match etc.)</div>


</blockquote></div><br>
]]></content:encoded>
		<pubDate>Thu, 17 May 2012 23:51:39 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02238.html</guid>
		<author>sahmed1020@xxxxxxx (S Ahmed)</author>
	</item>


	<item>
		<title>[jetty-users] benchmarking sample code</title>
		<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02237.html</link>
		<description>I want to benchmark my application, and was hoping there was some sample code that I could model my code from.Basically I need to make a http post to my servlet handler, sending it a xml file. I have used apache bench so far, and looked at jmeter but was h...</description>
		<content:encoded><![CDATA[I want to benchmark my application, and was hoping there was some sample code that I could model my code from.<div><br>Basically I need to make a http post to my servlet handler, sending it a xml file.</div><div><br></div>

<div>I have used apache bench so far, and looked at jmeter but was hoping I could jus write this bit myself as I need to modify the xml file per http post (or every x that I post).</div><div><br></div><div>I am looking to see how things work when I hit the site and sustain around 3K requests per second.</div>

<div><br></div><div>Are there any good samples of this type of benchmarking that I could look at?</div><div><br></div><div>I have used apache bench already, but want a little more control in terms of the xml file that I am posting (the xml file contains user credentials that I want to mix and match etc.)</div>

]]></content:encoded>
		<pubDate>Tue, 15 May 2012 23:44:38 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02237.html</guid>
		<author>sahmed1020@xxxxxxx (S Ahmed)</author>
	</item>
	<item>
		<title>[jetty-users] jetty-maven-plugin v7.5.0.v20110901 no longer	respects system properties?</title>
		<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02236.html</link>
		<description>I run Jetty via the jetty-maven-plugin, from the command line, with a command like &amp;#8220;mvn jetty:run&amp;#8221;. After upgrading from jetty-maven-plugin v7.4.5.v20110725 to v7.5.0.v20110901, my log4j.properties file is no longer being parsed. It is not being parsed bec...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: purple } "><div class=WordSection1><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'>I run Jetty via the jetty-maven-plugin, from the command line, with a command like &#8220;mvn jetty:run&#8221;. After upgrading from jetty-maven-plugin v7.4.5.v20110725 to v7.5.0.v20110901, my log4j.properties file is no longer being parsed. It is not being parsed because the log4j.configuration system property is no longer being set when running Jetty. I have this configuration in my pom.xml...<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'>&lt;plugin&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'> &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'> &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'> &lt;version&gt;7.5.0.v20110901&lt;/version&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'> &lt;configuration&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'>&nbsp; &lt;war&gt;${project.build.directory}/${webappName}.war&lt;/war&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'>&nbsp; ... snip ...<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'>&nbsp; &lt;systemProperties&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'> &nbsp;&nbsp;&lt;systemProperty&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'>&nbsp; &nbsp;&nbsp;&lt;key&gt;log4j.configuration&lt;/key&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'>&nbsp; &nbsp;&nbsp;&lt;value&gt;file:${project.build.outputDirectory}/log4j.properties&lt;/value&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'> &nbsp;&nbsp;&lt;/systemProperty&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'>As of Jetty v7.5.0, this log4j.configuration system property is no longer being respected. I can still set the property via the command line with &#8220;mvn jetty:run -Dlog4j.configuration=file:./target/classes/log4j.properties&#8221;, this works fine. I suspect this problem is due to a change in syntax of the systemProperties xml element.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'>There is documentation for setting up the systemProperties element with the Jetty 6 plugin (<a href="http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyPlugin-sysprops">http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyPlugin-sysprops</a>), but I cannot find any comparable documentation for the Jetty 7 plugin. The closest thing I can find (<a href="http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin">http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin</a>) says, &#8220;For more information, see Setting System Properties,&#8221; but there is no hyperlink anywhere. Was this omitted accidentally?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Console"'> - Aaron<o:p></o:p></span></p></div></td></tr></table>]]></content:encoded>
		<pubDate>Tue, 15 May 2012 18:44:43 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02236.html</guid>
		<author>PieperA@xxxxxxx (Pieper, Aaron)</author>
	</item>


	<item>
		<title>Re: [jetty-users] Streaming data TO Jetty?</title>
		<link>http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02235.html</link>
		<description> Depends on the loads we're talking about. I have seen Jetty serving 40k and more POSTS per second, so &amp;quot;more scalable&amp;quot; depends on your mileage. A good viable alternative is to use WebSocket. Jetty has a WebSocket client that you can use to stream data to t...</description>
		<content:encoded><![CDATA[<pre>Hi,

On Mon, May 14, 2012 at 7:20 AM, Otis Gospodnetic
&lt;otis_gospodnetic@xxxxxxxxx&gt; wrote:
&gt; Hello,
&gt;
&gt; I'd like to be able to push data (more or less a continuous stream) from
&gt; clients (e.g. using Apache HttpClient library) TO Jetty.
&gt; I currently have a system where clients make use of KeepAlives, which is
&gt; nice, but they still issue an explicit HTTP POST request&#xC2;to Jetty&#xC2;every N
&gt; seconds.
&gt;
&gt; Is there a way to avoid making explicit HTTP requests like that and&#xC2;would
&gt; streaming the data (somehow) actually be more scalable than issuing explicit
&gt; POSTs?

Depends on the loads we're talking about. I have seen Jetty serving
40k and more POSTS per second, so &quot;more scalable&quot; depends on your
mileage.

&gt; Is this doable and how exactly does one stream data to Jetty?

A good viable alternative is to use WebSocket.
Jetty has a WebSocket client that you can use to stream data to the
server, and that is way more efficient than HTTP.
For a comparison, see
<a  href="http://webtide.intalio.com/2011/09/cometd-2-4-0-websocket-benchmarks/">http://webtide.intalio.com/2011/09/cometd-2-4-0-websocket-benchmarks/</a>.

A full fledged solution would be to use CometD (<a  href="http://cometd.org">http://cometd.org</a>),
that gives you authentication, network failure detection and automatic
reconnection, an extensible framework (with already available
extensions, for example for message acknowledgement, etc.), transport
fallback, etc., etc.

Simon
-- 
<a  href="http://cometd.org">http://cometd.org</a>
<a  href="http://intalio.com">http://intalio.com</a>
<a  href="http://bordet.blogspot.com">http://bordet.blogspot.com</a>
----
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless.&#xC2;&#xC2; Victoria Livschitz

</pre>]]></content:encoded>
		<pubDate>Mon, 14 May 2012 08:43:02 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02235.html</guid>
		<author>sbordet@xxxxxxx (Simone Bordet)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->

