Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manuel d'utilisateur Page 35

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 124
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 34
Configuring JVM
Chapter 3 Using Servlets 35
Configuring JVM
If necessary, you can configure parameters for JVM either by using the
Java>Configure JVM Attributes page in the Server Manager interface, or by editing
jvm12.conf. For more information about JVM settings, see Appendix C, “JVM
Configuration.”
The default settings in iPlanet Web Server for JVM are suitable for running servlets.
However, there may be times when you want to change the settings. For example,
if a servlet or bean file uses a JAR file, you can add the JAR location to the JVM
classpath.
Maximizing Servlet Performance
Consider the following guidelines for improving servlet performance:
•The
jvm12.conf file has a configuration parameter, jvm.stickyAttach.
Setting the value of this parameter to 1 causes threads to remember that they
are attached to the JVM, thus speeding up request processing by eliminating
AttachCurrentThread and DetachCurrentThread calls. It can, however, have
a side-effect: recycled threads which may be doing other processing can be
suspended by the garbage collector arbitrarily.
Thread pools can be used to eliminate this side effect for other subsystems. For
more information about thread pools, see the iPlanet Web Server Administrator’s
Guide.
Increase the front-end thread stack size in
magnus.conf (via the StackSize
directive), or the respective pool stack size parameter if you’re using thread
pools. For more information, see the NSAPI Programmer’s Guide for iPlanet Web
Server.
Increase the heap size to help garbage collection:
jvm.minHeapSize or
maxHeapSize or the Configure JVM Attributes page.
Ensure that your
jvm.classpath is short (if you don't need some of the
examples). You can set
jvm.include.CLASSPATH=0 so it won’t inherit the
CLASSPATH environment variable.
Sometimes, iPlanet Web Server 6.0 may run out of stack space if applications
use deep recursion when a JIT compiler is enabled, especially on UNIX
platforms where the default stack size is small, or in any cases where very
complex JSP pages are used.
Vue de la page 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 123 124

Commentaires sur ces manuels

Pas de commentaire