How to change default JVM parameters to start the SDK for PowerLinux
wainersm 27000167H1 Visits (2202)
By: Wainer dos Santos Moschetta.
As of Version 1.2, the IBM SDK for PowerLinux comes with IBM Java 6 SDK required to run the Eclipse instance. Users sometimes ask me how they can change JVM (Java Virtual Machine) parameters according to their specific needs (e.g. increase jvm heap size due to big projects being imported into the SDK).
Here is an answer:
The JVM parameters are defined in the following file where any options under -vmargs will be passed to the JVM.
Here is an example of sdk_launcher.ini default content:
Now, let's suppose you are running a very large system and want to limit number of Garbage Collector threads, for example 2 GCC threads per SDK instance. You must to append -Xgcthreads2 in the sdk_launcher.ini file, resulting in:
Note: sdk_launcher.ini file is shared by all users in a multi-user scenario. Therefore, changing it affects all IBM SDK for PowerLinux instances to be initialized. As an alternative procedure, you can pass JVM arguments when starting the IBM SDK for PowerLinux but be aware it is going to overwrite all default parameters. For example,
By the way, I recommend anyone wanting to tune Linux applications to run on IBM JVM for Power: read this post made by Bill Buros who gave very good information and tips.