2 Replies Latest reply on May 10, 2007 10:15 AM by c_eric_ray

    CallbyValue false and OutOfMemory errors

    eroliva

      Hi,I'm working with Jboss 2 years ago,first with Jboss 4.0.2 wich I configured to work with CallbyValue to true working in this way I didn't have problems with OutOfMemory Perm gen errors ,but reading the recomendations I let the default configuration to the default values (callbyvalue to false) as a result of it if I deploy the ear file of my application five times the server throw an perm gen java.lang.OutOfMemory error
      I tested with 4.0.2 and 4.0.5GA having the same problems.
      Now I back to callbyValue to true and I don't have problems of Perm gen OutOfMemory.
      the application use Struts,Spring for service tier and Hibernate.
      Could somebody explainme what is the cause or I don't understand this:
      http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration
      Thanks

        • 1. Re: CallbyValue false and OutOfMemory errors
          eroliva

          I'm sorry but I still having the OutOfmemory Perm gen errors with the CallbyValue to true,deploying an application more than five times,I wrote the msg too fast without make more tests.
          somebody has such had problems that can help me.
          I have 768 of ram and the parameters of VM are corrects.

          • 2. Re: CallbyValue false and OutOfMemory errors

            I see the same thing after deploying my app several times. I think I read somewhere that JBoss has a memory leak with they're deployer code. Anyway, I haven't figured out a way to correct the issue either.