Author: rjung Date: Tue Dec 11 12:37:16 2007 New Revision: 603352 URL: http://svn.apache.org/viewvc?rev=603352&view=rev Log: Make the existing JK_PRODUCTION define available via configure. If set, it replaces JK_TRACE_ENTER() and JK_TRACE_EXIT() with nops. Document the new configure switch --disable-trace.
Modified: tomcat/connectors/trunk/jk/native/configure.in tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml Modified: tomcat/connectors/trunk/jk/native/configure.in URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/configure.in?rev=603352&r1=603351&r2=603352&view=diff ============================================================================== --- tomcat/connectors/trunk/jk/native/configure.in (original) +++ tomcat/connectors/trunk/jk/native/configure.in Tue Dec 11 12:37:16 2007 @@ -470,6 +470,21 @@ ]) AC_SUBST(CFLAGS) +dnl CFLAGS for stripping TRACE logs +dnl it also allows the CFLAGS environment variable. +CFLAGS="${CFLAGS}" +AC_ARG_ENABLE(trace, +[ --disable-trace Exclude trace log code from compilation], +[ +case "${enableval}" in + no ) + CFLAGS="${CFLAGS} -DJK_PRODUCTION" + AC_MSG_RESULT([...Exclude trace log code...]) + ;; +esac +]) +AC_SUBST(CFLAGS) + dnl CFLAGS for shared memory lock mode dnl it also allows the CFLAGS environment variable. CFLAGS="${CFLAGS}" Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?rev=603352&r1=603351&r2=603352&view=diff ============================================================================== --- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original) +++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Tue Dec 11 12:37:16 2007 @@ -44,6 +44,10 @@ <subsection name="Native"> <changelog> <update> + Configure: Remove trace logging from compiled code + via new --disable-trace configure switch. (rjung) + </update> + <update> Common: Maintain idle connections in decreasing (LRU) slot order. (rjung) </update> Modified: tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml?rev=603352&r1=603351&r2=603352&view=diff ============================================================================== --- tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml (original) +++ tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml Tue Dec 11 12:37:16 2007 @@ -951,6 +951,17 @@ For instance, the prefork MPM is not multi-threaded. For Apache httpd 1.3 this flag will be set automatically.</td> </tr> + <tr valign="top"><td>--disable-trace</td> + <td> +When using log level "trace", mod_jk traces a lot of function calls with +"enter" and "exit" log messages. Even if the log level is not "trace", +comparing the log levels to decide about logging has some performance +impact.<br/> +If you use "--disable-trace", then the trace log code doesn't get compiled +into the module binary and you might save some cycles during execution.<br/> +Even with "--disable-trace" logging debug messages with debug log level +will still be possible.</td> +</tr> <tr valign="top"><td>--enable-flock</td> <td> In case the operating system supports flock system call use this flag to enable this --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]