[JIRA] (JENKINS-53665) Micro Focus Application Automation Tools - file descriptor leak

9 views
Skip to first unread message

brainsam@yandex.ru (JIRA)

unread,
Sep 19, 2018, 12:53:02 PM9/19/18
to jenkinsc...@googlegroups.com
Alexander Moiseenko created an issue
 
Jenkins / Bug JENKINS-53665
Micro Focus Application Automation Tools - file descriptor leak
Issue Type: Bug Bug
Assignee: Daniel Gront
Attachments: jenkins-fds.png, lsof-jenkins.zip
Components: hp-application-automation-tools-plugin
Created: 2018-09-19 16:52
Environment: jenkins 2.121.1
Priority: Minor Minor
Reporter: Alexander Moiseenko

At some point in time, with the increase in the number of builds on Jenkins, we faced a  "Too many open files" exception in Jenkins log.
Analysis of lsof command output (lsof-jenkins.zip) showed that there are a lot of open files in some projects (Freestyle or Maven type)  created at build completion on Jenkins master with name:

{$JENKINS_HOME}/jobs/test_project/builds/140/GetJUnitTestResults4300391778772244764.tmp 

I found file with non zero size with the folowing content:

$  cat GetJUnitTestResults1715785790472604747.tmp
▒▒ ♣sr Gcom.hpe.application.automation.tools.octane.tests.junit.JUnitTestResult▒▒▒▒▒▒▒  JdurationJ startedL     classNamet Ljava/lang/String;L ◄externalReportUrlq ~ L
moduleNameq ~ L packageNameq ~ L ♠resultt JLcom/hpe/application/automation/tools/octane/tests/junit/TestResultStatus;L  testErrort CLcom/hpe/application/automation/tools/octane/tests/junit/TestErrorTestTryOrFailptp◄storage-test-coret  ~r Hcom.hpe.application.automation.tools.octane.tests.junit.TestResultStatus          xr java.lang.Enum          xpt ♠PASSEDsr Acom.hpe.application.automation.toTestTryOrFailpq~~x♠qi~.qe~tqr~ot▒♣test1sqL~rrorMsgq ♠ Le▒":{t   errorTypeq ~ L
TestTryOrFailpq~~t♠qt~sq2~q ~         $  e▒":{t

So I decided that hp-application-automation-tools-plugin leaves files opened after build finish.

The graph shows number of opened files by jenkins process. The red line is when plugin turned off

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

daniel.gront@microfocus.com (JIRA)

unread,
Sep 20, 2018, 1:18:03 AM9/20/18
to jenkinsc...@googlegroups.com

daniel.gront@microfocus.com (JIRA)

unread,
Sep 20, 2018, 1:18:03 AM9/20/18
to jenkinsc...@googlegroups.com

vberestov@gmail.com (JIRA)

unread,
Oct 3, 2018, 9:22:06 AM10/3/18
to jenkinsc...@googlegroups.com
veniamin b commented on Bug JENKINS-53665
 
Re: Micro Focus Application Automation Tools - file descriptor leak

It seems fd leak caused by this code:  

https://github.com/jenkinsci/hpe-application-automation-tools-plugin/blob/52c0da26c9e93f404eb537e4f5f2d0aa057b4254/src/main/java/com/microfocus/application/automation/tools/octane/tests/junit/JUnitExtension.java#L252

Im not sure, but after catch {throw ..} 

 

os.flush()
oos.close()

should never happen.

May be 

finally {
    os.flush() 
    oos.close()
}

could help. 

But im still not sure.

awalls@cloudbees.com (JIRA)

unread,
Feb 26, 2019, 2:51:01 PM2/26/19
to jenkinsc...@googlegroups.com

awalls@cloudbees.com (JIRA)

unread,
Feb 26, 2019, 2:51:02 PM2/26/19
to jenkinsc...@googlegroups.com

jesper.halden@evry.com (JIRA)

unread,
Jul 19, 2019, 2:22:02 AM7/19/19
to jenkinsc...@googlegroups.com
jesper halden commented on Bug JENKINS-53665
 
Re: Micro Focus Application Automation Tools - file descriptor leak

Whats the status on this?

Wasn't this fixed in 5.8???.......seems Micro Focus is not prioritizing this? 

 

radislav.berkovich@microfocus.com (JIRA)

unread,
Dec 19, 2019, 4:05:04 AM12/19/19
to jenkinsc...@googlegroups.com
Radi Berkovich assigned an issue to Radi Berkovich
 
Change By: Radi Berkovich
Assignee: Michael Seldin Radi Berkovich
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

radislav.berkovich@microfocus.com (JIRA)

unread,
Dec 19, 2019, 4:05:06 AM12/19/19
to jenkinsc...@googlegroups.com

radislav.berkovich@microfocus.com (JIRA)

unread,
Dec 19, 2019, 4:05:06 AM12/19/19
to jenkinsc...@googlegroups.com

radislav.berkovich@microfocus.com (JIRA)

unread,
Dec 19, 2019, 4:05:06 AM12/19/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages