IBM Support

JR46532: WHEN ARCHIVING A TRACK OR PROCESS APP WITH A LARGE NUMBER OF UN-NAMED SNAPSHOTS, IT CAN BE VERY SLOW AND MAY NOT SUCCEED.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Archiving a track or process app with a lot of un-named
    snapshot can be very slow. This can also lead to resource or
    memory issues on the messaging server, especially if there are
    over 15,000 associated snapshots.
    
    Un-named snapshots are created each time the process app is
    saved.
    
    This archive process can also block the Process admin console
    and any queries against the snapshot table for the duration due
    to the updates being made on that table.
    
    Out of memory issues might be seen on the messaging server if
    the number of snapshots is large enough.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  BPM user who wants to archive a track or    *
    *                  process application.                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: Client gets into deadlocks after he     *
    *                      archives a track in process admin -     *
    *                      the exception is below:                 *
    *                      [4/12/13 15:49:23:887 CDT] 00000066     *
    *                      FfdcProvider  W                         *
    *                      com.ibm.ws.ffdc.impl.FfdcProvider       *
    *                      logIncident FFDC1003I: FFDC Incident    *
    *                      emitted on                              *
    *                      /logs/ffdc/BPM751_PC.AppTarget.gsd1x104 *
    *                      s-PCNode01.0_646f646f_13.04.12_15       *
    *                      .49.23.8734081954769397491541.txt       *
    *                      com.ibm.ws.rsadapter.jdbc.WSJdbcPrepare *
    *                      dStatement.pmiExecuteQuery 738          *
    *                      [4/12/13 15:49:23:890 CDT] 00000073     *
    *                      XmlBeanDefini I                         *
    *                      org.springframework.beans.factory.xml.X *
    *                      mlBeanDefinitionReader                  *
    *                      loadBeanDefinitions Loading XML bean    *
    *                      definitions from class path             *
    *                      resource                                *
    *                      [org/springframework/jdbc/support/sql-  *
    *                      e                                       *
    *                      rror-codes.xml]                         *
    *                      [4/12/13 15:49:23:893 CDT] 00000069     *
    *                      FfdcProvider  W                         *
    *                      com.ibm.ws.ffdc.impl.FfdcProvider       *
    *                      logIncident FFDC1003I: FFDC Incident    *
    *                      emitted on                              *
    *                      /logs/ffdc/BPM751_PC.AppTarget.gsd1x104 *
    *                      s-PCNode01.0_5e2e5e2e_13.04.12_15       *
    *                      .49.23.8739033891153271601066.txt       *
    *                      com.ibm.ws.rsadapter.jdbc.WSJdbcPrepare *
    *                      dStatement.executeQuery 371             *
    *                      [4/12/13 15:49:23:932 CDT] 00000073     *
    *                      SQLErrorCodes I                         *
    *                      org.springframework.jdbc.support.SQLErr *
    *                      orCodesFactory <init>                   *
    *                      SQLErrorCodes loaded: [DB2, Derby,      *
    *                      H2, HSQL, Informix, MS-SQL, MySQL,      *
    *                      Oracle, PostgreSQL, Sybase]             *
    *                      [4/12/13 15:49:23:941 CDT] 00000073     *
    *                      wle           E   CWLLG2229E: An        *
    *                      exception occurred in an EJB call.      *
    *                      Error: PreparedStatementCallback;       *
    *                      SQL [                                   *
    *                      select  projects.name as projectName,   *
    *                      projects.short_name as                  *
    *                      projectShortName,                       *
    *                      snaps.snapshot_id as snapshotID,        *
    *                      snaps.branch_id as branchID,            *
    *                      snaps.name as snapshotName,             *
    *                      snaps.is_active as isActive,            *
    *                      snaps.is_default as isDefault,          *
    *                      snaps.is_installed as isInstalled,      *
    *                      branchs.name as branchName,             *
    *                      snaps.created_on as                     *
    *                      snapshotDeployedOn,                     *
    *                      bpds.name as bpdName,                   *
    *                      (select count(*) from                   *
    *                      lsw_bpd_instance i where                *
    *                      i.execution_status in (1,6) and         *
    *                      i.snapshot_id=snaps.snapshot_id and     *
    *                      i.cached_bpd_version_id=bpds.cached_bpd *
    *                      _version_id) as instancesRunning,       *
    *                      (select count(*) from                   *
    *                      lsw_bpd_instance i where                *
    *                      i.execution_status=3 and                *
    *                      i.snapshot_id=snaps.snapshot_id and     *
    *                      i.cached_bpd_version_id=bpds.cached_bpd *
    *                      _version_id) as instancesFailed,        *
    *                      (select count(*) from                   *
    *                      lsw_bpd_instance i where                *
    *                      i.execution_status in (1,6) and         *
    *                      i.snapshot_id=snaps.snapshot_id) as     *
    *                      allInstancesRunning,                    *
    *                      projects.project_id as projectID        *
    *                      from lsw_snapshot snaps                 *
    *                      inner join lsw_project projects ON      *
    *                      snaps.project_id =                      *
    *                      projects.project_id                     *
    *                      inner join lsw_branch branchs ON        *
    *                      snaps.branch_id =                       *
    *                      branchs.branch_id                       *
    *                      left outer join lsw_favorite bpds ON    *
    *                      (snaps.snapshot_id =                    *
    *                      bpds.snapshot_id and bpds.item_type =   *
    *                      25 and bpds.exposed_process_type =      *
    *                      0)                                      *
    *                      where                                   *
    *                      snaps.name is not null                  *
    *                      and projects.is_toolkit='F'             *
    *                      and (bpds.tip != 'T' or bpds.tip is     *
    *                      null)                                   *
    *                      and snaps.is_active='T'                 *
    *                      order by projectName ASC,               *
    *                      snapshotName ASC, bpdName asc           *
    *                      ]; Transaction (Process ID 168) was     *
    *                      deadlocked on lock resources with       *
    *                      another process and has been chosen     *
    *                      as the deadlock victim. Rerun the       *
    *                      transaction.; nested exception is       *
    *                      com.microsoft.sqlserver.jdbc.SQLServerE *
    *                      xception: Transaction (Process ID       *
    *                      168) was deadlocked on lock resources   *
    *                      with another process and has been       *
    *                      chosen as the deadlock victim. Rerun    *
    *                      the transaction.                        *
    *                      org.springframework.dao.DeadlockLoserDa *
    *                      taAccessException:                      *
    *                      PreparedStatementCallback; SQL [        *
    *                      select  projects.name as projectName,   *
    *                      projects.short_name as                  *
    *                      projectShortName,                       *
    *                      snaps.snapshot_id as snapshotID,        *
    *                      snaps.branch_id as branchID,            *
    *                      snaps.name as snapshotName,             *
    *                      snaps.is_active as isActive,            *
    *                      snaps.is_default as isDefault,          *
    *                      snaps.is_installed as isInstalled,      *
    *                      branchs.name as branchName,             *
    *                      snaps.created_on as                     *
    *                      snapshotDeployedOn,                     *
    *                      bpds.name as bpdName,                   *
    *                      (select count(*) from                   *
    *                      lsw_bpd_instance i where                *
    *                      i.execution_status in (1,6) and         *
    *                      i.snapshot_id=snaps.snapshot_id and     *
    *                      i.cached_bpd_version_id=bpds.cached_bpd *
    *                      _version_id) as instancesRunning,       *
    *                      (select count(*) from                   *
    *                      lsw_bpd_instance i where                *
    *                      i.execution_status=3 and                *
    *                      i.snapshot_id=snaps.snapshot_id and     *
    *                      i.cached_bpd_version_id=bpds.cached_bpd *
    *                      _version_id) as instancesFailed,        *
    *                      (select count(*) from                   *
    *                      lsw_bpd_instance i where                *
    *                      i.execution_status in (1,6) and         *
    *                      i.snapshot_id=snaps.snapshot_id) as     *
    *                      allInstancesRunning,                    *
    *                      projects.project_id as projectID        *
    *                      from lsw_snapshot snaps                 *
    *                      inner join lsw_project projects ON      *
    *                      snaps.project_id =                      *
    *                      projects.project_id                     *
    *                      inner join lsw_branch branchs ON        *
    *                      snaps.branch_id =                       *
    *                      branchs.branch_id                       *
    *                      left outer join lsw_favorite bpds ON    *
    *                      (snaps.snapshot_id =                    *
    *                      bpds.snapshot_id and bpds.item_type =   *
    *                      25 and bpds.exposed_process_type =      *
    *                      0)                                      *
    *                      where                                   *
    *                      snaps.name is not null                  *
    *                      and projects.is_toolkit='F'             *
    *                      and (bpds.tip != 'T' or bpds.tip is     *
    *                      null)                                   *
    *                      and snaps.is_active='T'                 *
    *                      order by projectName ASC,               *
    *                      snapshotName ASC, bpdName asc           *
    *                      ]; Transaction (Process ID 168) was     *
    *                      deadlocked on lock resources with       *
    *                      another process and has been chosen     *
    *                      as the deadlock victim. Rerun the       *
    *                      transaction.; nested exception is       *
    *                      com.microsoft.sqlserver.jdbc.SQLServerE *
    *                      xception: Transaction (Process ID       *
    *                      168) was deadlocked on lock resources   *
    *                      with another process and has been       *
    *                      chosen as the deadlock victim. Rerun    *
    *                      the transaction.                        *
    *                      at                                      *
    *                      org.springframework.jdbc.support.SQLErr *
    *                      orCodeSQLExceptionTranslator.tran       *
    *                      slate(SQLErrorCodeSQLExceptionTranslato *
    *                      r.java:300)                             *
    *                      at                                      *
    *                      org.springframework.jdbc.core.JdbcTempl *
    *                      ate.execute(JdbcTemplate.java:607       *
    *                      )                                       *
    *                      at                                      *
    *                      org.springframework.jdbc.core.JdbcTempl *
    *                      ate.query(JdbcTemplate.java:641)        *
    *                      at                                      *
    *                      org.springframework.jdbc.core.JdbcTempl *
    *                      ate.query(JdbcTemplate.java:670)        *
    *                      at                                      *
    *                      org.springframework.jdbc.core.JdbcTempl *
    *                      ate.query(JdbcTemplate.java:678)        *
    *                      at                                      *
    *                      com.lombardisoftware.server.ejb.runtime *
    *                      .RuntimeServicesCore.getInstalled       *
    *                      Snapshots(RuntimeServicesCore.java:776) *
    *                      at                                      *
    *                      sun.reflect.GeneratedMethodAccessor176. *
    *                      invoke(Unknown Source)                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Archiving a track or process app with a lot of un-named
    snapshot can be very slow. This can also lead to resource
    deadlock and/or memory issues on the messaging server.
    

Problem conclusion

  • The code was optimized to archive only named snapshots.
    
    Ifix JR46532 is available in Fix Central. Installation
    instruction can be downloaded together with iFix file.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR46532

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-05-02

  • Closed date

    2013-07-22

  • Last modified date

    2013-07-22

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    BPM ADVANCED

  • Fixed component ID

    5725C9400

Applicable component levels

  • R750 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTN5","label":"IBM Business Process Manager Advanced"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 October 2021