The enablejvm command enables you to configure your application server or a specific profile to use the IBM® Technology for Java Virtual Machine, by choosing either option 11 or option 12 of the IBM Developer Kit for Java.
IBM i 6.1 | IBM i 7.1 |
---|---|
The IBM version of Java Platform, Standard Edition 6 32-bit JVM (5761JV1 option 11) | The IBM version of Java Platform, Standard Edition 6 32-bit JVM (5761JV1 option 11) |
The IBM version of Java Platform, Standard Edition 6 64-bit JVM (5761JV1 option 12 ) | The IBM version of Java Platform, Standard Edition 6 64-bit JVM (5761JV1 option 12 ) |
By default, the product uses the IBM version of the Java SE 6 32-bit JVM.
For more information about where to run this command, see the Using command-line tools topic.
The command syntax is as follows:
enablejvm [options]
The following options are available for the enablejvm command:
The following examples demonstrate correct syntax:
enablejvm -jvm std32 [-profile profile_name]
enablejvm -jvm std64 [-profile profile_name]
If you did not specify the -profile parameter on the enablejvm invocation, restart any servers which are running. If you did specify the -profile parameter on the enablejvm invocation, you must restart any servers that belong to the profile that was changed before the change takes effect.
The -Xms or -Xmx Java arguments are used to change the initial Java heap size or the maximum Java heap size for an application server. If you previously used the administrative console to add either the -Xms or -Xmx Java arguments to the Generic JVM arguments setting for an application server, these settings might not be appropriate or even valid for the IBM Java SE 6 32-bit JVM. Therefore, after you enable a profile to use the IBM Java SE 6 32-bit JVM, the first time that you start an application server under that profile, the application server might fail because either of these Java heap size settings is greater than the 32-bit JVM three gigabyte Java heap size limit. Review all of your Java heap settings in the administrative console and either change or eliminate them as appropriate.