2.2. Configuration

The configuration for EspressChart is already set and it can be run without changing anything. However, if you want to:

You will need to modify the configuration settings. These settings are stored in a text file called config.txt. It is in the following location: <EspressChartInstallDir>/userdb/config.txt. A sample configuration file is shown below:

[port]
22071

[webroot]
c:\InetPub\wwwroot

[users]
{user-name encoded-password}
larry vJ-58-25D7f24h
guest

[smtp host]
box5109.bluehost.com

[smtp secured]
true

[smtp ssl]
true

[smtp port]
465

[smtp username]
lshen+quadbase.com

[smtp password]
password
		

Under the [port] section, you can set the port number for EspressManager to use. This number is set to 22071 by default. You can also give an explicit IP address here for EspressManager to use instead of making it query the machine for the IP address. An explicit IP address can be given by adding the address after the port number. For example, changing:

[port]
22071
		

to

[port]
22071, 204.147.182.31
		

will result in EspressManager always using that IP address when it starts. You can specify multiple domains for EspressManager to establish a connection in the [port] section of the config.txt file. Domains are added after the IP address in the [port] section.

[port]
port number, ip address, domain1, domain2, ..., domain_n
		

The search sequence is IP address, domain_n, then domain1.

The [webroot] section contains a path to the webroot of the web server. EspressManager use this when a chart is exported from Chart Viewer (for printing using Ctrl+J or Ctrl+P). For more information about this option, see Chapter 9 - Chart Viewer.

Under the [user] section, each line consists of username and password. Default username is guest with no password. You can remove this line and add as many additional users as you like. Each username and password are separated by one or more spaces (usernames and passwords cannot contain spaces). Also, usernames and passwords are case sensitive.

2.2.1. Increasing maximum memory heap size for applets

All applets have a maximum memory heap size of 16 megabytes by default. In Windows, this can be increased by going to Control Panel and selecting Java (or Java Plugin). Click on the Java tab and then View button. Enter -Xmx256M (without the quotes) under Runtime Parameters and click the OK button.