How to reject Java Classes from being sent to the vFunction Server for Analysis


Overview of the Issue

If an organization finds that specific classes are not useful for the vFunction Analysis or if sending the Sampling Threads associated with this class are creating a significant amount of networking throttle, then these classes can be removed from the Analysis workflow. In this scenario, the Callstacks associated with this Class will not be uploaded from the vFunction Agent to the vFunction Server.


Steps to Resolve the Issue

Take the following steps to resolve this issue:

  1. SSH to the Application Server running the vFunction Agent
  2. Open the vFunction instance’s installation.yaml, such as
vi /etc/sysconfig/vfunction/installation/instances/default-java/installation.yaml
  1. To the agent.override_properties, add an override property to reject the problematic Class, such as
controller:
  name: NAME
  host: SERVER_ADDRESS
  ...

server_application:
#  name:
   ...

agent:
  override_properties:
    - com.vfunction.runtime.beanfilter.classRejectNames=org.apache.organization.infrastructure.core.config.organizationProperties
  1. Save the file changes
  2. Run the vFunction Upgrade script, such as
sudo bash /opt/vfunction/controller-installation/upgrade.sh -i default-java
  1. Restart the Application