Hi,
we are at the end of a painful migration from grails 2 to 5 and now we see a drop in performance.
When analyzing with YourKit i saw UrlMappings take a long time so I added:
grails:
cache:
enabled: true
caffeine:
caches:
urlMappings:
eternal: true
maximumSize: 1000
expireAfterWrite: 4h
The 4h are just for good measure, possibly not needed.
My 1. question is, what cache are you using? I saw EH Cache in the examples, we have Redis as distributed cache. does it make sense to use a distributed cache here? For URL Mappings I would not expect a distributed cache, as far as I understood it will never change during runtime.
2. Question would be, what other grail system caches am I missing ? We don't use GSP pages so template caches are not relevant to us, we provide mainly a Rest API for our frontend services.