Author |
|
Blackhowling
Joined: 30 Oct 2015 Posts: 3 Location: Singapore
|
Posted: Fri 30 Oct '15 23:52 Post subject: Apache web server not responding. |
|
|
Hi,
I am using apache 2.4.16 with mod proxy module that is purely just forward the request to JBoss application server.
During peak hour, the apache become not responding and unable to process web page request from client.
I am able to telnet to the apache with port 443 (SSL) and system usage is normal (CPU around 3-5% and memory usage is about 20%).
There are a lot of connections from client that are in "CLOSE_WAIT" mode and the issue was resolved after restarting the apache web server.
Anyone can suggest me what might have caused this issue to happen and how to prevent it ?
Please note that it will not have more than 10 concurrent user connected during peak hour. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sat 31 Oct '15 23:14 Post subject: |
|
|
How do you connect apache to jboss? mod_proxy_ajp? mod_jk? mod_proxy_http ? |
|
Back to top |
|
Blackhowling
Joined: 30 Oct 2015 Posts: 3 Location: Singapore
|
Posted: Mon 02 Nov '15 13:10 Post subject: |
|
|
We are using mod_proxy_http and most of the settings are using default configuration. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 02 Nov '15 15:35 Post subject: |
|
|
it would help if you could post that part of the config.
From my experience mod_proxy_ajp is more efficiant if it comes to Java backend servers. |
|
Back to top |
|
Blackhowling
Joined: 30 Oct 2015 Posts: 3 Location: Singapore
|
Posted: Tue 03 Nov '15 6:43 Post subject: |
|
|
Thanks for your information. I will try to look at the mod_proxy_ajp
Below are the modules we enabled
Code: | #
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_express_module modules/mod_proxy_express.so
#LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule status_module modules/mod_status.so
|
And below are the part where we configure proxy pass
Code: | ProxyRequests Off
SSLProxyEngine On
SSLProxyCheckPeerCN off
SSLProxyCheckPeerExpire off
SSLProxyCheckPeerName off
SSLProxyVerify none
ProxyPass /app1 https://x.x.x.x:8443/app1
ProxyPassReverse /app1 https://x.x.x.x:8443/app1
ProxyPass /app2 https://x.x.x.x:8443/app2
ProxyPassReverse /app2 https://x.x.x.x:8443/app2
ProxyHTMLEnable On
ProxyHTMLExtended On
ProxyPreserveHost On |
Please let me know if there any other configuration required |
|
Back to top |
|