You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticvolatileintgcCalled = 0; //since last Major LoadDatasets
267
267
publicstaticvolatileintrequestsShed = 0; //since last Major LoadDatasets
268
+
publicstaticvolatileintdangerousMemoryEmails = 0; //since last Major LoadDatasets
268
269
publicstaticvolatileintdangerousMemoryFailures = 0; //since last Major LoadDatasets
269
270
publicstaticStringBuffersuggestAddFillValueCSV = newStringBuffer(); //EDV constructors append message here //thread-safe but probably doesn't need to be
publicfinalstaticintDEFAULT_ipAddressMaxRequests = 7; //in datasets.xml //more requests will see Too Many Requests error. This must be at least 6 because browsers make up to 6 simultaneous requests. This can't be >1000.
292
+
publicfinalstaticintDEFAULT_ipAddressMaxRequests = 15; //in datasets.xml //more requests will see Too Many Requests error. This must be at least 6 because browsers make up to 6 simultaneous requests. This can't be >1000.
publicstaticintipAddressMaxRequests = DEFAULT_ipAddressMaxRequests; //in datasets.xml //more requests will see Too Many Requests error. This must be at least 6 because browsers make up to 6 simultaneous requests.
295
296
publicstaticHashSet<String> ipAddressUnlimited = //in datasets.xml //read only. New one is swapped into place. You can add and remove addresses as needed.
errorNo = HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE; //http error 413 (the old name for Payload Too Large), although it could be other user's requests that are too large
6580
-
StringipAddress = EDStatic.getIPAddress(request);
6582
+
StringipAddress = getIPAddress(request);
6581
6583
tally.add("OutOfMemory (Array Size), IP Address (since last Major LoadDatasets)", ipAddress);
6582
6584
tally.add("OutOfMemory (Array Size), IP Address (since last daily report)", ipAddress);
6583
6585
tally.add("OutOfMemory (Array Size), IP Address (since startup)", ipAddress);
tError.indexOf(Math2.memoryThanCurrentlySafe.substring(0, 25)) >= 0) { //!!! TROUBLE: but that matches memoryThanSafe (in English) too!
6587
6589
errorNo = HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE; //http error 413 (the old name for Payload Too Large), although it could be other user's requests that are too large
6588
6590
dangerousMemoryFailures++;
6589
-
StringipAddress = EDStatic.getIPAddress(request);
6591
+
StringipAddress = getIPAddress(request);
6590
6592
tally.add("OutOfMemory (Too Big), IP Address (since last Major LoadDatasets)", ipAddress);
6591
6593
tally.add("OutOfMemory (Too Big), IP Address (since last daily report)", ipAddress);
6592
6594
tally.add("OutOfMemory (Too Big), IP Address (since startup)", ipAddress);
6593
6595
6594
6596
} elseif (tErrorLC.indexOf(Math2.memory) >= 0) {
6595
6597
//catchall for remaining memory problems
6596
6598
errorNo = HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE; //http error 413 (the old name for Payload Too Large)
6597
-
StringipAddress = EDStatic.getIPAddress(request);
6599
+
StringipAddress = getIPAddress(request);
6598
6600
tally.add("OutOfMemory (Way Too Big), IP Address (since last Major LoadDatasets)", ipAddress);
6599
6601
tally.add("OutOfMemory (Way Too Big), IP Address (since last daily report)", ipAddress);
6600
6602
tally.add("OutOfMemory (Way Too Big), IP Address (since startup)", ipAddress);
0 commit comments