Migrating Java Applications to HP-UX
11
Here is an example of partial output from running the glance adviser script:
GBLH: date time swap nfile cpu_tot cpu_sys cpu_usr run_q mem_virt mem_res pageout_rate
pageout_rate_cum b
ufcache_hit_pct disk_io net_in_pkt_rate net_in_err_rate net_out_pkt_rate net_out_err_rate
GBL: 05/28/2010 13:33:00 16 1 50 5 46 0 7995mb 21.45 0 0
99.30 1.60
12471 0 13779 0
PH: proc_name pid cpu cpu_sys cpu_usr vss rss data_vss data_rss threads files io disk_io
P: java 28818 323.60 27.30 296.30 3534380kb 3401580kb 77660 77660 89
173 0.00
0.00
PSH: syscall_name count count_cum rate rate_cum total_time total_time_cum
PS: read 281334 550369 28417.5 18345.6 107.62 209.63
PS: write 34005 65958 3434.8 2198.6 0.09 0.17
PS: ioctl 11559 22372 1167.5 745.7 9.52 18.31
PS: poll 11337 21990 1145.1 733.0 20.02 40.03
PS: send 144508 283858 14596.7 9461.9 1.62 3.17
PS: sched_yield 447103 1151559 45161.9 38385.3 0.40 1.00
PS: ksleep 17466 31275 1764.2 1042.5 403.69 601.73
PS: kwakeup 17392 31131 1756.7 1037.7 0.04 0.06
Other Tools
If lower-level analysis is required, additional tools are available such as HP caliper, tusc, gdb and
others. The standard JDK tool set is available as well.
See Java Tools for HP-UX: Quick Start and Migration Guide for a complete list.
Configuring Patches and Kernel Parameters for Java on
HP-UX
When migrating a Java application from another platform to HP-UX, make sure the machine is set up
with the proper patches required by Java, and the recommended kernel parameters are set
appropriately. HPjconfig is a configuration tool to help you set up patches and kernel parameters.
To see the patches required for Java, refer to the following website:
http://ftp.hp.com/pub/softlib/hpuxjava-patchinfo/index.html
HPjconfig provides recommendations for the following kernel parameters:
maxusers
nproc
max_thread_proc
nkthread
nfile
maxfiles
maxfiles_lim
maxdsiz
maxdsize_64bit
ncallout
To download HPjconfig (HPjconfig-3.2.00.tar.gz), go to:
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPJCONFIG
HPjconfig can be run in GUI mode or non-GUI (command-line) mode. In either mode, HPjconfig
generates a summary of configuration information in a log file. The default name is:
HPjconfig_<hostname>_<date>_<timestamp>.log