camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From XoshniK <tegashvili.da...@gmail.com>
Subject Only 200 threads limit in Jetty.
Date Thu, 15 Dec 2016 00:01:55 GMT
Hello.

Need help in configuring Jetty to run with more than 200 threads.
While performing load test (Soap requests, 250 threads) I always get
following results in hawtio (only 198 request in queue):

<http://camel.465427.n5.nabble.com/file/n5791477/Hawtio.png> 

Following configuration used:

*jetty.xml*

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC &quot;-//Jetty//Configure//EN&quot;
&quot;http://www.eclipse.org/jetty/configure_9_0.dtd&quot;>

<Configure id="Server" class="org.eclipse.jetty.server.Server">
	<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
		<Set name="secureScheme">https</Set>
		<Set name="securePort">
			<Property name="jetty.secure.port" default="8443" />
		</Set>
		<Set name="outputBufferSize">32768</Set>
		<Set name="requestHeaderSize">8192</Set>
		<Set name="responseHeaderSize">8192</Set>
		<Set name="sendServerVersion">true</Set>
		<Set name="sendDateHeader">false</Set>
		<Set name="headerCacheSize">512</Set>
	</New>

    <Call name="addBean">
        <Arg>
            <New class="org.eclipse.jetty.jaas.JAASLoginService">
                <Set name="name">karaf</Set>
                <Set name="loginModuleName">karaf</Set>
                <Set name="roleClassNames">
                    <Array type="java.lang.String">
                       
<Item>org.apache.karaf.jaas.boot.principal.RolePrincipal
                        </Item>
                    </Array>
                </Set>
            </New>
        </Arg>
    </Call>
    <Call name="addBean">
        <Arg>
            <New class="org.eclipse.jetty.jaas.JAASLoginService">
                <Set name="name">default</Set>
                <Set name="loginModuleName">karaf</Set>
                <Set name="roleClassNames">
                    <Array type="java.lang.String">
                       
<Item>org.apache.karaf.jaas.boot.principal.RolePrincipal
                        </Item>
                    </Array>
                </Set>
            </New>
        </Arg>
    </Call>

</Configure>



*camel.xml*

<?xml version="1.0" encoding="UTF-8"?>

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="
           http://www.osgi.org/xmlns/blueprint/v1.0.0
https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">



  <bean id="enrichBean" class="org.apache.camel.example.rest.EnrichBean"/>
    <bean id="myCustom"
class="org.apache.camel.example.rest.MyCustomLoadBalancer"/>
    <bean id="metricsFactory"
class="org.apache.camel.component.metrics.routepolicy.MetricsRoutePolicyFactory"/>

        <camelContext id="camel_proxy_tst"
xmlns="http://camel.apache.org/schema/blueprint" streamCache="true"
messageHistory="true">

        <errorHandler id="eh2" redeliveryPolicyRef="myPolicy2"/>

        <errorHandler id="noErrorHandler" type="NoErrorHandler"/>

        
        <redeliveryPolicyProfile id="myPolicy2" maximumRedeliveries="7"
redeliveryDelay="500" retryAttemptedLogLevel="WARN"/>

        <route id="atc_input_route" streamCache="true" 
errorHandlerRef="eh2">
            <from id="localhost_8985_eai_anon_rus"
uri="jetty:http://localhost:8985/eai_anon_rus/?optionsEnabled=true&amp;useContinuation=true&amp;matchOnUriPrefix=true"/>
            <to id="direct_sub" uri="seda:input"/>
        </route>
        <route id="atc_redelivery_sub_route"
errorHandlerRef="noErrorHandler">
            <from
uri="seda:input?limitConcurrentConsumers=false&amp;concurrentConsumers=1000"/>
			<delay>
            <constant>2900</constant>
        </delay>
            <to id="log_tst_END" uri="log:tst_END?level=DEBUG"/>
			</route>
    </camelContext>
   </blueprint>



--
View this message in context: http://camel.465427.n5.nabble.com/Only-200-threads-limit-in-Jetty-tp5791477.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message