Tuning Java program performance

You should take several aspects of Java™ application performance into consideration when building a Java application.

Here are some actions you can take to achieve better performance:

  • Improve performance of your Java code by using the Just-In-Time compiler or using a shared class cache.
  • Carefully set your values for optimal garbage collection performance.
  • Only use native methods to start system functions that are relatively long running and are not available directly in Java.
  • Use Java exceptions in cases that are not the normal flow through your application.
Additional information on these and other performance considerations can be found at:

Any job session can start and end PEX. Normally, the data that is collected is system wide and pertains to all jobs on the system, including your Java programs. At times, it may be necessary to start and stop the performance collection from inside a Java application. This reduces the collection time and may reduce the large volume of data that is typically produced by a call or return trace. PEX cannot run from within a Java thread. To start and stop a collection, you need to write a native method that communicates to an independent job though a queue or shared memory. Then, the second job starts and stops the collection at the appropriate time.

The following list shows additional areas to consider that can affect Java performance: