1 Reply Latest reply on Oct 28, 2003 1:12 PM by Mike Finn

    OutOfMemoryException

    Kunal H. Parikh Newbie

      Hi !

      I am attempting to deploy:
      1. EJB,
      2. Stateless Session Bean, and,
      3. Struts-based webapp.

      I am running JBoss on Win XP P4 1.99GHz with 256M RAM.

      I successfully deploy my EJB and am able to call it from a console based client.

      Then, I successfully deploy my StatelessSessionBean and the struts-based webapp.

      Following this, when I attempt to reach my jsp page from the browser, I get an OutOfMemoryException.

      Currently, my default deploy directory contains the follwoing:
      ===========================
      cache-invalidation-service.xml
      console-mgr.sar
      counter-service.xml
      ejb-management.jar
      ejb-service.xml
      hilo-idgen-service.xml
      hsqldb-ds.xml
      jboss-jca.sar
      jboss-local-jdbc.rar
      jboss-net.sar
      jboss-xa-jdbc.rar
      jbossdo.sar
      jbossmq-destinations-service.xml
      jbossmq-service.xml
      jbossweb.sar
      jms-ds.xml
      jms-ra.rar
      jmx-console.war
      jmx-ejb-adaptor.jar
      jmx-ejb-connector-server.sar
      jmx-rmi-adaptor.sar
      mail-service.xml
      mbean-info-db-service.xml
      object-copier.sar
      oracle-ds.xml
      properties-service.xml
      remoting-service.xml
      schedule-manager-service.xml
      scheduler-service.xml
      transaction-service.xml
      user-service.xml
      web-console.war
      ===========================

      Maybe, I need to add more RAM, but for now, is there a minimalistic startup that I can do to eliminate this error.
      i.e. is there something that I can remove from my deploy directory to ensure that I can deploy my
      1. EJB,
      2. Stateless Session Bean, and,
      3. Struts-based webapp.

      TIA,

      Kunal

        • 1. Re: OutOfMemoryException
          Mike Finn Apprentice

          Your box is WAY enough to run what you have.

          Even with the default JVM settings for stack, it's surprising that you are running out of memory. What happens in your JSP? Are you processing a large set of data? How much mem does the JVM take sitting idle?

          BTW - It may not be the true solution, but you can adjust the JVM startup parms for mem on the command line. Set
          JAVA_OPTS=-Xmx192m or something like that before calling run.sh/run.bat.

          Mike