How to reduce the Number of threads running at instance in jetty server ?
Posted
by Thirst for Excellence
on Stack Overflow
See other posts from Stack Overflow
or by Thirst for Excellence
Published on 2010-05-17T08:46:13Z
Indexed on
2010/05/17
8:50 UTC
Read the original article
Hit count: 155
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>
© Stack Overflow or respective owner