IBM Support

IV49657: OPTION TO PREVENT THE EXIT OF A JAVA PROCESS RUNNING AS A WINDOW S SERVICE, ON A LOG-OFF EVENT

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Error Message:
    .
    Stack Trace: N/A
    .
    In general, Windows services should not exit on the log-off
    event. However, Java while running as a Windows service or a sub
    process of a windows service exits on the Windows log-off event.
    

Local fix

  • To work around the issue, the signal handling in java can be
    disabled using the -Xrs option. However, it has the following
    limitations:
    1. If you have installed application shutdown hooks, they will
    not run in the case of Java being brought down during a Windows
    shutdown event.
    2. Dump collection, for diagnostic purposes, will not function.
    

Problem summary

  • Currently, the JVM signal handler triggers a JVM shutdown on the
    log-off event irrespective of whether or not it is running as a
    service.
    A Windows service may launch a Java application in the following
    ways:
        - Launch Java itself as a windows service
        - Launch Java  as a sub-process of the windows service
    The APAR IV37554 deal with the scenario when the Java itself is
    running as a service. However, it cannot handle the situation
    when Java is launched as sub-process of a Windows service.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR15
    6.0.1 SR7
    7.0.0 SR6
    .
     The JDK has been provided a new system proprty
    "com.ibm.signalhandling.ignoreLogoff" which will retain the Java
    process alive even if it run as a sub-process of  a Windows
    service. By default, the property is disabled
    (com.ibm.signalhandling.ignoreLogoff=false) and the  Java
    process gets terminated with Windows logoff if it runs as a
    sub-process of Windows service. By enabling  the property
    through command line argument
    "-Dcom.ibm.signalhandling.ignoreLogoff=true', the Java process
    will be retained across Windos logoff event even when Java runs
    as a subprocess of a windows service.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV49657

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-09-19

  • Closed date

    2013-09-19

  • Last modified date

    2013-09-19

  • 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

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVQ3Y","label":"Java Class Libraries"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
19 September 2013