9 Replies Latest reply on Nov 7, 2002 6:39 PM by okidoky

    Memory Issues

    respinola

      I try to run JBoss using run.sh and I use the -Xms and -Xmx options. However, when I set either of them to any value greater than 1 gigabyte, the server will not start. Is there a way to fix this?

      Thanks.

        • 1. Re: Memory Issues

          U need a better system with virtual memory ......

          • 2. Re: Memory Issues
            moraelin

            Actually, I would _not_ recommend running into virtual memory with any Java application. Java does _not_ play nice with swapping, and that's actually putting it very mildly. It will cause thrashing (i.e., the phenomenon where the system ends up loading and unloading pages almost immediately) without end, and especially when the garbage collector kicks in... you _feel_ it.

            • 3. Re: Memory Issues
              zhigang

              I agree, additionally, no matter how advanced you machine is and how big the virtual memory you set, there is still a limit.

              Currently, I'm facing a different problem. In my application, I try to constantly create and delete entiry beans. With JProbe you can monitor the memory usage. The result is the memory keep on increasing until the whole system runs out of memory.

              Any ideas on how to handle this? JBoss does have memory leak.

              Thanks

              John

              • 4. Re: Memory Issues
                joelvogt

                what jboss version is this you think you have the memory leak with?

                • 5. Re: Memory Issues
                  zhigang

                  The version I'm running is 2.4.4 but I tried 2.4.9 and 2.4.10 beta. they have the same problem. I've already logged a bug into the sourceforge. The number is: 631335 and it's under JBossCMP, v2.4 category.

                  I also put a simple test case (originally from JBoss CD example)there.

                  • 6. Re: Memory Issues
                    zhigang

                    The version I'm running is 2.4.4 but I tried 2.4.9 and 2.4.10 beta. they have the same problem. I've already logged a bug into the sourceforge. The number is: 631335 and it's under JBossCMP, v2.4 category.

                    I also put a simple test case (originally from JBoss CD example)there.

                    • 7. Re: Memory Issues
                      zhigang

                      The version I'm running is 2.4.4 but I tried 2.4.9 and 2.4.10 beta. they have the same problem. I've already logged a bug into the sourceforge. The number is: 631335 and it's under JBossCMP, v2.4 category.

                      I also put a simple test case (originally from JBoss CD example)there.

                      • 8. Re: Memory Issues
                        okidoky

                        I recommend to always use the -Xincgc option to the VM to turn on the incremental garbage collector. I have found that you can't run anything serious without it. In fact, I think it should be the default for the VM.

                        • 9. Re: Memory Issues
                          okidoky

                          I recommend to always use the -Xincgc option to the VM to turn on the incremental garbage collector. I have found that you can't run anything serious without it. In fact, I think it should be the default for the VM.