Configuración de Java JVM

I am looking for a list of JVM wide system parameters. These could be set by calling System.setProperty or by calling a static method defined in the Platform. The purpose is to have a list of method calls that should be avoided from applications running in a container. Because those methods change a system wide parameter, they could have unpredictable effects on other applications. This could be enforced by setting appropriate permissions at runtime or having findbug rules at build time.

As a start, I have:


preguntado el 31 de enero de 12 a las 08:01

Consulte nuestra página esta publicación. -

1 Respuestas

The timezone, locale and system properties you mention are static variables and not scoped by the JVM, but rather by the Clase object representing the containing class.

Clase objects are scoped by the ClassLoader which loaded it.

This is for example how a servlet container like Tomcat can have multiple web-services running in the same JVM but with different default timezone and locale.

Take a look at Tomcat's class loader how-to:

Respondido el 06 de Septiembre de 12 a las 12:09

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.