Corey Puffalt created SIS-637:
---------------------------------
Summary: EPSGFactory triggers full GCs
Key: SIS-637
URL: https://issues.apache.org/jira/browse/SIS-637
Project: Spatial Information Systems
Issue Type: Bug
Affects Versions: 1.6, 1.5
Reporter: Corey Puffalt
In an application using Apache SiS we noticed that full garbage collections
were being triggered every 10s. After doing some digging we realized this was
coming from {{{}EPSGFactory{}}}. Strongly recommend the {{System.gc()}} call
be removed completely. I understand it's trying to ensure some weak references
are cleared but we should trust the JVM here. Running full GCs every 10s adds
a LOT of load for applications with larger heap sizes and causes noticeable
pauses on multi-user web applications. Yes, this can be mitigated by
completely disabling full GCs via {{-XX:+DisableExplicitGC}} but this requires
someone to discover the problem first.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)