Memory Configurationπ
The sedex-Client components have default maximum memory settings that are suitable for most installations:
- sedex Controller: 256 MB
- sedex Adapter: 256 MB
- sedex WS-Proxy: 256 MB
In standard environments, these defaults provide stable operation and typically do not need to be modified.
However, if your environment has specific performance or processing requirements, the memory allocation can be adjusted as described below.
The location where the memory configuration must be changed depends on how the sedex-Client is started.
sedex-Client Started in Standalone Modeπ
To modify the memory configuration for a standalone sedex-Client:
-
Windows start script:
<sedex_home>/bin/sedex-client-start.bat -
Unix start script:
<sedex_home>/bin/sedex-client-start.sh
In the corresponding script, adjust the following line (for Controller, Adapter, and WS-Proxy):
set MEMORY=-Xmx256m -Dadapter.Xmx256m -Dwsproxy.Xmx256m
Replace the value 256m with the desired memory size (for example 512m or 1024m).
sedex-Client Started as a Service or Daemonπ
If the sedex-Client is installed as a system service or daemon, memory settings are defined in the service wrapper configuration file:
-
Configuration file:
<sedex_home>/service-wrapper/conf/service-wrapper.properties
Update the following properties as needed:
# sedex Controller
wrapper.java.additional.8=-Xmx256m
# sedex Adapter
wrapper.java.additional.9=-Dadapter.Xmx256m
# sedex Web Service Proxy
wrapper.java.additional.10=-Dwsproxy.Xmx256m
Adjust the memory size values (256m) as appropriate for your environment.
Note
- Ensure that the system has enough physical memory to support the configured values.
- Avoid allocating excessively large heaps, as this can increase garbage collection time and reduce performance.
- After modifying the configuration, restart the sedex-Client to apply the changes.
sedex-Client Started as a Docker Imageπ
If the sedex-Client is started as a Docker image, memory settings can be overridden using optional environment variables:
$ docker run \
--name sedex-client \
[..]
-e memory.controller=256m \
-e memory.adapter=256m \
-e memory.wsproxy=256m \
[..]
sedexch/sedex-client:container-1.2