Install AVIX Server as Windows service
Preparations
Installation media
Download the installation media, the server zip archive. If you don´t have a download URL, ask your contact at Solme AB to get one. The downloadable unit is entitled "se.solme.avix.server.product-win32.win32.x86_64.zip" or similarly.
Unzip zip Archive
Unzip the server zip file at the host where you intend to install it.
Avoid white spaces in the path!
The unzipped content will look like this:
Carry-over
This is only relevant, if you have an existing server installation, i.e. if you are upgrading to a newer server version. The server has some settings and configuration files, which you will need to carry-over (copy) to the new installation.
- The database folder (in case internal h2 db has been used)
- configuration/se.solme.avix.prefs
- load_storages.xml
- repositories.xml
- host.id
- Also, check that the jvm parameters are to your liking
- They are reset when re-installing (as per contents in "register_service.bat" script)
- Set options for the service can be reviewed by running commons-daemon/SolmeAviXServer.exe service manager application.
- Should you change say the XMX, a restart of the service is needed.
Before the next step, installing the service, it is recommended to stop the "Solme AviX Server Service" in the Windows Services manager.
Install as Windows Service
- Open a command prompt with administrative privileges
- In the opened Command prompt, navigate to the unzipped AVIX server directory
- Tip: use the change directory command. Example: "cd .." to move one step up. "cd temp" to open a directory called temp.
- Tip: The command "dir" will display contents of current directory.
- Assert you are in the root directory of the AVIX server. Using the example screenshot from the "Unzip" section above, the "C:\AVIX\Servers\se.solme.avix.server.product-win32.win32.x86_64" directory.
- Install the service, by running a batch script file:
Verify service installation
Open Windows Services manager. Locate the "Solme AviX Server Service":
Verify that the service is running the AVIX server you just installed: Right-click and select "Properties":
Verify server installation
Check that ports are open (by default TCP 2036 and 45500)
In case you are working on the host where the server is installed, try: http://localhost:45500/services
If working as intended, you should see something like this:
Additional configurations and troubleshooting
If you need to do further configurations or are experiencing problems, please refer to the information below.
Ports and firewalls
Verify ports are open (by default TCP 2036 and 45500).
Check that firewall is open on server host for the ports:
If you need to change the ports of the AVIX server, do the following:
- Stop the Windows service
- Open the "configuration/se.solme.avix.prefs" file of the AVIX server
- Under the preference section for [se.solme.avix.server.cdo], you can specify the following port (to another value than default being 2036):
- cdo.server.tcp.ports=2050
- Under the preference section for [se.solme.avix.server], you can specify the following port (to another value than default being 45500):
- http.server.tcp.port=45510
- Start the Windows service
Assign more memory
Currently, when the server application is installed as a service, the memory allocated to the application by default is stated in the install script (commons-daemon\register_service.bat). The following lines are the instructions to the JVM, the "Java Virtual Machine", found in the install script:
LogPath=%CURRENT_DIR%\logs\^
++JvmOptions=-Xms256m^
++JvmOptions=-Xmx16384m^
++JvmOptions=-XX:SoftRefLRUPolicyMSPerMB=8000^
++JvmOptions=-Dosgi.configuration.area=%CURRENT_DIR%\configuration\^
++JvmOptions=-Dosgi.install.area=%CURRENT_DIR%\
commons-daemon\prunsrv.exe //ES/SolmeAviXServer
If you need to change the memory assignment, the ”xmx” value can be changed. Either by re-installation of the service (make sure to edit the "register_service.bat" file, and set the desired value), or by changing a registry value for the service.
The latter is probably what you want, and it can be done by two methods. Regardless which method you choose, you should first stop the service, and when done, restart the service again.
Method 1 - Using the Registry Editor directly
The node is found under: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\SolmeAviXServer\Parameters\Java
Method 2 - Using the "service manager" executable
An easier way to achieve the same registry change is to run the ”service manager” executable. It is found here: commons-daemon\SolmeAviXServer.exe. Run it, and look on the Java tab:
Assign the amount of xmx memory that you see fit. Example values (depending on how much physical memory the machine has): 16384m, 8192m, 4096m, 2048m.
Remember to restart the server service, when you have changed the xmx registry setting of the service.
Other settings
se.solme.avix.prefs
Remove the # to activate a setting.
Templates.emf is used to point out .avx4t files. However, we recommend not to use this setting since it will be changed in the future. To achieve the same result (to load custom .avx4t files) place the .avx4t-files in the folder configuration end remove the default .avx4t file if redundant.
#[se.solme.avix.configuration]#templates.emf =
Below controls which port to communicate on. Default port is 45500.
[se.solme.avix.server]
http.server.tcp.port = 45500
Below controls where Shopfloor Viewer should look for the file load_storages.xml. Load_storage.xml controls which folders and/or AviX-files that should be loaded on startup of the server.
As an alternative. users logged in as admin may upload any AviX-file manually.
#[se.solme.avix.io.storageloader]#LOAD_STORAGE_ON_STARTUP = C:\\Solme AB\\shopfloorviewer_export_2018061201\\configuration\\load_storages.xml
Below controls which languages should be available in the application
#[se.solme.avix.i18n]#PREF_SELECTED_INSTRUCTION_LOCALES = en;sv;nl;fr;pt_BR
Load_storages.xml (example)
<?xml version="1.0" ?><load_storage_config> <load_storage workspace="Workspace1" storage="C:\Solme AB\my_test\test of config2222.avx4"/> <load_storages workspacePrefix="ws2_" storageDirectory="C:\Solme AB\my_test_directory\" uploadtarget="true"/></load_storage_config>
The file load_storage.xml shall be encoded in UTF-8. Be aware if you use Notepad, it may result in a different encoding and the file won´t work. Notepad++ or similar text editors work well.









