-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
Jenkins Version = 1.546
PTC Integrity Plugin Version =1.22
Integration Point Server = Integrity Client Installation on the same server machine that runs Jenkins
Integrity Server / Client Version = 10.4
Using the PTC Integrity Plugin leads to a Out of Memory exceptions- and effectively kills the underlying Integrity Client that serves as "Integration Point Server" (within hours).
As recommended by the PTC support team, we do not use our Integrity Server directly but let a locally installed Integrity Client serve as "Integration Point Server".
This used to work fine for earlier versions, where a known bug in the Integrity API Implementation might lead to memory issues. Utilizing the server directly had even killed our Integrity server several times and in our current setup, at least only the "Integration Point Server" aka local client dies.
It still worked with Plugin 1.18
---------------------------------------------------------------------------
Since Plugin Version 1.20, the local Integrity Client's memory usage grows with every polling and every workspace update job performed!
This improved with version 1.22, as the memory consumption is now growing slower.
But still the Client won't last 8 hour.
---------------------------------------------------------------------------
Monitoring the client with "Java Visual VM" shows that the garbage collection is running, but seems to find nothing to delete.
It also shows that, for each SCM Update Job started by jenkins, the number of threads called "Client Instance Logger" increases by the "Checkout Thread Pool Size" defined in the plugin.
These threads wait for ever and never die.
at ~300 waiting threads like these the client dies.
[JENKINS-21587] memory leak in Plugin 1.22 -orphaned Logger Threads
Description |
Original:
Using the PTC Integrity Plugin leads to a Out of Memory exceptions- and effectively kills the underlying Integrity Client that serves as "Integration Point Server" (within hours). As recommended by the PTC support team, we do not use our Integrity Server directly but let a locally installed Integrity Client serve as "Integration Point Server". This used to work fine for earlier versions, where a known bug in the Integrity API Implementation might lead to memory issues. Utilizing the server directly had even killed our Integrity server several times and in our current setup, at least only the "Integration Point Server" aka local client dies. It still worked with Plugin 1.18 Since Plugin Version 1.20, the local Integrity Client's memory usage grows with every polling and every workspace update job performed! Monitoring the client shows that the garbage collection is running, but seems to find nothing to delete. Looking at the Integriy Server diag, we find and increasing number of sessions our CIUser's account. So obviously there seem's to be a problem creating and releasing API sessions by the plugin, which would IMHO explain the memory issue. |
New:
Using the PTC Integrity Plugin leads to a Out of Memory exceptions- and effectively kills the underlying Integrity Client that serves as "Integration Point Server" (within hours). As recommended by the PTC support team, we do not use our Integrity Server directly but let a locally installed Integrity Client serve as "Integration Point Server". This used to work fine for earlier versions, where a known bug in the Integrity API Implementation might lead to memory issues. Utilizing the server directly had even killed our Integrity server several times and in our current setup, at least only the "Integration Point Server" aka local client dies. It still worked with Plugin 1.18 --------------------------------------------------------------------------- Since Plugin Version 1.20, the local Integrity Client's memory usage grows with every polling and every workspace update job performed! This improved with version 1.22, as the memory consumption is now growing slower. But still the Client won't last 8 hour. --------------------------------------------------------------------------- Monitoring the client with "Java Visual VM" shows that the garbage collection is running, but seems to find nothing to delete. It also shows that, for each SCM Update Job started by jenkins, the number of threads called "Client Instance Logger" increases by the "Checkout Thread Pool Size" defined in the plugin. These threads wait for ever and never die. at ~300 waiting threads like these the client dies. |
Environment |
Original:
Jenkins Version = 1.546 PTC Integrity Plugin Version =1.20 Integration Point Server = Integrity Client Installation on the same server machine that runs Jenkins Integrity Server / Client Version = 10.4 |
New:
Jenkins Version = 1.546 PTC Integrity Plugin Version =1.22 Integration Point Server = Integrity Client Installation on the same server machine that runs Jenkins Integrity Server / Client Version = 10.4 |
Resolution | New: Won't Fix [ 2 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Resolution | Original: Won't Fix [ 2 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Reopened [ 4 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 153585 ] | New: JNJira + In-Review [ 194600 ] |