Migrating Java Applications to HP-UX
14
Running HPjconfig in non-GUI mode
The following is the -help information for HPconfig:
<put in different font> <see TS guide>
usage:
HPjconfig [ options ] -gui
HPjconfig [ options ] <object> <action>
objects: -patches &| -tunables
actions: -listreq | -listmis | -listpres | -apply
options:
-patches operate on java-specific patches
-tunables operate on java-specific tunables
-listreq list all java required patches or tunables that are applicable to this system
-listmis list missing java-specific patches or tunables on the system
-listpres list applied (installed) java-specific patches or tunables on the system
-apply apply (install) missing java-specific patches or tunables on the system
-javavers s java versions for selecting patches e.g 1.2, 1.3, 1.4, 5.0, 6.0
-data s local data file with java-specific list of patches and tunables
-[no]gui run in GUI mode
-logfile s name of log file
-proxyhost s HTTP proxy host name for accessing live data
-proxyport s HTTP proxy port for accessing live data
-help show help string and exit
-version show version string
Examples:
List options available in non-gui mode:
$ java -jar ./HPjconfig.jar -nogui -help
List missing patches:
$ java -jar ./HPjconfig.jar -nogui -patches -listmis
List required tunables:
$ java -jar ./HPjconfig.jar -nogui -tunables -listreq
List present patches and tunables
$ java -jar ./HPjconfig.jar -nogui -tunables -patches listpres
List present patches and tunables and write to specified log file
$ java -jar ./HPjconfig.jar -logfile my.log -nogui -tunables -patches listpres
The log file produced can be used for remote analysis of your machine.
Key Factors Affecting Performance
This section discusses some of the key factors that can affect the performance of your java
application:
• Java Heap Size and Garbage Collection Behavior
• Thread Behavior and Lock Contention
• Deployment of Java Instances and Processor Usage
• Other Factors (OS Scheduler, HT, ForceMmapReserved, Exceptions, System Components)