Yes indeed, that's the area. GetLegendGraphic had no max memory limit
(unlike GetMap) and could be used to bring a GeoServer to OOM
by simply increasing the sample image size. Not any longer. I'm guessing
Michael has a very long and complex style there, that would generate
a very large GetLegendGra
I was not aware there was a limit, checking the code for that exception
shows it is thrown by something called Tally.java which calculates max
memory based on the max memory set aside for WMS requests.
https://github.com/geoserver/geoserver/blob/b3b3ca4985f8fba292dea910d9d3317e72b00edb/src/wms/sr