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: [email protected]
Reporter: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]