IBM Support

JIT Compiler may not be disabled when using Hot Method Replace feature while debugging WebSphere Application Server applications

Question & Answer


Question

This technote explains why IBM® Rational® Application Developer removes the JVM argument "-Djava.compiler=NONE" flag when you launce an IBM WebSphere® Application Server v6.0 application in Debug mode.

Cause

In the WebSphere Application Server, it is possible to change the JVM arguments used during Debugging. You can do so by opening the server's Administration Console and navigating to Servers->Application servers-><server_name>->Additional Properties->Debugging Service->JVM debug arguments. If you edit the JVM arguments to disable JIT execution, you may find that your changes are rolled back after restarting the server.

Answer

When using the Hot Method Replace feature, Rational Application Developer tooling ensures that the Java Virtual Machine flags do not disable the JIT compiler. The JIT compiler is required to be enabled in order to use hot method replacing.

If you need to disable JIT compiling while debugging, you will also need to disable Hot Method Replace by taking the following steps:

1. Open the Server Editor in Rational Application Developer.

2. Deselect Enable hot method replace in debug mode

3. Save the server settings.

4. Restart the server for the new settings to take effect.

5. You can now disable JIT compilation by adding -Djava.compile=NONE to the Application Server Debug JVM arguments.




See the related technote in the Related information section for further information on other Hot Method Replace limitations.

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Application Server Tooling (AST)","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"7.0;7.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Not Applicable","Platform":[{"code":"","label":""}],"Version":"6.0","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21363895