Update to Latest Version

You can see which versions are available by checking out this page:

https://cdn.jtel.de/downloads/jboss/

To update the wildfly server to the latest supported package (currently wildfly-18.0.1.Final.05) follow this procedure - set the variable at the start to the version you require.

Wildfly must be running before the command can be executed

Note - this procedure will delete any old logs you might have. Save these beforehand if required.

RUN AS ROOT

# run set-core-threads script
TASK_CORE_THREADS=25
TASK_MAX_THREADS=100
echo sudo -S -u jtel /home/jtel/wildfly-current/bin/jboss-cli.sh --connect --commands="/subsystem=io/worker=default/:write-attribute(name=task-core-threads,value=${TASK_CORE_THREADS})"
sudo -S -u jtel /home/jtel/wildfly-current/bin/jboss-cli.sh --connect --commands="/subsystem=io/worker=default/:write-attribute(name=task-core-threads,value=${TASK_CORE_THREADS})"
echo sudo -S -u jtel /home/jtel/wildfly-current/bin/jboss-cli.sh --connect --commands="/subsystem=io/worker=default/:write-attribute(name=task-max-threads,value=${TASK_MAX_THREADS})"
sudo -S -u jtel /home/jtel/wildfly-current/bin/jboss-cli.sh --connect --commands="/subsystem=io/worker=default/:write-attribute(name=task-max-threads,value=${TASK_MAX_THREADS})"
sudo -S -u jtel /home/jtel/wildfly-current/bin/jboss-cli.sh --connect --commands="/subsystem=io/worker=default/:read-resource(include-runtime=true)"

# The version to get
JT_WILDFLY_VERSION=wildfly-18.0.1.Final.05

# Stop wildfly
systemctl stop wildfly

# Move old directory
cd /home/jtel
mv wildfly-18.0.1.Final wildfly-18.0.1.Final.OLD

# retrieve and unpack required version
wget http://cdn.jtel.de/downloads/jboss/${JT_WILDFLY_VERSION}.tar.gz
tar xzf ${JT_WILDFLY_VERSION}.tar.gz
rm -f ${JT_WILDFLY_VERSION}.tar.gz

# create deployment directory and copy configs from old server
mkdir -p wildfly-18.0.1.Final/standalone/deployments
rm -f /home/jtel/wildfly-current/standalone/configuration/standalone.xml
cp wildfly-18.0.1.Final.OLD/standalone/configuration/standalone.xml  wildfly-18.0.1.Final/standalone/configuration/standalone.xml 
rm -f /home/jtel/wildfly-current/standalone/configuration/hazelcast.xml
cp wildfly-18.0.1.Final.OLD/standalone/configuration/hazelcast.xml  wildfly-18.0.1.Final/standalone/configuration/hazelcast.xml 
chown -R jtel:jtel wildfly-18.0.1.Final

# Update and start
/usr/local/bin/updatejb.sh

# Remove old package
rm -Rf wildfly-18.0.1.Final.OLD
  • No labels