我正在为Apache(v2.4)使用weblogic代理插件(12c)。一段时间后,Apache日志会出现以下错误:
[Mon Jun 27 13:01:09.570646 2016] [weblogic:error] [pid 18224] [client 192.135.176.51:60667] ap_proxy: trying GET /websocket/hcsnotifications/jSocket at backend host ; got exception 'NO_RESOURCES: [os error=115, line 2859 of ApacheProxy.cpp]: Active Websocket Connection Limit Reached'; state: preparing request headers (wrote? N read? N); not failing over
[Mon Jun 27 13:01:09.570700 2016] [weblogic:error] [pid 18224] [client 192.135.176.51:60667] <18224146704686919> request [/websocket/hcsnotifications/jSocket] did NOT process successfully..................
[Mon Jun 27 13:01:09.769993 2016] [weblogic:error] [pid 23558] [client 192.135.176.11:28072] Active Websocket Connection Limit Reached: 192
[Mon Jun 27 13:01:09.770063 2016] [weblogic:error] [pid 23558] [client 192.135.176.11:28072] <23558146704686921> *******Exception type [NO_RESOURCES] (Active Websocket Connection Limit Reached) raised at line 2859 of ApacheProxy.cpp
以下是我的httpd.conf:
ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 295
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
WLMaxWebSocketClients 1024
# prefork MPM
<IfModule prefork.c>
StartServers 25
MinSpareServers 50
MaxSpareServers 200
ServerLimit 2048
MaxClients 2048
MaxRequestsPerChild 2000
#WLMaxWebSocketClients 1024
</IfModule>
因此,按照上面的配置,我将WebSocket连接限制设置为1024,但它达到了30-40个连接的限制。