2 Replies Latest reply: Apr 12, 2012 12:49 PM by vinothchandar RSS

    Adjusting je cache size dynamically.

    vinothchandar
      Hi,

      I am using JE 4.1.17 and trying to adjust the cache size of the environments dynamically. EnvironmentMutableConfig provides a setCacheSize() method but does not seem to take effect for me.

      For experimentation I execute the following snippet every 10 mins,

      environment.getMutableConfig().setCacheSize(environment.getMutableConfig().getCacheSize()/2);

      Am I missing something?