Monitor the HTTP communication

From Resin 3.0

Revision as of 15:31, 20 February 2006 by Sam (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To monitor just the HTTP headers, enable the following debug logging in $RESIN_HOME/resin.conf:

<resin xmlns="">
  <log path="stdout:">
    <logger name='com.caucho.server.http' level='finer'/>
    <logger name='com.caucho.server.connection' level='finer'/>

Intercepting and monitoring the raw data passed between a web browser and Resin can provide valuable insight. This raw data reveals the headers and content that are submitted by the browser, and the headers and content that are returned by Resin.

The Axis jar includes a utility "tcpmon" that can be used to intercept and monitor the communication between a browser and Resin. Using tcpmon, you specify a "listen port" and a "target host" and a "target port". For example, if you usually have Resin running on port 8080, you can start tcpmon with a "listen port" os 9090, and a target host of localhost and a target port of 8080. Now you will use a url http://localhost:9090 in your browser. This causes your browser to use tcpmon. tcpmon will log the request, pass it through to Resin (on port 8080), and log the response before returning it to the browser.

Personal tools