Installation - Java Linux Agent on a Payara Application Server
Payara Compatibility
vFunction supports Payara version 5.2020 and later.
Installation Workflow
Installation Wizard
To help with the installation process, vFunction offers an Installation Wizard. This Wizard provides additional information about the Prerequisites as well as steps for deploying the vFunction Agent to your environment.
Please contact support@vfunction.com or your vFunction Contact(s) for the password to start using this Wizard.
Installation Workflow
- Ensure Prerequisites are met
- Download the vFunction Sudoless Controller Installation TGZ
- SSH to the Linux VM as the user who runs the Application / Application Server
- Move the Installation TGZ to the location on the Linux VM where vFunction should run
- Extract the vFunction Installation Package
### Replace VERSION with the actual value
tar -xvzf vfunction-controller-sudo-less-installation.vVERSION.tgz
- Add Environment Variables for the vFunction Dynamic Agent
# See description in https://kb.vfunction.com/installations/configurable-settings/mono-dynamic-agent/java/linux
export VF_CONTROLLER_DEFAULT_JAVA_CONTROLLER_NAME="CHANGE_ME"
export VF_CONTROLLER_DEFAULT_JAVA_CONTROLLER_HOST="CHANGE_ME"
export VF_CONTROLLER_DEFAULT_JAVA_CONTROLLER_ORG_ID="CHANGE_ME"
export VF_CONTROLLER_DEFAULT_JAVA_CONTROLLER_APP_ID="CHANGE_ME"
export VF_CONTROLLER_DEFAULT_JAVA_CONTROLLER_CLIENT_ID="CHANGE_ME"
export VF_CONTROLLER_DEFAULT_JAVA_CONTROLLER_CLIENT_SECRET="CHANGE_ME"
export VF_CONTROLLER_DEFAULT_JAVA_CONTROLLER_INSTANCE_ID="CHANGE_ME"
export VF_CONTROLLER_DEFAULT_JAVA_AGENT_APPLICATION_SERVER="CHANGE_ME"
export VF_CONTROLLER_DEFAULT_JAVA_AGENT_APPLICATION_JAVA_VERSION="CHANGE_ME"
- Run the installation script
### Replace the BASE_DIR with the actual value, such as /tmp/
bash BASE_DIR/vfunction/opt/vfunction/controller-installation/install.sh -i default-java
- Find and note the base path to asadmin on your Payara Application Server
find / -name 'asadmin' -type f 2&>/dev/null
- Add the vFunction Startup Parameters to the Payara application via asadmin
### Replace the PAYARA_DIR with the actual value
### Replace the BASE_DIR with the value of the vFunction installation directory, such as /tmp
PAYARA_DIR/bin/asadmin create-jvm-options "-agentpath\:BASE_DIR/vfunction/opt/vfunction/agent/libJVMTIAgent.so=conf=BASE_DIR/vfunction/etc/sysconfig/vfunction/agent/instances/default-java/native-conf.json:-javaagent\:BASE_DIR/vfunction/opt/vfunction/agent/runtime-agent.jar=ConfigLocation=BASE_DIR/vfunction/etc/sysconfig/vfunction/agent/instances/default-java/vfunction-runtime-override.properties:-Dcom.vfunction.runtime.offload.tmpFolder=BASE_DIR/vfunction/opt/vfunction/agent/instances/default-java/temp/:-Dcom.vfunction.logging.logFile=BASE_DIR/vfunction/var/log/vfunction/instances/default-java/vfagent.log"
- Restart the Payara instance
- Confirm that the Application comes up and functions as expected
- If any issues arise: