This document provides step-by-step instructions on how to resolve the issue of processes generating core dumps on POWER8 when using IBM Java for AIX.

If all of these steps have been completed and the problem persists, then it is recommended that you open a new IBM support call with the IBM AIX Java Support team for a more in-depth analysis into the issue. Prior to any additional analysis, the IBM AIX Java Support team will confirm that all of these steps have been completed since this is a well known and documented issue.
Jump to section: (Problem Description) (Solution) (Workarounds) (Troubleshoot)
The instructions in this document make references to generic terms in Italics that will need to be replaced with information specific to the support call and the environment. It is very important that consistent and accurate values be used in place of the Italicized generic terms when collecting the data to ensure the prompt and correct delivery of the data when uploaded.
Generic Term Replace with
PMR The full IBM PMR number (e.g. , PMR12345.b678.c000).
Overview
Step-by-Step Instructions

Problem:

Applications using IBM Java for AIX using Power 8 hardware with Power 8 mode enabled may generate process core dumps due to a known issue with event-based branching facility (EBB) and the enhanced performance monitoring unit (PMU).

IBM Java for AIX, versions 7.1 and 8.0, utilize the EBB facility and are susceptible to experiencing these application crashes. The most commonly reported scenario occurs when users attempt to use Live Partition Mobility (LPM) without stopping their Java processes. The active Java processes will terminate and generate process core dumps during the LPM activity.

This issue is an AIX issue (not IBM Java issue), so the issue can occur with any process that uses the EBB and/or PMU features. More advanced users with ability to analyze the dumps, can check for references to "MMCR0" register as cause of the issue from the core files.

There is a fix for this issue, however in cases when customers are unable to apply the fixes, there are work-arounds depending on their situation. The following table provides a list of work-arounds and solutions.

Java Version Workaround Fix
Java 8 Enable the Java command line option:
-XX:-RuntimeInstrumentation
Does not apply
Java 7.1 Enable the Java command line option:
-Xjit:disableHardwareProfiling
Does not apply
Java 7 Does not apply Does not apply
Java 6 Does not apply Does not apply
AIX Configure the LPAR to use
Power 7 Compatibility mode
Apply the APARs below

Solution:
The most common scenario of core dumps generated during LPM on Power 8, can be fixed by applying the fixes for the following two known issues for specific AIX releases.

The first known issue with core dumps on Power 8 is addressed in the following APAR:

IV88479: RANDOM PROCESSES CORE DUMP ON POWER8 RUNNING IBM JAVA 8 (AIX 7100-03)
IV86126: RANDOM PROCESSES CORE DUMP ON POWER8 RUNNING IBM JAVA 8 (AIX 7100-04)
IV88175: RANDOM PROCESSES CORE DUMP ON POWER8 RUNNING IBM JAVA 8 (AIX 7200-00)

The second known issue is addressed in the following APARs for specific AIX releases and needs to be applied along with the above APAR:

IV89524: COREDUMP OF PROCESSES WITH EBB CONTEXT AFTER PARTITION MIGRATION (AIX 7.1)
IV89475: COREDUMP OF PROCESSES WITH EBB CONTEXT AFTER PARTITION MIGRATION (AIX 7.2)

There are no fixes available from fix central to address these APARs at the time of publishing this document. Hence, a combo ifix to address both the above known issues, has to be requested from the PTOOLs team (Request queue PTOOLS,165). When requesting and before applying any ifix, customers must assess the risk of applying the ifix since they go through a minimum amount of testing and are temporarily supported until the official update is available for download.

In the common scenario of core dumps during LPM, installing the above ifixes for specific AIX releases and rebooting the LPAR, will prevent the issue from reoccurring. There are other possible scenarios where the core dumps can occur on Power 8, though not using LPM. To identify these situations, please contact IBM support after completing the data collection.

NOTE: The IBM Java APAR "IV65519: JAVA 7.1SR1 JIT SIGILL CRASH ON AIX WHEN RUNNING ON POWER8 " was released in an effort to work around the issue when using IBM Java 7.1 SR1 and prior releases. Until the AIX APARs can be applied, the issue can continue to occur even if the APAR IV65519 is applied.

The instructions that follow provide both AIX and Java temporary solutions to work around the issue if the APAR can not be applied or the customer chooses to wait till the availability of official fix.

Workarounds:

Below is a list of workarounds that may resolve the issue as an alternative to applying an ifix:

AIX Workarounds:

1) Run in Power 7 Compatibility Mode as a temporary fix.
2) If migrating using LPM, stop the processes before the migration and restart them after the migration, to avoid processes from crashing.

Workarounds:

Below is a list of workarounds that may resolve the issue as an alternative to applying an ifix:

1) AIX Workarounds:

a. Run in Power 7 Compatibility Mode as a temporary fix.

b. If migrating using LPM, stop the processes before the migration and restart them after the migration, to avoid processes from crashing.


2) IBM Java Workarounds:

a. Disable the RI facility by adding the JVM command line option to the java command of the crashing process(es):

-XX:-RuntimeInstrumentation

b. Disable hardware profiling by adding the JVM command line option to the java command of the crashing process(es):

-Xjit:disableHardwareProfiling

c. If using Java 7.1(prior to SR1), upgrade Java to SR2 or above to fix the issue as per:

IV65519: JAVA 7.1SR1 JIT SIGILL CRASH ON AIX WHEN RUNNING ON POWER8

Work-arounds:

Below is a list of workarounds that may resolve the issue as an alternative to applying an ifix:

AIX Work-arounds:

a. Run in Power 7 Compatibility Mode as a temporary fix.

To determine the processor mode, at the command prompt, execute the following command:

# prtconf | grep "Processor Implementation Mode"

CPU Compatibility Mopde can be changed to POWER 7 from the HMC through the LPAR properties, following the steps below:

i. Select the LPAR and deactivate it.
ii. Go to Configuration -> Manage Profiles.
iii. Select the profile that needs to be activated.
iv. Go to Processors, change the Processor compatibility mode to Power 7 and boot it using the same profile.

b. If migrating using LPM, stop the processes before the migration and restart them after the migration, to avoid processes from crashing.

For example, from a command line prompt, run the following commands to identify the Java applications using Java 7.1 or Java 8:

# ps -ef | grep java

For each command listed, work with the appropriate system's or application's administrator to temporarily shutdown these processes using Java 7.1 or Java 8, before using LPM and restart once LPM has completed.

IBM Java Work-arounds:

a. For IBM Java 8, disable the Runtime Instrumentation facility by adding the JVM command line option to the java command of the crashing process(es):

-XX:-RuntimeInstrumentation

b. For IBM Java 7.1, disable hardware profiling by adding the JVM command line option to the java command of the crashing process(es):

-Xjit:disableHardwareProfiling

Troubleshoot:

If, after following the above instructions, the application continues to generate core dumps, please complete the following steps:

1. Confirm that you have completed all of the above steps.
2. Contact IBM and open a new IBM service request (new PMR).
3. Collect and upload data as per the data collection procedure for automatically generated process core dumps.

Step 7:

ACTION

Step 8:

ACTION

Step 9:

ACTION

Step 10:

ACTION

Step 11:

ACTION

Step 12:

ACTION

Step 13:

ACTION

Step 14:

ACTION

Step 15:

ACTION

Step 16:

ACTION

Step 17:

ACTION

Step 18:

ACTION

Step 19:

ACTION

Step 20:

ACTION

Step 21:

ACTION

Document Type: Instruction
Content Type: Howto
Hardware: Power 8
Operating System: AIX 7.1 and 7.2
IBM Java: Java 7.1 | Java 8.0
Author(s): Vidya Makineedi
Reviewer(s): Roger Leuckie
Click here to submit feedback for this document.