HomeGuides
Log In
Guides

Configure UgCS server components on Windows

1. Configure auto-start for Service-manager.

Add it to Windows start-up. On Windows open Task Manager, and then select the Startup tab.

Another way - add Service-manager shortcut to the folder:
C:\Users[User]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup folder.

2. Disable start / stop service manager.

If the Client is installed with the server on the same PC - make sure it doesn't start together.

To disable start/stop service manager from client edit file behaviour.xml at C:\Users[User]\AppData\Local\UGCS\configuration\client

Set value to “false” at line:

<parameter name.="use start-stop" type.="boolean" value.="false"/>"

3. Memory allocation management.

Open file: C:\Program Files (x86)\UgCS\service-manager\ugcs\service-manager.ini

Change the argument “Xmx1g” to required memory allocation size according to the server (ucs) resources. For java x64 max allocated memory 4g at line like this:


"server/arguments = "-Xms64m -Xmx1g -cp .;*;..\\lib\\* com.ugcs.ucs.Bootstrap""

Change the argument “Xmx1g” to the required memory allocation size according to the Geoserver resources. For java x64 max allocated memory 4g at the line like this:

"geoserver/arguments = "-Xms64m -Xmx1g -Djava.library.path=./native -cp .;.\\lib\\* com.ugcs.geoserver.GeoServer

4. Disable Emulator.

Open file: "C:\Program Files (x86)\UgCS\service-manager\ugcs\service-manager.ini"

Find the line:
emulator/binary = "C:\Program Files (x86)\UgCS\java\bin\java.exe"

And replace to:
emulator/binary =