-
1. Re: cxf-bc samples
llwang0455 May 11, 2011 6:28 AM (in response to llwang0455)Hi, I wrote a test case by osgi packaging,and I also config the jetty thread pool size by using an xml file,but it seamed not in action .
would anyone who helps me to look at it to see if there is something I config wrong?
Thanks!
The attach file is the deploy file in servicemix4.2.0_home\deploy folder.
-
2. Re: cxf-bc samples
ffang May 11, 2011 7:14 AM (in response to llwang0455)Hi,
Some notes.
1. As you mentioned you're using OSGi package, so you shouldn't comment out
from META-INF/spring/beans.xml
2. You'd better also put jettyConfig.xml into META-INF/spring folder
3. why you say your jetty thread pool configuration takes no effect?
4. 4.2 is quite old version so I strongly suggest you should use latest release from fuse[1]
http://repo.fusesource.com/nexus/content/repositories/releases/org/apache/servicemix/apache-servicemix/4.3.1-fuse-01-09/
Freeman
-
3. Re: cxf-bc samples
llwang0455 May 11, 2011 7:59 AM (in response to ffang)Hi, thanks very much for your continually answers! As your notes,I put my notion as follows,hope your attention.
1. If I don't comment the bean "",
then in the log file it will has an exception that the provider's endpoint key
is already bounded.
2.Ok,I will modify it.
3.I did the same test as before(jetty thread pool size not configged),but the errors appreared in two minitues as well,unfortunately.It has almost the same test result as not adding configurations.
4.I will use the newest version.
Thanks a lot.
-
4. Re: cxf-bc samples
ffang May 11, 2011 9:26 PM (in response to llwang0455)Hi,
1."an exception that the provider's endpoint key
is already bounded"
means you already deploy a bundle which has a JBI endpoint with same service/endpoint name with the one from this bundle, you should find it out and fix it but not comment out ""
3.What's the error appreared in two minitues?
I guess you do some performance test but it may involve several other configuration(thread pool configuration for JBI compoment and JBI/NMR, etc), generally you can't easily determine the jetty thread pool not take effect, right?
If you just wanna know if jettyConfig get picked up, you can configure it with some obvious feature like SSL, so that a client without SSL can't connect it at all, take a look at to get more details
http://cxf.apache.org/docs/jetty-configuration.html
Freeman
-
5. Re: cxf-bc samples
llwang0455 May 11, 2011 9:52 PM (in response to ffang)Hello,again thanks first!
I understand your meaning of the comment out bean,I will change it.
When I do load test ,in two minitues,the test tool shows some errors and failed transaction,it is that some requests can't not arrive the destination(the connection refused exception),and the other is the http destination can't be accessed,I use 600 threads concurrent.
Do you mean that I should add some config files like org.apache.servicemix.nmr.cfg and
org.apache.servicemix.components.cxfbc.cfg in the smx_home\etc folder,and I also can config the jetty thread pool size in each bundle? Or I only config the global files is ok?
Hope your reply!
-
6. Re: cxf-bc samples
ffang May 11, 2011 10:03 PM (in response to llwang0455)Hi,
I believe you need fine-tuned both if you wanna a good performance.
Freeman
-
7. Re: cxf-bc samples
llwang0455 May 11, 2011 10:08 PM (in response to ffang)Thank you!
I will try it.
Btw,I test the concurrent 600 threads,what size do you think I should config of the maxThreads in jettyConfig.xml ? And also the corePoolSize and the queuesize?
llwang0455
-
8. Re: cxf-bc samples
llwang0455 May 12, 2011 6:04 AM (in response to llwang0455)Why the exception occured when the minthreads attribute in jetty thread pool size configuration being setted larger than 250?