Hi,
First please use English only on this forum, as guys watching this
forum are from different cultures.
Hight CPU usage when use jetty with SSL actually is a known issue of
Jetty 7.4.x, it was fixed in Jetty 7.5.1 and afterwards.
What's the exact SMX version you're using? You're using Apache
distribution or Fuse ESB distribution?
If you use Fuse ESB distribution, 4.4.1-fuse-01-06 and afterwards
already fixed it.
If you use Apache distribution, you can find FUSE revised jetty
7.4.5.fuse20111017 here[1] and change jetty version accordingly in
$SMX_HOME/system/org/apache/karaf/assemblies/features/standard/2.2.4/
standard-2.2.4-features.xml,
and then remove $SMX_HOME/data folder and restart SMX.
[1]http://repo.fusesource.com/nexus/content/repositories/releases/org/eclipse/jetty/
Freeman
On 2012-2-26, at 下午8:53, visualjeng wrote:
Sorry! I use chinese.
ServiceMix 4.4.x bug.
org.ops4j.pax.web.cfg內容如下:
org.osgi.service.http.secure.enabled=true
org.ops4j.pax.web.ssl.keystore=etc/cherry.jks
org.ops4j.pax.web.ssl.password=password
org.ops4j.pax.web.ssl.keypassword=password
org.osgi.service.http.port.secure=8443
org.ops4j.pax.web.config.file=etc/jetty.xml
javax.servlet.context.tempdir=data/pax-web-jsp
我以 client 存取 Restful ws or Soap ws後, 總會造成
CPU使用率接近100%, 把ServiceMix關掉後, 及回復正常.
我的client程式如下:
private static void testGetssl1() throws HttpException, IOException
{
String BASE_SERVICE_URL =
"https://localhost:8443/cxf/TestRESTFul/RESTFulService/test1";
SSLProvider trustAll = new SSLProvider();
trustAll.install();
// Header setting
System.out.println();
System.out.println("Sending HTTPS GET request to query
MyFirstRESTFulService info");
HttpClient httpclient = new HttpClient();
GetMethod httpget = new GetMethod(BASE_SERVICE_URL);
httpget.addRequestHeader("Accept" , "text/plain");
// Authorization setting
String encoding = "username:password";
String v_encoding = (new sun.misc.BASE64Encoder()).encode(
encoding.getBytes() );
httpget.addRequestHeader("Authorization", "Basic "+v_encoding);
try {
httpclient.executeMethod(httpget);
System.out.println(httpget.getResponseBodyAsString());
System.out.println("response code:
"+httpget.getStatusCode());
} finally {
httpget.releaseConnection();
}
}
--
View this message in context:
http://servicemix.396122.n5.nabble.com/ServiceMix-4-4-x-bug-access-ssl-RESTFul-ws-or-Soap-ws-tp5516652p5516652.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com