Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2299

OutOfMemory error when repetatively deploying and undeploying with 10 minute interval

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.M1
    • JBossAS-4.0.3RC2
    • Deployers
    • None

      Using a manual copy and delete mechanism with the server\default\deploy folder the sample ear (attached) caused an outofmemory error eventually after 90 repetitions.
      The min and max heap settings were configured as : -Xms128m -Xmx512m
      The time delay after dropping/deploying the ear at each repetition was set to 10 minutes after which the ear is deleted/undeployed followed by a 10 second sleep till the next deploy cycle.

      I find this behaviour strange because http://jira.jboss.com/jira/browse/JBAS-1319 is supposed to have fixed this issue.

      The lines from the server.log surrounding the java.lang.OutOfMemoryError are as follows:

      2005-09-24 06:04:31,413 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
      2005-09-24 06:04:31,413 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@e51e50, cl=org.jboss.mx.loading.UnifiedClassLoader3@c90207

      { url=null ,addedOrder=0}

      2005-09-24 06:04:33,057 ERROR [org.apache.commons.digester.Digester] Begin event threw error
      java.lang.OutOfMemoryError
      2005-09-24 06:04:33,057 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/XMPVXE0Partion/VXE1_ContentTestService]] StandardWrapper.Throwable
      java.lang.OutOfMemoryError
      2005-09-24 06:04:33,057 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/XMPVXE0Partion/VXE1_ContentTestService]] Servlet /XMPVXE0Partion/VXE1_ContentTestService threw load() exception
      java.lang.OutOfMemoryError
      2005-09-24 06:04:33,072 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null

      The following two jars were added to the server\default\lib folder.
      commons-validator.jar — version 1.1.3
      struts.jar ---- version 1.2.4

        1. UndeploymentNotificationListenerMBean.java
          0.2 kB
          Michael Millson
        2. UndeploymentNotificationListener.java
          3 kB
          Michael Millson
        3. test-jbas-2299.tar.gz
          2.87 MB
          Michael Millson
        4. SampleApp.ear
          1.64 MB
          Amar Syed
        5. paths-from-gc-roots2.png
          110 kB
          Michael Millson
        6. paths-from-GC-roots.png
          135 kB
          Michael Millson
        7. deploy-undeploy.sh
          0.4 kB
          Michael Millson
        8. Data.txt
          2 kB
          Adrian Brock
        There are no Sub-Tasks for this issue.

            dandread1@redhat.com Dimitrios Andreadis
            amarsyed Amar Syed (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h