1

我们在 azure 环境中使用 wildfly-9.01 并使用应用程序网关和 WAF 服务。

我们在 apache 登录中观察到 502 欠载,并且应用程序变得无响应。

我们正在使用以下配置。

操作系统:centos-8(32 vcpus,256 GiB 内存)

网络服务器:带有 modjk 的 apache

应用服务器:wildfly-9.01(分配40GB内存)

以下是 Wildfly 配置:

<subsystem xmlns="urn:jboss:domain:io:1.1">
    <worker name="default" task-max-threads="500"/>
    <buffer-pool name="default"/>
</subsystem>

<subsystem xmlns="urn:jboss:domain:undertow:2.0">
    <buffer-cache name="default"/>
    <server name="default-server">
        <ajp-listener name="ajpListener" scheme="http" socket-binding="ajp" max-header-size="50000" max-post-size="5368709120" max-parameters="5000000" allow-equals-in-cookie-value="true"/>
        <http-listener name="default" socket-binding="http" redirect-socket="https" max-header-size="50000" max-post-size="5368709120" max-parameters="5000000" allow-equals-in-cookie-value="true"/>
        <host name="default-host" alias="localhost"/>
    </server>
    <servlet-container name="default">
        <jsp-config x-powered-by="false"/>
        <websockets/>
    </servlet-container>
    <filters>
        <response-header name="server-header" header-name="Server" header-value="My company"/>
        <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="My company Application"/>
    </filters>
</subsystem>

以下是 Apache Keep alive 配置:

KeepAlive On
MaxKeepAliveRequests 300
KeepAliveTimeout 600
TimeOut 1200

有什么建议可以查看或尽量避免 502?

4

0 回答 0