HP-UX Programmer's Guide for Java 2
Table Of Contents
- Table of Contents
- 1 Introduction
- 2 HotSpot Technology Tools and Commands
- 3 Configuration for Java™ Support
- 4 Performance and Tuning
- 5 Measuring System Performance
- 6 Using Threads
- 7 Using Signals
- 8 Using Java™ 2 JNI on HP-UX
- 9 Expanding Memory
- Determine your requirements
- Memory layout under HP-UX 11.0 (PA-RISC only)
- Additional memory available under HP-UX 11i (PA-RISC only)
- Allocating physical memory and swap in the Java™ heap
- Useful key command-line options for allocating memory
- Application-dependent considerations using large heap size HP-UX 11i PA-RISC
- Expanding heap size in native applications on PA-RISC HP-UX 11.11 and later releases
- Expanding heap size in native applications on Integrity HP-UX 11.23 and later releases
- Expanding heap size in HP-UX PA-RISC
- Expanding heap size in HP-UX Integrity
- 10 Diagnosing Memory Leaks
- A JDK/JRE 6.0.n and 7.0.n Usage Notes
- Using Java 2 JNI on HP-UX
- Garbage collection
- Asian TrueType fonts and Asian locales
- Date/Time methods defaults
- Profiling
- Compatibility with previous releases
- Java Cryptography Extension (JCE) policy files
- Configuring the Java Runtime Plug-In
- CLASSPATH environment variable
- Java Web Start technology usage
- Upgrading from a previous Java Web Start version
- IPv6 support
- Allocation Site Statistics and Zero Preparation -Xverbosegc
- JDK 6.0.04 flags
- GC log-rotation support
- NUMA collector enhancements
- ThreadDumpPath support
- Garbage-First garbage collector (-XX:+UseG1GC)
- jmap, jinfo, and jstack tools included in JDK 6.0.03
- Additional Java Web Start documentation
- B JDK/JRE 5.0.n Usage Notes
- Using Java 2 JNI on HP-UX
- Garbage collectors: Parallel and Concurrent Mark Sweep
- Allocating physical memory and swap in the Java heap
- Asian TrueType fonts and Asian locales
- Date/Time methods defaults
- Profiling
- Closing a socket (PA-RISC only)
- Compatibility with previous releases
- Java Cryptography Extension (JCE) policy files
- Allocation Site Statistics and Zero Preparation -Xverbosegc
- IPv6 support on Java 5.0
- GC log-rotation support in 5.0
- ThreadDumpPath support in 5.0
- Dynamically loaded libraries in 5.0
- Performance improvement for String.intern()
- Configuring the Java Runtime Plug-In
- CLASSPATH environment variable
- Java Web Start technology usage
- C SDK/RTE 1.4.2.n Usage Notes
- Removing support for unwanted architectures in the JRE
- Support for dynamic thread local storage (TLS)
- Signal Chaining functionality
- Using Java 2 JNI on HP-UX
- HotSpot JVM options
- Garbage collectors: Parallel and Concurrent mark sweep
- Allocating physical memory and swap in the Java heap
- Asian TrueType fonts and Asian locales
- Date/Time methods defaults
- Profiling
- Closing a socket when accept or read is pending (PA-RISC) - new patch information!
- Compatibility with previous releases
- Runtime Plug-In usage and configuration
- GC log-rotation support
- ThreadDumpPath support
- D Additional Resources
- Index
B
backtraces
examining, 71
C
C language, 39
C native application
example: calling Java method, 53
C native method
example: calling from Java, 47
C++ applications
built with -AA and -AP options, 44
libfontmanager, 44
libjvm, 44
C++ native application
example: calling Java method, 55
C++ native method
example: calling from Java, 49
class path, 10
CLASSPATH environment variable, 44, 75, 87, 92
compatibility, 75, 83, 92
configuration support, 31
open files, 32
threads, 31
timeouts, 32
user limits, 33
cryptography
Java Cryptography Extension (JCE ) policy files, 75, 83
D
date/time methods defaults, 74, 82, 91
debugging
backtraces, 71
dereferencing NULL pointers, 45
dlopen(), 86
dynamic thread local storage (TLS), 38, 89
dynamically loaded libraries, 86
E
EXEC_MAGIC, 55, 63, 67
F
FastSwing, 29
G
garbage collection, 9, 15, 17, 18, 20, 21, 25, 36
concurrent mark sweep, 82, 90
eden/survivor ratio, 27
Garbage-First (G1), 80
JDK 6, 74
NUMA, 79
parallel, 28, 82, 90
Parallel Scavenger , 79
write statistics, 72
GC log-rotation support
Java 1.4.2, 93
Java 5.0, 86
Java 6.0, 79
gettimeofday(), 74, 82, 91
GlancePlus, 31
H
heap
expanding
Integrity, 69
native apps, Integrity, 67
native apps, PA-RISC, 67
PA-RISC, 67
large, 66
heap dump, 21, 22
HotSpot JVM, 8
dynamically loading, 59
features, 8
HP debugger (WDB), 9, 71
HPjconfig, 31, 36
HPjmeter, 36, 72
Hpjmeter
-Xverbosegc, 76, 84
allocation site statistics, 76, 84
zero preparation, 76, 84
hybrid applications, 39
I
IPv6 support, 29
Java 5.0, 85
Java 6.0, 76
J
Java executable
how chosen, 68
Java method
calling from native program, 52
Java Out-of-Box (JavaOOB), 31
Java Runtime Plug-In, 75, 87, 92
java.hprof.txt file, 72
java.lang.OutOfMemoryError, 72
JAVA_HOME environment variable, 44
JDI, 8
JDK/JRE 1.4.2
usage notes, 89
JDK/JRE 5.0
usage notes, 82
JDK/JRE 6.0
usage notes, 74
JDWP, 8
jinfo, 81
jmap, 81
JNI, 44, 74, 82, 90
C++ applications built with -AA and -AP, 44
calling a native (non-Java) method, 46
dereferencing NULL pointers, 45
96 Index