users@glassfish.java.net

Re: glassfish 3 setting request-processing thread

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Mar 2010 08:18:56 PDT

I tried to set value of parameter acceptor threads from -1(automatic) to 8 (real count of processors on server equals 8 ) and Max Thread Pool Size: 200. This options were on gf2.1. But stable result was achieved by setting request-acceptor.

On gf3 I have 2 ports https and http. http port hasn't big load. Main load falls on https port. After 5 min of works https port cancel to responde, but http port still active. May be situation will been better in gf3.1.

My network config is:
[b]<network-config>
        <protocols>
          <protocol name="http-listener-1">
            <http forced-response-type="text/plain; charset=utf-8" default-virtual-server="server" max-connections="250" default-response-type="text/plain; charset=utf-8">
              <file-cache enabled="false" />
            </http>
          </protocol>
          <protocol security-enabled="true" name="http-listener-2">
            <http initial-thread-count="2" thread-count="250" thread-increment="1" request-timeout-seconds="10" timeout-seconds="10" forced-response-type="text/plain; charset=utf-8" chunking-enabled="true" default-virtual-server="server" max-connections="250" default-response-type="text/plain; charset=utf-8">
              <file-cache enabled="false" />
            </http>
            <ssl ssl3-enabled="false" cert-nickname="novakey1" tls-enabled="false" />
          </protocol>
          <protocol name="admin-listener">
            <http max-connections="250" default-virtual-server="__asadmin" server-name="">
              <file-cache enabled="false" />
            </http>
          </protocol>
        </protocols>
        <network-listeners>
          <network-listener port="28765" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool" />
          <network-listener port="28084" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool" />
          <network-listener port="27000" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="http-thread-pool" />
        </network-listeners>
        <transports>
          <transport name="tcp" acceptor-threads="8" />
        </transports>
      </network-config>
      <thread-pools>
        <thread-pool max-thread-pool-size="200" name="http-thread-pool" idle-thread-timeout-seconds="120" />
        <thread-pool max-thread-pool-size="200" name="thread-pool-1" idle-thread-timeout-seconds="120" />
      </thread-pools>
    </config>

[/b]
[Message sent by forum member 'novax00' (novax_at_inbox.ru)]

http://forums.java.net/jive/thread.jspa?messageID=392181