Hi CJ,
We briefly discussed your email on yesterday’s Developers Group call. We were especially intrigued by your observation of spiking memory usage that gradually drops over a period of days, since none of us can recall seeing something like this (nor do we have a ready hypothesis for it). How are you measuring this trend? And what memory settings are you currently using (if any) in your setenv.sh/setenv.bat (-Xms -Xmx)?
The best way to figure out what’s going on when Tomcat crashes is probably to get a heap dump file that can be analyzed. If you haven’t already, you might consider adding the property -XX:+HeapDumpOnOutOfMemoryError to the setenv file, with the caveat that it might generate a multi-gigabyte file -- so be sure there is some extra disk space available.
As far as production memory specs go, I generally recommend a server with at least 16G of RAM, with Xmx (if set at all, since it’s not strictly necessary anymore in the Java 8+ world) typically between 50 to 75% of the total server RAM, depending on what other things might be running alongside. I haven’t even considered tinkering with garbage collection settings in many years.
Brian
De la: vivo...@googlegroups.com <vivo...@googlegroups.com>
În numele CJ Herrmann
Trimis: luni, 11 ianuarie 2021 22:42
Către: VIVO Tech <vivo...@googlegroups.com>
Subiect: [vivo-tech] Tomcat Garbage Collection & Memory Usuage
We have a script that runs (supposed to be nightly although it is temporarily disabled) that update records in VIVO via an external datasource using the sparql API. We have found that after the script runs, memory usage remains high for about 3 days and slowing dissipates. If run too often, it causes tomcat to crash, bringing down the VIVO application.
Does anyone have any recommendations in regards to memory usage, garbage collection profiles, or host specifications? What do other institutions host specifications and settings look like?
As a second question, is it possible to disabled the server startup messages? having to acknowledge the server startup seems unhelpful and startup messages should be regulated to the log.
--
You received this message because you are subscribed to the Google Groups "VIVO Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
vivo-tech+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/vivo-tech/ed0f12a2-7225-4061-83ed-0b50f30e1595n%40googlegroups.com.
P.S. Re: the startup status screen, I don’t believe there is a simple setting for disabling this. Ideally, a healthy VIVO should not exhibit any startup warnings or errors, and thus the page will never appear. What types of messages are being displayed on yours?
Brian
De la: vivo...@googlegroups.com <vivo...@googlegroups.com>
În numele Brian Lowe
Trimis: miercuri, 13 ianuarie 2021 11:44
Către: vivo...@googlegroups.com
Subiect: RE: [vivo-tech] Tomcat Garbage Collection & Memory Usuage
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/VE1P194MB08793D253421EA90E1D62395D2A90%40VE1P194MB0879.EURP194.PROD.OUTLOOK.COM.
java.lang.OutOfMemoryError: Java heap space
Thanks,