SAR utility is what you are looking for.
Please check if you have
/usr/lbin/sa/sa1
It's a simple shell script, which you edit and point where you want reports to be created. Default is /var/adm/sa i belive.
Put in cron smth similar to
0 * * * * /usr/lbin/sa/sa1 300 12
After some time, issuing sar will generate report per specifed options for last 24 hours.
If you want previous reports you can read them with sar under /var/adm/sa/sa<num> by issuing :
sar <other options check man> -f sa<num>
This way you can check when you have peaks, and code script to monitor those times with ps / tusc / or alike.
Unfortunatly not.
Put that in cron for future reports avalibility
Syslog should be your first look (e.g kernel will kill processes which hit the kernel limits, and write that in syslog )
Other then that, if you are using Nagios,HP OpenView/ SIM or alike, some data should be there.
If you want to catch 'what is wrong' you need to constantly monitor your HW and use monitoring tools like Nagios/OpenView/HPSIM, create rules and such.
Example, you use sar in cron to catch in what part of day/week/etc. the problems are occurring.
Presuming the time, write script / configure monitoring tool etc. to run some command when machine is constantly 100% or alike..
Thread being moved to more suitable forum: HP-UX
There are other HP specific utilities if you have them installed (for they are not free, at the best if you dont have, you can install an evaluation (30-60 days?) copy).
Dont know if still valid, but you can try.. to execute:
/opt/perf/bin/perfstat -v
Should give you the status of performance tools if installed like OV measureware, glance etc...