Buscar este blog

lunes, 28 de diciembre de 2015

JBoss - Useful system properties

This post is a recollection of some magic system properties to tweak JBoss. Some of them were found by our development team while others where found by our customer.
These were tested with JBoss EAP 6.2 and JBoss EAP 6.4.

Some of these properties can be found in the following page: https://docs.jboss.org/jbossweb/7.0.x/sysprops.html. Others are more hidden.

In domain mode, you can add a system property to a server with the following command:
[domain@localhost:9999 /] /host=hostController01/server-config=serv-one/system-property=popertyName:add(value=propertyValue)

Clear JSP cache on context destroy

Used in order to force JBoss to clean all .jsp an .class files during an application redeploy.

Key: DELETE_WORK_DIR_ONCONTEXTDESTROY
Value: true


Set server bind addres

Used in order to set a specific IP to a server when the host machine has multiple network interfaces.

Key 1: jboss.bind.address
Value: any valid address

Key 2: jboss.bind.address.unsecure
Value: any valid address

With these properties, in domain mode, you can multiple servers with different IPs address in the same machine.


Configure default request encoding

Used in order to send data encoded in a particular charset to the server.

Key 1: org.apache.catalina.connector.URI_ENCODING 
value: UTF-8

Key 2: org.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRING 
value: true


Configure maximun POST parammeter

Used in order to allow the browser to send a POST with a huge number of parameters, i.e, to submit a form with a lot of fields.

Key: org.apache.tomcat.util.http.Parameters.MAX_COUNT
value: a big number

No hay comentarios:

Publicar un comentario