|
From: Richard E. <rem...@ed...> - 2006-10-19 13:13:15
|
We've used this feature for years. It very, very important that the folks writing messages that will appear in the log file output do not inadvertently have a string that will match one of the trigger strings. As an example, our trigger string at one time was "Error". Well some well meaning programmer produced a log message that included that string (when an obscure branch of code executed). Bang, the application was shutdown and restarted. So, now all of our trigger strings are the full class names of the java.lang.Error exceptions types, such as "UnsupportedClassVersionError". RME Leif Mortenson wrote: > Indra Dutta wrote: >> I have a filter set as follows in the wrapper.conf file: >> >> >> >> wrapper.filter.trigger.1=java.lang.OutOfMemoryError >> >> wrapper.filter.action.1=RESTART >> >> >> >> Will this fire the trigger if the wrapper output contains the following? >> >> >> >> java.lang.OutOfMemoryError: PermGen Space >> > Yes. It will match. >> >> >> In other words, does wrapper look for an exact match of the string >> specified by wrapper.filter.trigger.n property? If so, it will be >> nice to have a feature where user can simply specify a pattern to look >> for instead of a literal string. >> > The specified filter will match any subset of the console output. You > don't have to > register the entire line of output. Take a look at the docs. > http://wrapper.tanukisoftware.org/doc/english/prop-filter-x-n.html > > Cheers, > Leif > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > -- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. |