Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
visionx:faq_tech [2021/06/30 11:04]
admin
visionx:faq_tech [2021/09/03 07:13]
admin
Line 44: Line 44:
 [[visionx:​data_modeling_and_representation#​views_and_storages|Views and Storages]] \\  [[visionx:​data_modeling_and_representation#​views_and_storages|Views and Storages]] \\ 
 [[visionx:​data_modeling_and_representation#​create_dropdown_without_foreign-key_relation|Create Dropdown Without Foreign-Key Relation]] [[visionx:​data_modeling_and_representation#​create_dropdown_without_foreign-key_relation|Create Dropdown Without Foreign-Key Relation]]
 +
 +==== Out of memory in VisionX ====
 +
 +If you get an **Out of memory** or a **Java heap space** error, simply increase the memory of VisionX in visionx.bat or visionx.sh:
 +
 +<​code>​
 +@ECHO OFF
 +.\runtime\bin\java -Xmx512M ... -jar lib\visionxloader.jar
 +</​code>​
 +
 +Change **512M** to e.g. **1G** or **1500M**. Don't forget to restart VisionX.
 +
 +==== Additional JVM start parameters ====
 +
 +On Windows, VisionX is usually started with visionx.exe. To define additional JVM parameters, however, visionx.bat or visionx.sh must be used, as any JVM parameters can be set with it, e.g .:
 +
 +<​code>​
 +@ECHO OFF
 +.\runtime\bin\java -Xmx512M -Dfile.encoding=UTF-8 ... -jar lib\visionxloader.jar
 +</​code>​
 +In this example, the system parameter **file.encoding** was set to **UTF-8**.
 +
 +However, it is entirely possible to set any JVM parameters when using visionx.exe. Since VisionX uses the open source project launch4j, all features of the library can be used, such as the possibility of entering the JVM parameters in an ini file:
 +
 +All you have to do is create a file called **visionx.l4j.ini** in the same directory as visionx.exe. The file can then be filled with the desired parameters:
 +
 +<code ini>
 +-Dfile.encoding=UTF-8
 +</​code>​
 +
 +==== How to start VisionX with de_CH language settings ====
 +
 +Simply change the start script (visionx.bat,​ visionx.sh) and add your language settings:
 +
 +<​code>​
 +-Duser.country=CH -Duser.language=de_CH -Dtomcat.arguments=-Duser.country=CH;​-Duser.language=de_CH
 +</​code>​
 +
 +Full script:
 +<file dos visionx_de_CH.bat>​
 +@ECHO OFF
 +.\runtime\bin\java -Duser.country=CH -Duser.language=de_CH -Dtomcat.arguments=-Duser.country=CH;​-Duser.language=de_CH -Xmx512M --add-opens=java.base/​jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/​java.lang=ALL-UNNAMED --add-opens=java.base/​java.util=ALL-UNNAMED --add-opens=java.rmi/​sun.rmi.transport=ALL-UNNAMED -jar lib\visionxloader.jar
 +</​file>​
 +
 +If you use Windows and start VisionX with visionx.exe,​ it's also possible to create a file with the name visionx.l4j.ini:​
 +<file ini visionx.l4j.ini>​
 +-Duser.country=CH
 +-Duser.language=de_CH
 +-Dtomcat.arguments=-Duser.country=CH;​-Duser.language=de_CH
 +</​file>​
 +
 +==== WAR creation shows compiler errors! ====
 +
 +Usually such problems occur if you do manual coding with an IDE. To find out what's the compiler error, simply enable logging and add the line 
 +
 +  com.sibvisions.visionx.server.ant.AntRunner.level = ALL
 +  ​
 +to the file **''<​visionx>/​lib/​logging.properties''​**. Read more information about [[visionx:​visionx_logging|VisionX logging]].
 +
 +Another option is to start the war creation manually with included ANT build file: **build.xml**.
 +The ''​start.complete''​ task will create the war file
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information