Modifying WildFly settings
This section explains how to modify the bin\Standalone.conf.bat,
bin/standalone.conf.ps1 and
standalone\configuration\standalone.xml files.
-
bin\Standalone.conf.bat or bin/standalone.conf.ps1- : By default WildFly is configured to only allow 512 mb of memory for
Java. Search “Xmx” in these files and set it to at least 2048M. If the
Expere cache manager is showing On-Disk Hits, that is an indicator
you need to increase the Xmx setting to achieve better
performance.Note: It is also recommended to set
JAVA_HOMEto the location were Java is installed.
- : By default WildFly is configured to only allow 512 mb of memory for
Java. Search “Xmx” in these files and set it to at least 2048M. If the
Expere cache manager is showing On-Disk Hits, that is an indicator
you need to increase the Xmx setting to achieve better
performance.
-
standalone\configuration\standalone.xml- Consider changing the <root-logger> log level from
INFOtoERRORto reduce the amount of logs generated from WildFly. - Consider changing the port used by WildFly. By default WildFly uses port
8080. If your server already has a different application using that port
then you configure that by searching for “offset” in
standalone.xml. Change the "0" at the end ofjboss.socket.binding.port-offset:0to determine the port. For example if you set that to 1 then WildFly will run on port 8081. - To set up Expere to use a Microsoft SQL database for your content,
perform the following:
- Add the following to
standalone.xmlafter the “ExampleDS” entry:<datasource jta="true" jndi-name="java:/jdbc/ExpereDoc" pool-name="ExpereDoc" enabled="true" use-java-context="true" use-ccm="true"> <connection-url>jdbc:jtds:sqlserver://localhost:1433;DatabaseName=ExpereApp</connection-url> <driver>jTDS</driver> <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation> <pool> <min-pool-size>10</min-pool-size> <max-pool-size>100</max-pool-size> <prefill>true</prefill> <use-strict-min>false</use-strict-min> <flush-strategy>FailingConnectionOnly</flush-strategy> </pool> <!-- <security> <user-name>[USERNAME]</user-name> <password>[PASSWORD]</password> </security> --> <statement> <prepared-statement-cache-size>100</prepared-statement-cache-size> <share-prepared-statements>true</share-prepared-statements> </statement> </datasource> - Add the following to the
<drivers>section after theh2driver:<driver name="jTDS" module="net.sourceforge.jtds"> <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class> <xa-datasource-class>net.sourceforge.jtds.jdbcx.JtdsDataSource</xa-datasource-class> </driver> - Change the
<default-bindings>entry to the following:<default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:/jdbc/ExpereDoc" managed-executor- service="java:jboss/ee/concurrency/executor/default" managed-scheduled-executor- service="java:jboss/ee/concurrency/scheduler/default" managed-thread- factory="java:jboss/ee/concurrency/factory/default"/> - In the
wildfly-10.0.0.Final\modulesfolder, perform the following:- Download the jTDS driver here. Note: Expere supports version 1.2.5.
- Create a folder called
net; create a subfolder calledsourceforge. - Within
sourceforgecreate a folder calledjtds; create a subfolder calledmain. - Inside
main, copy thejtds-1.2.5.jarfrom the downloaded dist ZIP file - Create a file called
module.xmlthat contains the following:<?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.0" name="net.sourceforge.jtds"> <resources> <resource-root path="jtds-1.2.5.jar"/> <!-- Insert resources here --> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module> - From the dist ZIP file, copy
ntlmauth.dllfrom thex64folder to yourJava JRE binfolder; for example:C:\Program Files\Java\jdk1.8.0_162\jre\bin.
- Download the jTDS driver here.
- Add the following to
- Consider changing the <root-logger> log level from