Okay, so the Geoserver documentation (http://docs.geoserver.org/latest/en/user/configuration/status.html#config-serverstatus) says that clicking on the “Free Memory” button, cleans up memory marked for deletion by running the garbage collector.

So my question is why have this button in the first place? Why isn't the GC being run automatically? I am having to periodically click this button to improve performance, and that seems kind of lame.

I'm using the Concurrent Mark Sweep garbage collector as per the Geoserver "Container Considerations" help topic recommendation: http://docs.geoserver.org/latest/en/user/production/container.html#optimize-your-jvm

  • 3
    There should be no reason to run GC manually stackoverflow.com/questions/5086800/java-garbage-collection. Perhaps you have some specific problem in your installation. – user30184 Mar 16 '17 at 22:09
  • This is mostly a debugging aid for developers. May be you can elaborate on the performance issues and your setup in a new question. – Ian Turton Mar 17 '17 at 8:38
  • It's just that the Memory Usage value on the Server Status screen never goes down unless I click the Free Memory button. Doesn't seem like GC is being run. – FunkMonkey33 Mar 20 '17 at 22:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.