IMPROVED: We re-enabled the old memory management system (Math2.ensureMemoryAvailable) and modified
+ the new memory management system (EDStatic.shedThisRequest) to work better with it.
+ ERDDAP shouldn't ever crash or freeze up. If it does, one of the
+ most likely causes is insufficient memory. You can monitor memory usage
+ by looking at the status.html web page, which now includes a line like
+
0 gc calls, 0 requests shed, and 0 dangerousMemoryEmails since last major LoadDatasets
+
(those are progressively more serious events)
+
and a gc Calls column in the table of statistics.
+ You can tell how memory-stressed your ERDDAP is by watching these numbers
+ in addition to the MB inUse columns.
+ Higher numbers indicate more stress.
+
+ - MB inUse should always be less than half of your Xmx memory setting.
+ Larger numbers are serious trouble.
+
- gc calls indicates the number of times ERDDAP called the
+ garbage collector to try to alleviate high memory usage.
+
- shed indicates the number of incoming requests that
+ were shed (with HTTP error number 503, Service Unavailable) because
+ memory use was already too high. Ideally, no requests should be shed.
+
- dangerousMemoryEmails -
+ If memory use becomes dangerously high, ERDDAP sends an email to the email addresses listed in
+ emailEverythingToCSV (in setup.xml) with a list of the active user requests. As the email says,
+ please forward these emails to erd.data at noaa.gov so we can use the information
+ to improve future versions of ERDDAP.
+
+
+
+