[MGNLCE-59] Update Tomcat to 8.5.5 Created: 10/Oct/16  Updated: 07/Nov/16  Resolved: 13/Oct/16

Status: Closed
Project: Community Edition
Component/s: None
Affects Version/s: None
Fix Version/s: 5.5

Type: Task Priority: Neutral
Reporter: Michael Mühlebach Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MAGNOLIA-6860 ProductionModeClasspathFile might cau... Closed
relation
is related to MGNLEE-461 Update tomcat to 8.5.5 Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Sprint: Kromeriz 65
Story Points: 0.5

 Comments   
Comment by Milan Divilek [ 11/Oct/16 ]

After update to 8.5.5 the log is full of "WARNING [localhost-startStop-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/magnolia-dam-imaging-2.1.7.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache" -> http://pastebin.com/VtbQg0Es

This is caused by http://svn.apache.org/viewvc?view=revision&revision=1731275 -> "WebResources caches everything apart from classes" -> versions prior 8.5.0 WebResources doesn't cache everything in /WEB-INF/classes/ and /WEB-INF/lib/

Possible solutions
1. Disable WebResources cache
2. Increase WebResources cache - by default cache is set to 10 megabytes, during test I had to increased cache to 40 megabytes
3. Suppress cache log warnings for org.apache.catalina.webresources.Cache

Comment by Jan Haderka [ 11/Oct/16 ]

I think it helps performance, otoh it also means higher total memory usage ... seems like eg even confluence has same issue and Atlassian recommends to just suppress it - https://confluence.atlassian.com/confkb/excessive-warning-cache-messages-in-catalina-out-for-confluence-5-8-x-771098337.html

... perhaps we could do the same? suppress in dev mode and recommend (or set) 50MB or more in prod?

Generated at Mon Feb 12 00:05:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.