Overiew
setenv
file is located in $JLUPIN_HOME/platform/start/configuration
(or directory %JLUPIN_HOME%\platform\start\configuration
) and it contains initial configuration that controls the startup procedure of JLupin Platform.
Parameters
The setenv
includes the following parameters that :
- JAVA_HOME - by default JLupin Platform's start script tries to set the value automatically. Set the JAVA_HOME here when automatic mechanisms fail.
- JAVA_OPTS - memory settings for Main Server' JVM process. The default value is enough for most use cases. Increase it only in case of performance issues and after consulting with support service.
- SERVER_OUT - The path of server output, using during startup process (LINUX)
- WINDOWS_SERVER_OUT - The path of server output, using during startup process (WINDOWS). Its applied only if JLupin operates as a Windows Service
- SERVICE_NAME - the name of JLupin Windows Service
- LOG_LEVEL - determines the logging level of Main Server. NOTICE that 'DEBUG' level has significant impact on JLupin performance so please don't use it on production.
- DEBUG_PORT - debug port, it implies ',address=$DEBUG_PORT' suffix for $DEBUG_OPTS
- DEBUG_OPT - If you set
LOG_LEVEL
toDEBUG
the additional parameters are provided to JVM through - $DEBUG_OPTS combined with $DEBUG_PORT - JMX_ENABLED - the switch that determines if JMX interface is enabled for Main Server
- JMX_PORT - The port on which JMX server on Main Server is running.
- JMX_OPTS - additional JMX options
Default configuration file:
## JLupin tries to determine JAVA_HOME automatically, set it manually if it fails.
#JAVA_HOME=/opt/java
## Java Options for Main Server
JAVA_OPTS="-Dhttps.protocols=TLSv1.0,TLSv1.1,TLSv1.2 -Xms128M -Xmx256M"
## Server out for Main Server (initial logs from startup process)
# For LINUX
SERVER_OUT="logs/server/main/start/server.out"
# For WINDOWS (applicable only if Windows Service is used to manage JLupin)
WINDOWS_SERVER_OUT=logs\server\main\start\server.out
## Windows service configuration
# You can change created service name
#SERVICE_NAME="JLupinPlatformService
## Logging options for Main Server, available values:
# - ERROR
# - WARN
# - INFO (default)
# - DEBUG
LOG_LEVEL=INFO
## Debug mode options
DEBUG_PORT=12998
DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n"
## JMX configuration
JMX_ENABLED=yes
JMX_PORT=9010
JMX_OPTS="-Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"