You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Punit Mishra (JIRA)" <ji...@codehaus.org> on 2007/03/04 04:13:00 UTC

[jira] Created: (MPTEST-72) Out of memory with mvn test

Out of memory with mvn test
---------------------------

                 Key: MPTEST-72
                 URL: http://jira.codehaus.org/browse/MPTEST-72
             Project: maven-test-plugin
          Issue Type: Bug
         Environment: WINDOWS 2000, JDK1.5, JUNIT
            Reporter: Punit Mishra
            Priority: Critical


I am getting an out of memory while running my Junits from mvn test. The MAVEN_OPTS has been specified to 512m which is more than what is needed to run my tests. 
When I print available memory to my tests it shows 1M to 63M only.
Is there any other place where it picks the memory args from. 
I could see there are some junit properties that can be set but I am not sure where and how should I be setting those properties. I tried setting them in POM.xml but they are not being pickedup.
The same tests are successfully running from within eclipse with same memory args as specified in MAVEN_OPTS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (SUREFIRE-304) Out of memory with mvn test

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed SUREFIRE-304.
---------------------------------

    Resolution: Incomplete

JIRA isn't for questions.

MAVEN_OPTS won't affect the memory of your surefire tests - they are in a forked VM. The surefire documentation lists how to pass parameters to that VM.

> Out of memory with mvn test
> ---------------------------
>
>                 Key: SUREFIRE-304
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-304
>             Project: Maven Surefire
>          Issue Type: Bug
>         Environment: WINDOWS 2000, JDK1.5, JUNIT
>            Reporter: Punit Mishra
>            Priority: Critical
>
> I am getting an out of memory while running my Junits from mvn test. The MAVEN_OPTS has been specified to 512m which is more than what is needed to run my tests. 
> When I print available memory to my tests it shows 1M to 63M only.
> Is there any other place where it picks the memory args from. 
> I could see there are some junit properties that can be set but I am not sure where and how should I be setting those properties. I tried setting them in POM.xml but they are not being pickedup.
> The same tests are successfully running from within eclipse with same memory args as specified in MAVEN_OPTS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-304) Out of memory with mvn test

Posted by "David Roussel (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89222 ] 

David Roussel commented on SUREFIRE-304:
----------------------------------------

surely this is a question that should be asked in the mailing lists.  Look on www.nabble.com

Using MAVEN_OPTS to set -Xmx512m works for me on Surefireplugin 2.2

> Out of memory with mvn test
> ---------------------------
>
>                 Key: SUREFIRE-304
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-304
>             Project: Maven Surefire
>          Issue Type: Bug
>         Environment: WINDOWS 2000, JDK1.5, JUNIT
>            Reporter: Punit Mishra
>            Priority: Critical
>
> I am getting an out of memory while running my Junits from mvn test. The MAVEN_OPTS has been specified to 512m which is more than what is needed to run my tests. 
> When I print available memory to my tests it shows 1M to 63M only.
> Is there any other place where it picks the memory args from. 
> I could see there are some junit properties that can be set but I am not sure where and how should I be setting those properties. I tried setting them in POM.xml but they are not being pickedup.
> The same tests are successfully running from within eclipse with same memory args as specified in MAVEN_OPTS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Moved: (SUREFIRE-304) Out of memory with mvn test

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter moved MPTEST-72 to SUREFIRE-304:
---------------------------------------------

    Complexity: Intermediate
      Workflow: Maven New  (was: jira)
           Key: SUREFIRE-304  (was: MPTEST-72)
       Project: Maven Surefire  (was: maven-test-plugin)

> Out of memory with mvn test
> ---------------------------
>
>                 Key: SUREFIRE-304
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-304
>             Project: Maven Surefire
>          Issue Type: Bug
>         Environment: WINDOWS 2000, JDK1.5, JUNIT
>            Reporter: Punit Mishra
>            Priority: Critical
>
> I am getting an out of memory while running my Junits from mvn test. The MAVEN_OPTS has been specified to 512m which is more than what is needed to run my tests. 
> When I print available memory to my tests it shows 1M to 63M only.
> Is there any other place where it picks the memory args from. 
> I could see there are some junit properties that can be set but I am not sure where and how should I be setting those properties. I tried setting them in POM.xml but they are not being pickedup.
> The same tests are successfully running from within eclipse with same memory args as specified in MAVEN_OPTS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira