Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5978

GZipFilter throwing several exceptions and dramatically slowing down requests

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • Should
    • Resolution: Fixed
    • Core 2.4.0
    • Core 2.4.0, Core 2.3.3, Core 2.5.0
    • None
    • None
    • Low

    Description

      On some of our systems, we see a lot of errors in our logs that look like this:

      ERROR - GZIPResponseWrapper.finishResponse(60) |2020-11-30 19:11:21,250| Error during closing writer or streamERROR - GZIPResponseWrapper.finishResponse(60) |2020-11-30 19:11:21,250| Error during closing writer or streamjava.io.IOException: This output stream has already been closed at org.openmrs.web.filter.GZIPResponseStream.close(GZIPResponseStream.java:55) at org.openmrs.web.filter.GZIPResponseWrapper.finishResponse(GZIPResponseWrapper.java:55) at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:60) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:73) at 
      

       See attached log file snippet for what this looks like for just one request for the home page after starting up the server.

      These errors are coupled with very slow page load times, and these issues appear to be related.

      It is not 100% clear how to reproduce these conditions - whether it is a result of file / user permissions, deployment approach, etc.  This particular set of conditions was found deploying one of our existing Rwanda distributions onto a Vagrant box running Ubuntu 20.04, Tomcat 7, and Java 8.

       

      Gliffy Diagrams

        Attachments

          1. localhost-access-log-timings.txt
            19 kB
          2. image-2020-11-30-13-08-34-812.png
            image-2020-11-30-13-08-34-812.png
            21 kB
          3. image-2020-11-30-13-04-27-442.png
            image-2020-11-30-13-04-27-442.png
            24 kB
          4. gzipfilter-log-errors.txt
            51 kB

          Activity

            People

              dkayiwa Daniel Kayiwa
              mseaton Mike Seaton
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: