You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2019/12/03 04:39:52 UTC

[Bug 63983] New: Jasper builds-up open files until garbage collection, hitting Linux default limit of 4096.

https://bz.apache.org/bugzilla/show_bug.cgi?id=63983

            Bug ID: 63983
           Summary: Jasper builds-up open files until garbage collection,
                    hitting Linux default limit of 4096.
           Product: Tomcat 9
           Version: 9.0.29
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: support@aoindustries.com
  Target Milestone: -----

Starting with Tomcat 9.0.29 (but not 9.0.27, and fixed by reverting), the Java
process builds-up open files until hitting the Linux default limit of 4096.

lsof shows that the files are all those that would be checked when determining
if a JSP file needs to be recompiled (the JSP file, its includes, and all
related *.tld files).

With "development=true" (the default), the files build-up in proportion to the
request load.  With "development=false", the files build-up more consistently
(around 100 files every 10 seconds in our case).

When a garbage collection occurs, the open file count drops back to around 100.

With our heap-space of 1024 MB, combined with some include-heavy JSP pages, we
run out of file handles before garbage collection, and requests fail with
errors.

We increased the limits in /etc/security/limits.conf as a workaround, but the
fix was to downgrade to Tomcat 9.0.27.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63983] Jasper builds-up open files until garbage collection, hitting Linux default limit of 4096.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63983

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Fixed in:
- master for 9.0.30 onwards
- 8.5.x for 8.5.50 onwards

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63983] Jasper builds-up open files until garbage collection, hitting Linux default limit of 4096.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63983

Dan Armstrong <su...@aoindustries.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED

--- Comment #3 from Dan Armstrong <su...@aoindustries.com> ---
I have confirmed this issue is resolved during our updates to Tomcat 9.0.30. 
Thank you for your help.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63983] Jasper builds-up open files until garbage collection, hitting Linux default limit of 4096.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63983

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report. This is another regression in the fix for the race
condition in JSP compilation that meant Jasper would see a modified JSP but
then process stale content for that file from the static resource cache.

I think I can address this with my favourite kind of fix (deleting some code)
but I want to run a few more tests before I commit the fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63983] Jasper builds-up open files until garbage collection, hitting Linux default limit of 4096.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63983

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simone.lucidi@eng.it

--- Comment #4 from Mark Thomas <ma...@apache.org> ---
*** Bug 64857 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org