Improving Java performance

You can take various actions to improve the performance of Java™ applications and the JVMs in which they run.

About this task

In addition to fine-tuning CICS® itself, you can further improve the performance of Java applications in the following ways:
  • Ensuring that the Java applications are well written
  • Tuning the Java Runtime Environment (JVM)
  • Tuning the language in which the JVM runs

Procedure

  1. Determine the performance goals for your Java workload.
    Some of the most common goals include minimizing processor usage or application response times. After you decide on the goal, you can tune the Java environment.
  2. Analyze your Java applications to ensure that they are running efficiently and do not generate too much garbage.
    IBM® has tools that can help you to analyze Java applications to improve the efficiency and performance of particular methods and the application as a whole.
  3. Tune the JVM server.
    You can use statistics and IBM tools to analyze the storage settings, garbage collection, task waits, and other information to tune the performance of the JVM.
  4. Tune the Language Environment® enclave in which a JVM runs.
    JVMs use MVS storage, obtained by calls to MVS Language Environment services. You can modify the runtime options for Language Environment to tune the storage that is allocated by MVS.
  5. Optional: If you use the z/OS® shared library region to share DLLs between JVMs in different CICS regions, you can tune the storage settings.