Child pages
  • Post-Installation Modifications

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Also, instructions are provided below for increasing the amount of memory allocated to Servoy, which can enhance overall performance.

Modifying Database Connection Settings

Users can access the servoy.properties file found in the ../application_server/ folder (found in the root installation folder) to modify database connection settings.

...

Servoy also provides additional database connection configuration via the Resources Project while working on a solution. For details see Working With Database Servers.

Creating the Servoy Repository

The Servoy Repository, a set of tables in the database underlying the nameserver connection 'repository_server' is required to run Servoy. The repository is installed if you choose the bundled PostgreSQL option, but it will need to be manually installed if you choose the full-featured PostgreSQL installation or if you choose to connect to an existing database.

...

Executing the above command starts the Servoy Application Server and will create or upgrade the table structure required for the Servoy Repository to the version that the Servoy Application Server requires.

Creating the Servoy Repository

The Servoy Repository, a set of tables in the database underlying the nameserver connection repository_server, is required to run Servoy. The repository is installed if you choose the bundled PostgreSQL option, but it will need to be manually installed if you choose the full-featured PostgreSQL installation or if you choose to connect to an existing database.

...

Executing the above command starts the Servoy Application Server and will create or upgrade the table structure required for the Servoy Repository to the version that the Servoy Application Server requires.

Increasing Memory Allocations to Servoy

The startup configuration file can be modified to increase the memory allocated to Servoy, which can improve overall performance. 

  1. Open the ../developer/Servoy.ini file in a text editor. (For Mac users, this file is exposed when you view the Servoy application package contents and browse to the MacOS folder.)
  2. Change the -Xmx argument, for example, from "-Xmx512m" to "Xmx1024m."
  3. Restart Servoy to effect the changes.

Running Servoy Developer on Java 7 on MAC OSX

If running Servoy Developer on OSX and there is a need to run Java 7 (for example for JavaFX integration ), some extra steps are required, as due to a bug in Eclipse (on which Servoy Developer is based), the process of running Servoy Developer on Java 7 is not as straight forward.

1) Navigate to /path/to/servoy/developer/servoy.app/Contents/ and edit the Info.plist file:
* go to the part where it says something like 'to use a specific Java version (instead of the platform's default) uncomment one of the following options:'
* here add a line as (with the path to your Java 1.7 install): '<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java</string>'
2) Navigate to /path/to/servoy/developer/servoy.app/Contents/MacOS/ and edit the servoy.ini file:
* above the '-vmargs' line, add two lines, as follows, but corresponding to your Java 1.7 install: -vm /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java
3) In this same directory (.../developer/servoy.app/Contents/MacOS/) create a script called servoy.sh, which contains the following text:
#!/bin/sh
#
export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
LAUNCHER_JAR=../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
LAUNCHER_LIB=../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.101.v20120109-1504
java \
-showversion \
-XX:MaxPermSize=256m \
-Xms40m \
-Xmx512m \
-Xdock:icon=../Resources/servoy.icns \
-XX:+UseParallelGC \
-XstartOnFirstThread \
-Dorg.eclipse.swt.internal.carbon.smallFonts \
-Dnativeswing.interface.inprocess.useExternalSWTDisplay=true \
-Dnativeswing.dependencies.checkVersions=false \
-Dsun.awt.disableMixing=true \
-Dosgi.requiredJavaVersion=1.6 \
-jar $LAUNCHER_JAR \
--launcher.library $LAUNCHER_LIB
* make sure the JAVA_HOME points to your Java 1.7 install
* also make sure you can execute the script (maybe execute a 'chmod a+x servoy.sh', without the quotes)
4) Launch Servoy using this script, in order to have Developer use Java 1.7.
* here, just doublecheck that Developer runs with 1.7 (check Servoy Developer->About Servoy Developer->Installation Details->Configuration java.runtime.version for instance)
NOTE: the four steps above correspond to advice from https://www.servoy.com/forum/viewtopic.php?f=5&t=19253#p103941Image Added