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?
The attach file is the deploy file in servicemix4.2.0_home\deploy folder.
1. As you mentioned you're using OSGi package, so you shouldn't comment out
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
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.
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?
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!
I believe you need fine-tuned both if you wanna a good performance.
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?
Why the exception occured when the minthreads attribute in jetty thread pool size configuration being setted larger than 250?