HP-UX Network Node Manager 8 pagesize installation issue

While working on testing Network Node Manager 8 several years ago, came across a bug on HP-UX.

The first installation of NNM 8.10 on HP-UX 11.31 server was attempted in console mode:

# setup.bin -i console
It failed with the following cryptic error (NNM logs contained very little information):
...
Processing of 30 packages (Using Native sd) scheduled.
Processing of 30 packages (Using Native sd) scheduled.
Completed checking the installation status of all packages.
Waiting for user to click on the Button to continue.
performIsInstalledChecks() .... done
This process might take a while. Please do not interrupt...
Starting the installation of the packages Starting
the processing of
the packages (threaded).
30 packages will be installed during this session. (Using Software
Distributor)
Executing the initialize actions for HP Network Node Manager 8.10.000
Completed deferred IA Variable substitutions on the Script arguments.
Executing initialize action : Preinstall Check (I) Completed deferred
IA Variable substitutions on the Script arguments.
Executing initialize action : Preinstall Check (II) There was a
failure with this installation action for HP Network Node Manager
8.10.000. Preinstall Check (II) has returned a non-zero error code.
HP Network Node Manager will not be installed.
...
There were not many log entries to find out more details.

/tmp/nnm_preinstallcheck_phaseII.log was empty.

As well, not much information in /var/tmp/HPOvInstaller/NNM_8.10.000/NNM_8.10.000_2010.02.03_08_31_HPOvInstallerLog.txt.

The second installation of NNM 8.10 on HP-UX 11.31 server was attempted in GUI mode.

It failed with the same cryptic error as above but this time we could pull up a "description" pop-up menu which had more details:

Exception in thread "main" java.lang.NoClassDefFoundError:
java/lang/management/ManagementFactory at 
com.hp.ov.nms.preinstall.PreInstallCheck.checkTotalSwapSpace
(PreInstallCheck.java:405) at
com.hp.ov.nms.preinstall.PreInstallCheck.
(PreInstallCheck.java:87) at
com.hp.ov.nms.preinstall.PreInstallCheck.main
(PreInstallCheck.java:459)
NNM Preinstall Check (II) Failed
Although the error seemed to point to swap problems, this server actually had 16GB RAM and 8GB of free swap.

What was the actual problem? Pagesize!

Although these two servers did not run any Integrity Virtual Machines any more, the pagesize from the old installation was 64KB. NNM hated it and give the errors as above.

# getconf PAGE_SIZE
65536

# kctune -v base_pagesize
Tunable             base_pagesize
Description         Base page size in kBytes (i.e., NBPG)
Module              vm
Current Value       65536
Value at Next Boot  65536
Value at Last Boot  65536
Default Value       4
Constraints         base_pagesize >= 4
 	            base_pagesize <= 64
      	            base_pagesize is a power of 2
                    (1024 * base_pagesize) <= fcache_min_preg_size
                    (1024 * base_pagesize) <= fcache_max_preg_size
                    (1024 * base_pagesize) <= fcache_default_preg_size
   Can Change       At Next Boot Only
Once the kernel parameter pagesize value was decreased to 4KB via kctune command (reboot was required because this was not a Dynamically Tunable Kernel Parameter)), NNM 8.10 was installed without any problems.