Setting stack and heap sizes

There are several memory allocation issues to consider when you run Java™ client applications.

The Java Virtual Machine (JVM) allocates a fixed size of stack space for each running thread in an application. You can usually control the amount of space that Java allocates by setting limits on the following sizes:
  • The native stack size, allocated when running native JIT (Just-In-Time) compiled code.
  • The Java stack size, allocated when running Java Bytecode.
  • The initial Java heap size.
  • The maximum Java heap size.
How you set these limits depends on your JVM. See your Java documentation for more information.

For information about setting the Java heap size for the Gateway daemon, see Setting Gateway daemon JVM options.