How to reduce the Number of threads running at instance in jetty server ?
- by Thirst for Excellence
i would like to reduce the live threads on server to reduce the bandwidth consumption for data(data pull while application launching time) transfer from my application to clients in my application.
i did setting like
is this setting enough to reduce the bandwidth consumption on jetty server ?
Please help me any one
1) in Jetty.xml:
<Set name="ThreadPool">
<New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
<name="minThreads"> 1 >
<Set name="maxThreads" value=50>
2: services-config.xml
channel-definition id="my-longpolling-amf" class="mx.messaging.channels.AMFChannel"
endpoint url="http://MyIp:8400/blazeds/messagebroker/amflongpolling" class="flex.messaging.endpoints.AMFEndpoint"
properties
<polling-enabled>true</polling-enabled>
<polling-interval-seconds>1</polling-interval-seconds>
<wait-interval-millis>60000</wait-interval-millis>
<client-wait-interval-millis>1</client-wait-interval-millis>
<max-waiting-poll-requests>50</max-waiting-poll-requests>
</properties>
</channel-definition>