Mona
Mona

Reputation: 352

"java.lang.OutOfMemoryError" i am getting this error whenever i am running one particualar testng suite file in jenkins

ours is maven project, our framework was desinged in such a way that entire project will be checkedout in to test environment[Virtual Linux Machine] and from there maven command will be executed with mentioned suite file. every thing triggerd in jenkins.

As a beginner i dont understand this particular suite is getting failed with below error

java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:714) at com.jcraft.jsch.Util.createSocket(Util.java:372) at com.jcraft.jsch.Session.connect(Session.java:215)

The suite file is

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="test" verbose="10">
    <parameter name="component" value="run" />
    <parameter name="testtype" value="sanity" />
    <listeners>
        <listener class-name="class" />
    </listeners>


     <test name="testa" time-out="5400000">

        <classes>
            <class name="classa " />
        </classes>
    </test>

    <test name="testb" time-out="3600000">
    <classes>
    <class name="classb"/>
    </classes>
    </test>

    <test name="testc" >

        <classes>
            <class name="classc" />

        </classes>
        </test> 

    <test name="testd">
        <classes>
            <class name="classdd>

            </class>
        </classes>
    </test>

</suite>

[Due to data privacy i renamed it to classa and testa]

please guide me, is their any thing i have to modify in maven options or include in suite file, or to change anything in jenkins ? please advice me.

Upvotes: 1

Views: 452

Answers (1)

Ivan
Ivan

Reputation: 2320

You are probably running out of some system resources during the test execution. This error message may appear due to file opened descriptors limit being reached or number of processes ran per user. While this is a really broad issue these links may guide you through the process of troubleshooting:

Jenkins limits: ulimit on *nix

Similar issue discussed in google groups

Java 'unable to create new native thread' explanation

Upvotes: 2

Related Questions