weblogic9线程问题同时解决了weblogic10 的线程调整问题

<?xml version='1.0' encoding='UTF-8'?>
<domain xmlns="http://www.bea.com/ns/weblogic/920/domain" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90/security/xacml http://www.bea.com/ns/weblogic/90/security/xacml.xsd http://www.bea.com/ns/weblogic/90/security http://www.bea.com/ns/weblogic/90/security.xsd http://www.bea.com/ns/weblogic/920/domain http://www.bea.com/ns/weblogic/920/domain.xsd http://www.bea.com/ns/weblogic/90/security/wls http://www.bea.com/ns/weblogic/90/security/wls.xsd">
<name>ECSNDomain</name>
<domain-version>9.2.2.0</domain-version>
<security-configuration>
<name>ECSNDomain</name>
<realm>
<sec:authentication-provider xsi:type="wls:default-authenticatorType"></sec:authentication-provider>
<sec:authentication-provider xsi:type="wls:default-identity-asserterType">
<sec:active-type>AuthenticatedUser</sec:active-type>
</sec:authentication-provider>
<sec:role-mapper xmlns:xac="http://www.bea.com/ns/weblogic/90/security/xacml" xsi:type="xac:xacml-role-mapperType"></sec:role-mapper>
<sec:authorizer xmlns:xac="http://www.bea.com/ns/weblogic/90/security/xacml" xsi:type="xac:xacml-authorizerType"></sec:authorizer>
<sec:adjudicator xsi:type="wls:default-adjudicatorType"></sec:adjudicator>
<sec:credential-mapper xsi:type="wls:default-credential-mapperType"></sec:credential-mapper>
<sec:cert-path-provider xsi:type="wls:web-logic-cert-path-providerType"></sec:cert-path-provider>
<sec:cert-path-builder>WebLogicCertPathProvider</sec:cert-path-builder>
<sec:name>myrealm</sec:name>
</realm>
<default-realm>myrealm</default-realm>
<credential-encrypted>{3DES}Jz7dvB94fBJ2kYPDYtgG98Rh2CX/inp/nnomW/3EGdnuX4jVvV5YLy6PwH5WGzzVs/U+4AOdsItuFc4UsBFmjk86yPbc2b0i</credential-encrypted>
<node-manager-username>fsMwbLgTSQ</node-manager-username>
<node-manager-password-encrypted>{3DES}xSTGGYJxKbk1ofapDBE7xA==</node-manager-password-encrypted>
</security-configuration>
<server>
<name>AdminServer</name>
<ssl>
<login-timeout-millis>25000</login-timeout-millis>
</ssl>
<execute-queue>
<name>default</name>
<thread-count>400</thread-count>
<threads-maximum>400</threads-maximum>
</execute-queue>
<use81-style-execute-queues>true</use81-style-execute-queues>
<listen-address></listen-address>
<accept-backlog>200</accept-backlog>
</server>
<production-mode-enabled>true</production-mode-enabled>
<embedded-ldap>
<name>ECSNDomain</name>
<credential-encrypted>{3DES}aper9XfkYwcDaS1blti+A5Fm0ZOBTffrHT3ZcU5tZ94=</credential-encrypted>
</embedded-ldap>
<configuration-version>9.2.2.0</configuration-version>
<app-deployment>
<name>DefaultWebApp</name>
<target>AdminServer</target>
<module-type>war</module-type>
<source-path>applications/DefaultWebApp</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>BondBaseData</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/BondBaseData.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>DataQuotes</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/DataQuotes.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>AnalyseScheme</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/AnalyseScheme.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>EBiz</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/EBiz.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>Forum</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/Forum.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>FundBaseData</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/FundBaseData.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>Info</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/Info.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>PersonalFolder</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/PersonalFolder.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>Portfolio</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/Portfolio.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>SimTrades</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/SimTrades.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>StockBaseData</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/StockBaseData.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>User</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/User.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>security</name>
<target>AdminServer</target>
<module-type>ejb</module-type>
<source-path>applications/security.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<startup-class>
<name>ECSNStart</name>
<target>AdminServer</target>
<class-name>StartInit</class-name>
</startup-class>
<admin-server-name>AdminServer</admin-server-name>
<jdbc-system-resource>
<name>ECSNInfoDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ECSNInfoDS-1690-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>ECSNGroceryDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ECSNGroceryDS-1923-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>ECSNPersonalDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ECSNPersonalDS-6472-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>ECSNUserDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ECSNUserDS-8819-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>ECSNInfoHistoryDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ECSNInfoHistoryDS-9468-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>ECSNHQDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ECSNHQDS-2465-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>ECSNStockBaseDataDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ECSNStockBaseDataDS-3479-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>ECSNPortfolioDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ECSNPortfolioDS-6638-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>ECSNForumDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ECSNForumDS-0327-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>MRCH</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/MRCH-4858-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>ECSNForumHistoryDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ECSNForumHistoryDS-8363-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>LogDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/LogDS-5571-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>ECSNBondFundDS</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ECSNBondFundDS-6128-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>jswzTA</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/jswzTA-7335-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
</domain>

在config.xml中搜索true,其中,这段加上就会变成400的默认执行线数.在上面有完整的例子,可以细看。

<execute-queue>
<name>default</name>
<thread-count>400</thread-count>
<threads-maximum>400</threads-maximum>
</execute-queue>
<use81-style-execute-queues>true</use81-style-execute-queues>

 

加上上面的这句话,在控制面板console的服务器【监视】里面就可以调制线程的大小,并注意这些语句的位置错了有可能weblogic无法启动。

<use81-style-execute-queues>true</use81-style-execute-queues>

以下为weblogic 10.3中的位置:注意去掉一些在控制面板生成值

 <server>
    <name>AdminServer</name>
    <reverse-dns-allowed>false</reverse-dns-allowed>
    <native-io-enabled>true</native-io-enabled>
    <thread-pool-percent-socket-readers>33</thread-pool-percent-socket-readers>
    <period-length>60000</period-length>
    <idle-periods-until-timeout>4</idle-periods-until-timeout>
    <dgc-idle-periods-until-timeout>5</dgc-idle-periods-until-timeout>
    <ssl>
      <login-timeout-millis>25000</login-timeout-millis>
    </ssl>
    <execute-queue>
      <name>default</name>
      <queue-length>65536</queue-length>
      <thread-count>400</thread-count>
      <queue-length-threshold-percent>90</queue-length-threshold-percent>
      <threads-increase>0</threads-increase>
      <threads-maximum>400</threads-maximum>
      <threads-minimum>50</threads-minimum>
    </execute-queue>
    <max-open-sock-count>-1</max-open-sock-count>
    <stuck-thread-max-time>1200</stuck-thread-max-time>
    <stuck-thread-timer-interval>60</stuck-thread-timer-interval>
    <use81-style-execute-queues>true</use81-style-execute-queues>
    <listen-address></listen-address>
    <accept-backlog>300</accept-backlog>
    <login-timeout-millis>5000</login-timeout-millis>
    <low-memory-time-interval>3600</low-memory-time-interval>
    <low-memory-sample-size>10</low-memory-sample-size>
    <low-memory-granularity-level>5</low-memory-granularity-level>
    <low-memory-gc-threshold>5</low-memory-gc-threshold>
    <managed-server-independence-enabled>true</managed-server-independence-enabled>
    <overload-protection>
      <shared-capacity-for-work-managers>65536</shared-capacity-for-work-managers>
      <panic-action>no-action</panic-action>
      <failure-action>no-action</failure-action>
      <free-memory-percent-high-threshold>0</free-memory-percent-high-threshold>
      <free-memory-percent-low-threshold>0</free-memory-percent-low-threshold>
      <server-failure-trigger>
        <max-stuck-thread-time>1200</max-stuck-thread-time>
        <stuck-thread-count>0</stuck-thread-count>
      </server-failure-trigger>
    </overload-protection>
  </server>

以下是最简形式:

<server>
    <name>AdminServer</name>


    <ssl>
      <login-timeout-millis>25000</login-timeout-millis>
    </ssl>


     <execute-queue>
        <name>default</name>
       <queue-length>65536</queue-length>
       <thread-count>400</thread-count>
      <queue-length-threshold-percent>90</queue-length-threshold-percent>
      <threads-increase>0</threads-increase>
      <threads-maximum>400</threads-maximum>
      <threads-minimum>50</threads-minimum>
    </execute-queue>


     <use81-style-execute-queues>true</use81-style-execute-queues>


    <listen-address></listen-address>
    <accept-backlog>300</accept-backlog>
    </server>

 

 

 

 

 

你可能感兴趣的:(weblogic9线程问题同时解决了weblogic10 的线程调整问题)