2 Replies Latest reply on Jun 15, 2004 10:09 AM by Sanne de

    Memory Size of cache

    Sanne de Novice

      Hi All,

      Does anyone know how I can get the actual memory size of the cache?
      If I augment the cache to much I get out of memory errors, but I have no idea how I can estimate a sound setting.

      Kind regards,

      Sanne

        • 1. Re: Memory Size of cache
          Tom Vekemans Newbie

          Hi Sanne,

          I don't have an out-of-the-box solution for you but:

          1) if you are using JBoss 3.2.3 (or higher) the web-console can give you a couple of interesting numbers (one of which is total memory used)

          2) for JBoss versions superior to 3.2.2 you can uncomment a BeanCacheMonitor service in the standardjboss.xml. This MBean then becomes available in the JMX console and shows you how many beans are cached. This should allow you to roughly estimate the memory size needed (if you know how big your beans are, that is)

          Hope this helps,

          Tom

          • 2. Re: Memory Size of cache
            Sanne de Novice

            Hi Tom,

            Thanks, my client is running 3.2.1, but I'll have a look at 3.2.3.
            Seems un-intuitive not to have this info.

            Groetjes,

            Sanne