4 Replies Latest reply on Jan 8, 2009 1:23 PM by emmitt1219

    Recommended Memory Usage

      We are in the process of upgrading from 4.0.4 to eap 4.3. I was reading the datasheet for eap 4.3, and it suggests 512mb ram as a minimum system requirement. I was wondering if this refers to half a gig of overall actual memory on the physical server or the amount of process space available to the app server.

      Also, on the wiki, I have come across this formula to calculate process space: TotalProcessSpace = .5GB(java overhead) + Heap + (Threads*ThreadStackSize)

      http://www.jboss.org/community/docs/DOC-11564

      Is it suggesting that the overhead for jvm operations may take up half a gig of ram outside of the heap and stack memory allocated?

      Thanks in advance.

        • 1. Re: Recommended Memory Usage
          peterj

          Yes, you can run with on 512MB of RAM. As long as you don't care about performance and will have only, at most, a handful of users. I ran JBoss AS on a laptop with only 512MB once. It was not that much fun. ;-)

          The wiki formula is probably a better bet. Typically, I prefer 2GB of RAM to run a single instance of JBoss AS, usually using about a 1.2GB heap. That should run a large number of user (hundreds or thousands, depending on the level of activity).

          If you have fewer users you can get away with less RAM. I am running JBoss Portal for our department on a system with 1GB RAM. That system also hosts the MySQL database used by Portal. But then our users number in the tens, and activity is very low.

          • 2. Re: Recommended Memory Usage

            Thank you for your insight, Peter.

            Currently, we are planning on going vmware. Each of our vmware image will have 2 gig of ram assigned to it. We are trying to figure out just exactly how many instances of JBoss AS we can run on each of these images. Assuming that we have each JBoss instance set to run at 400-500mb of max heap size, we have figured that we can probably run two instances on each image. Now given the formula presented, we are putting away 500mb for misc jvm operations. If we run two instances, will that misc number have to double?

            • 3. Re: Recommended Memory Usage
              peterj

              No, it will not have to double. A lot of that 1/2 GB is for the JVM code and the operating system is smart enough to shared the code between Java instances. Thus while the first instance will use up a lot of memory, a second instance will not use as much additional memory. Based on your heap size, you should be able to run two JBoss AS instances in 2GB of memory.

              • 4. Re: Recommended Memory Usage

                Sounds great. That makes perfect sense. Thank you for your help, Peter!