Servlet And Oraclejsp Pages Memory Requirements - Oracle Oracle9i Application Manual

Release 1.0.2 for aix-based systems, compaq tru64 unix, hp 9000 series hp-ux, linux intel, and sun solaris intel
Hide thumbs Also See for Oracle9i:
Table of Contents

Advertisement

To maximize performance, set the maximum heap size to accommodate application
requirements. To determine how much Java heap you need, include calls in your
program to the Runtime.getRuntime().totalMemory() and
Runtime.getRuntime().freeMemory methods in the java.lang package.
Subtract free memory from total memory; the difference is the amount of heap that
the application consumed.
Suppose you determine that you need 128MB of heap. To change the heap size, you
would set the maximum Java heap size in the jserv.properties file for automatic
mode:
wrapper.bin.parameters=-mx128m
In manual mode, if more than one JServ process is running, the heap size must be
set on the command line for each JServ process.
When a JServ process exceeds its maximum heap size, the process terminates. In
automatic mode, a new process is started, but performance is degraded
significantly. In manual mode, a terminated process will not be restarted, so ensure
that the heap size is sufficient.

Servlet and OracleJSP pages Memory Requirements

OracleJSP pages (Oracle's implementation of Sun's JavaServer Pages) and servlets
require different amounts of memory, depending on the version of the JDK used.
The chart below compares memory requirements for a simple servlet and an Oracle
JSP page under load with 10-30 active threads. The servlet did not use sessions. The
OracleJSP page had sessions on (the default).
Table 3–3 Servlet and OracleJSP pages memory
Component
Servlet
OracleJSP page
The process size reported by utilities such as top or ps will
Note:
be larger than the maximum heap size, because private memory is
added to the maximum heap size.
JDK 1.1.8
10MB
10MB
Determining Memory Requirements
JDK 1.2
24MB
32MB
Sizing and Configuration 3-5

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Oracle9i and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Oracle9i application server

Table of Contents