Cosmo Startup Configuration
Certain features of Cosmo are enabled, disabled or configured via system properties passed as command line options to the JVM.
System Properties
These system properties control the features of various components used by Cosmo:
-
file.encoding=UTF-8
- Sets the default character encoding for the JVM so that all text data read by or written from the JVM is encoded in UTF-8 unless explicitly told otherwise by Cosmo
If you are using Derby as your database, you probably want to set some system properties for it as well. See
ServerBundleStartupConfiguration for more details (
TODO: move db configuration to a Cosmo manual page).
Command Line Options
The above system properties are set by passing them as command line options to the JVM. Example:
java -Dfile.encoding=UTF-8 ...
Additional command line options (such as
-server
) may be used to improve performance, control the amount of resources consumed by the JVM, etc. See http://java.sun.com/j2se/1.5.0/docs/guide/vm/index.html for the Sun JVM documentation.