Jump to: navigation, search

Starting and Testing Workspace Web Edition & Web Services

When the installation is complete, you must start the Workspace Web Edition & Web Services nodes in the following order:

  1. Start the synchronization node. This is the node you configured in Step 2 of the Modifying the Server Settings procedure. For details about the syncNode option, see the description in the General Configuration options.
  2. Start the remaining nodes.

Complete the following steps for each Workspace Web Edition & Web Services node.

Start of Procedure

  1. To start the Web Services node, enter the following command line:
    [java dir]/java -Xmx4096m -Xms4096m -Djetty.port=[jetty port] -Djetty.logs=[jetty log dir] 
    
    -Dconfig.path=[config dir] -Djetty.home=[jetty dir] -Djava.io.tmpdir=/tmp 
    
    -Djava.net.preferIPv4Stack=true -jar [jetty dir]/start.jar 
    
    --pre=etc/jetty-logging.xml --daemon
    
    • [java dir] — The home directory for Java. For example, /usr/bin/java.
    • [jetty port] — The Jetty port. For example, 80.
    • [jetty log dir] — The log directory for Jetty. For example, /var/log/jetty.
    • [config dir] — The path to the Workspace Web Edition & Web Services config directory you created in Step 6 of the Deploying the Web Application procedure. For example, /opt/jetty/genconfig. Workspace Web Edition & Web Services reads a series of configuration files from the location that is defined by the config.path system property. To start the server, or a the server startup, the config.path is needed; otherwise, the server will not start.
    • [jetty dir] — The home directory for Jetty. For example, /opt/jetty.
    Important
    The memory allocation -Xmx4096m, -Xms4096m is mandatory for the web services node.

    For example, your command line might look like the following:

    /usr/bin/java -Xmx4096m -Xms4096m -Djetty.port=80 -Djetty.logs=/var/log/jetty 
    
    -Dconfig.path=/opt/jetty/genconfig -Djetty.home=/opt/jetty -Djava.io.tmpdir=/tmp 
    
    -Djava.net.preferIPv4Stack=true -jar /opt/jetty/start.jar --pre=etc/jetty-logging.xml --daemon
    
  2. To verify that Workspace Web Edition & Web Services Server is up and running, type the following URL into a web browser:
    http://[wwews_host]:[wwews_port]/api/v2/diagnostics/version
    • [wwews_host] — The host name or IP address for the Workspace Web Edition & Web Services node.
    • [wwews_port] — The port for the Workspace Web Edition & Web Services node.
    For example, the URL might be http://192.0.2.20:8080/api/v2/diagnostics/version

    If the request is successful, the version will be printed as shown below:
  3. {
        statusCode: 0
        version: "gws-x.x.xxx.xx"
    } 
    

    End of Procedure

This page was last edited on October 31, 2023, at 13:33.
Comments or questions about this documentation? Contact us for support!