logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: Tried to remove Log4jServletFilter reference to avoid "GC overhead limit exceeded", but still happens
Date Fri, 09 Sep 2016 21:45:18 GMT
If you're using Servlet 3.x, the filter is automatically injected. If you
don't want to use it, you can just remove the log4j-web dependency entirely.

On 9 September 2016 at 15:17, KARR, DAVID <dk068x@att.com> wrote:

> At one point, I had changed my webapp's web.xml to reference the
> "Log4jServletFilter", but I since decided I didn't need to use that, and I
> was also seeing my app dying with stacktraces like the following:
> ------------------
> org.apache.cxf.interceptor.Fault: GC overhead limit exceeded
>         at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.
> handleWriteException(JAXRSOutInterceptor.java:391)
>         at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.
> serializeMessage(JAXRSOutInterceptor.java:266)
>         at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.
> processResponse(JAXRSOutInterceptor.java:120)
>         at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.
> handleMessage(JAXRSOutInterceptor.java:83)
>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> PhaseInterceptorChain.java:308)
>         at org.apache.cxf.interceptor.OutgoingChainInterceptor.
> handleMessage(OutgoingChainInterceptor.java:83)
>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> PhaseInterceptorChain.java:308)
>         at org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> ChainInitiationObserver.java:121)
>         at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(
> AbstractHTTPDestination.java:254)
>         at org.apache.cxf.transport.servlet.ServletController.
> invokeDestination(ServletController.java:234)
>         at org.apache.cxf.transport.servlet.ServletController.
> invoke(ServletController.java:208)
>         at org.apache.cxf.transport.servlet.ServletController.
> invoke(ServletController.java:160)
>         at org.apache.cxf.transport.servlet.CXFNonSpringServlet.
> invoke(CXFNonSpringServlet.java:180)
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> handleRequest(AbstractHTTPServlet.java:299)
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> doGet(AbstractHTTPServlet.java:223)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> service(AbstractHTTPServlet.java:274)
>         at org.apache.catalina.core.ApplicationFilterChain.
> internalDoFilter(ApplicationFilterChain.java:230)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:165)
>         at org.apache.tomcat.websocket.server.WsFilter.doFilter(
> WsFilter.java:52)
>         at org.apache.catalina.core.ApplicationFilterChain.
> internalDoFilter(ApplicationFilterChain.java:192)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:165)
>         at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(
> Log4jServletFilter.java:71)
> ------------------
>
> When I saw the last entry shown here, I tried to comment out the block in
> my web.xml that configures this filter and restarted my service.  However,
> after a while I saw this same error again.  What might be happening here?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
Matt Sicker <boards@gmail.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message