Debugging HTTP 500 Response Code in An IHS - Plugin - WebSphere Topology
Debugging HTTP 500 Response Code in An IHS - Plugin - WebSphere Topology
Agenda
Schematic of Plugin Fundamentals
Plugin related definitions
What is http 500
IHS/Plugin/WebSphere topology and some terms.
HTTP 500 from a client perspective.
Preliminary System Integrity Check
What to collect ? Diagnostics .
Conditions under which a HTTP 500 error is seen
Debug procedures for http 500?
Measures to address the issue
Sumary
Web server
Webserver plug-in
Application server
Application
Diagnostics/logs
Collect the following diagnostic data:
Errors displayed by the user browser, including the URL
that failed and the timestamp of the request.
Web server Access log and Debug level Error log
Trace Level plugin log
MustGather link
http://www-
01.ibm.com/support/docview.wss?uid=swg21141306
If your application is deployed to a cluster, you might need
to collect the WebContianer traces logs from each active
server in the cluster.
ConnectTimeout fired.
It is the time taken for the plugin to establish connection
with the backend JVM
ConnectTimeout not listed or a value of “0” means it is
a blocking connect
ConnectTimeout=”10” means the plugin will wait for 10
seconds for the connection to succeed.
If no response in 10 seconds, then it will mark that JVM
as down
Request will move to the next in line JVM in cluster until
it finds a successful connection in the cluster or
Throws a failed to handle request.
Causing Internal Server Error
WebSphere® Support Technical Exchange 18
IBM Software Group
ServerIOTimeout
Simply put, It is the time alloted for the request to complete
once a connection the JVM is established.
Plugin is able to find a route to the Appserver, makes a
connection and is waiting for the request to complete
successfully.
If the ServerIOTimeout is not adequately configured to
ensure successful request processing, a ServerIOTimeout
is fired.
JVM is marked down if ServerIOTimeout is set -ve
MaxConnections
is used to gauge when a server is "starting to become
overwhelmed".
By Default the maxConnections is -1. Which means an
unlimited number of connections.
-1 maxConnection setting in a high load environment can
overwhelm an Appserver
ReachedMaxConnectionsLimit 0 or 1 checked on each
request.
MaxConnection does not mark a JVM down
But is a factor leading to the cluster being marked down.
Leading to Internal Server Error
Analyze diagnostics
The URL that failed
Where the failure occurred (Web server, plug-in, application server)
2. WebServer Accesslog
3. Plugin Trace
4. Appserver log
http://httpd.apache.org/docs/2.2/mod/mod_log_config.html
GSK Errors
Various GSKit errors in plugin can cause the appservers to be
marked down.
lib_stream: openStream: Failed in r_gsk_secure_soc_init:
GSK_ERROR_SOCKET_CLOSED(gsk rc = 420) PARTNER
CERTIFICATE DN=CN=jserver,OU=SWG,O=IBM,C=US,
Serial=3f:28:2c:f8
ws_common: websphereGetStream: Could not open stream
ws_common: websphereExecute: Failed to create the stream
ws_server: serverSetFailoverStatus: Marking
WC_academy_node_server3 down
This can potentially have a cascading effect and trigger the
other criteria for HTTP 500 in case of a single webserver.
Read
Write
Persist
Connect
Summary
From IBM Http Server (IHS):
httpd.conf
error.log
access.log
From Plug-in:
plugin-cfg.xml
http_plugin.log <<<< Plug-in trace file
From WebSphere Application Server (WAS):
SystemOut.log
Trace.log (webContainer & Channel Traces)
References:
LogFormat
http://httpd.apache.org/docs/2.2/mod/mod_log_config.html
References
IHS Performance tuning guide
http://publib.boulder.ibm.com/httpserv/ihsdiag/ihs_performance.
html
View a webcast replay with step-by-step instructions for using the Service Request (SR)
tool for submitting problems electronically:
http://www.ibm.com/software/websphere/support/d2w.html
Sign up to receive weekly technical My Notifications emails:
http://www.ibm.com/software/support/einfo.html
3. Be connected!
Connect with us on Facebook
Connect with us on Twitter