É possível melhorar o desempenho de entidades de acesso a campo ativando o agente de instrumentação do WebSphere eXtreme Scale ao utilizar o Java Development Kit (JDK) Versão 1.5 ou posterior.
-javaagent:jarpath[=options]
O valor jarpath é um caminho para um arquivo Java archive (JAR) do tempo de execução do eXtreme Scale que contém a classe do agente do eXtreme Scale e as classes de suporte como
os arquivos objectgrid.jar, wsobjectgrid.jar, ogclient.jar, wsogclient.jar
e ogagent.jar. Normalmente, em um programa Java ou em um ambiente Java Platform,
Enterprise Edition independente que não executa o
WebSphere Application Server, use
o arquivo objectgrid.jar ou ogclient.jar.
Em um ambiente do WebSphere Application Server ou de multicarregadores,
é necessário usar o arquivo ogagent.jar na opção do agente
da linha de comandos Java. Forneça o arquivo ogagent.config no caminho de classe ou
use opções do agente para especificar informações adicionais.-javaagent:objectgridRoot/lib/objectgrid.jar=config=myConfigFile;include=includedPackage;exclude=excludedPackage;fieldAccessEntity=package1,package2
-javaagent:objectgridRoot/lib/objectgrid.jar=config=myOverrideConfigFile
################################
# The # indicates comment line
################################
# This is an ObjectGrid agent config file (the designated file name is ogagent.config) that can be found and parsed by the ObjectGrid agent
# if it is in classpath.
# If the file name is "ogagent.config" and in classpath, Java program runs with -javaagent:objectgridRoot/ogagent.jar will have
# ObjectGrid agent enabled.
# If the file name is not "ogagent.config" but in classpath, you can specify the file name in config option of ObjectGrid agent
# -javaagent:objectgridRoot/lib/objectgrid.jar=config=myOverrideConfigFile
# See comments below for more info regarding instrumentation setting override.
# The first part of the configuration is the list of packages and classes that should be included in transformation domain.
# The includes (packages/classes, construct the instrumentation doamin) should be in the beginning of the file.
com.testpackage
com.testClass
# Transformation domain: The above lines are packages/classes that construct the transformation domain.
# The system will process classes with name starting with above packages/classes for transformation.
#
# @Exclude token : Exclude from transformation domain.
# The @Exclude token indicates packages/classes after that line should be excluded from transformation domain.
# It is used when user want to exclude some packages/classes from above specified included packages
#
# @FieldAccessEntity token: Field-access Entity domain.
# The @FieldAccessEntity token indicates packages/classes after that line are field-access Entity packages/classes.
# If there is no lilne after the @FieldAccessEntity token, it is equivalent to "No @FieldAccessEntity specified".
# The runtime will consider the user does not specify any field-access Entity packages/classes.
# The "field-acces Entity domain" is a sub-domain of transformation domain.
#
# Packages/classes listed in the "field-access Entity domain" will always be part of transformation domain,
# even they are not listed in transformation domain.
# The @Exclude, which lists packages/classes excluded from transformation, has no impact on the "field-acces Entity domain".
# Note: When @FieldAccessEntity is specified, all field-access entities must be in this field-acces Entity domain,
# otherwise, FieldAccessEntityNotInstrumentedException may occur.
#
# The default ObjectGrid agent config file name is ogagent.config
# The runtime will look for this file as a resource in classpath and process it.
# Users can override this designated ObjectGrid agent config file name via config option of agent.
#
# e.g.
# javaagent:objectgridRoot/lib/objectgrid.jar=config=myOverrideConfigFile
#
# The instrumentation definition, including transformation domain, @Exclude, and @FieldAccessEntity can be overriden individually
# by corresponding designated agent options.
# Designated agent options include:
# include -> used to override instrumentation domain definition that is the first part of the config file
# exclude -> used to override @Exclude definition
# fieldAccessEntity -> used to override @FieldAccessEntity definition
#
# Each agent option should be separated by ";"
# Within the agent option, the package or class should be seperated by ","
#
# The following is an example that does not override the config file name:
# -javaagent:objectgridRoot/lib/objectgrid.jar=include=includedPackage;exclude=excludedPackage;fieldAccessEntity=package1,package2
#
################################
@Exclude
com.excludedPackage
com.excludedClass
@FieldAccessEntity