
Chapter 7. Monitoring and tuning of DB2 UDB V8 269
JVMs have a large memory footprint. Many invocations of NOT FENCED
routines on a UNIX-based DB2 server will use a significant portion of system
memory.
This is not the case for Java routines running on Windows NT and Windows
2000, where each DB2 agent is represented by a thread in a process shared with
other DB2 agent threads. This model is scalable, as a single JVM is shared
among all the DB2 agent threads in the process.
If you intend to run a Java routine with large memory requirements, it is
recommended that you register it as FENCED NOT THREADSAFE. For
FENCED THREADSAFE Java routine invocations, ...