Comp SRV Admin Guide
Comp SRV Admin Guide
Server
Administration Guide
Version 6.2
2
Except as provided in the applicable Software License Agreement, Primavera assumes no liability resulting
from any omission or inaccuracies in this document or from use of the information obtained herein. Except
as provided in the applicable Software License Agreement, Primavera does not assume any liability arising
out of the application or use of any product described herein. Primavera reserves the right to make changes
to any products described herein to improve reliability, function, or design, and reserves the right to revise
this document and to make changes from time to time in content hereof with no obligation to notify any
person of revisions or changes.
The software products described in this document may not be copied, reproduced, modified, or distributed,
except as indicated in the Software License Agreement. You may not reproduce the printed version of the
User Documentation or other printed materials accompanying the software, except as expressly permitted
in the Software License Agreement or in writing by Primavera. However, you are permitted to reproduce
and distribute as many copies of the electronic version of the User Documentation, in printed and electronic
format, as you reasonably require in support of your use of the software.
U.S. Government Restricted Rights: If the software is acquired for or on behalf of the United States of
America, its agencies and/or instrumentalities (“U.S. Government”), it is provided with RESTRICTED
RIGHTS, as set forth in the Software License Agreement. Use, modification, reproduction, release,
performance, display or disclosure of the software and accompanying documentation by the U.S.
Government are subject to the restrictions set forth in the Software License Agreement.
Trademarks: Primavera, the Primavera sundial, Authorized Representative, Solution Provider, Business
Solutions for a Project-Driven World logos, P6, P5, P3, Primavera Project Manager, Primavera ProSight,
Primavera Contract Manager, Pertmaster, Primavera Cost Manager, Evolve, Primavera Contractor,
Primavera Inspire, Claim Digger and SureTrak are either trademarks, services marks or registered
trademarks of Primavera in the United States and/or other countries. All other trademarks mentioned
herein are the property of their respective owners.
Table of Contents
TABLE OF CONTENTS ..................................................................................................................... 3
PREFACE ......................................................................................................................................... 4
USING THE ADMINISTRATION GUIDE.............................................................................................. 4
WHERE TO GET SUPPORT .............................................................................................................. 4
BEFORE YOU BEGIN........................................................................................................................ 5
WHAT IS THE PRIMAVERA COMPRESSION SERVER ...................................................................... 5
OVERVIEW OF THE COMPRESSION SERVER ARCHITECTURE ....................................................... 6
COMPRESSION SERVER INSTALLATION REQUIREMENTS ............................................................. 7
BEFORE YOU BEGIN THE INSTALLATION ........................................................................................ 8
UNINSTALLING PRIMAVERA COMPRESSION SERVER SERVICE .................................................... 8
CONFIGURING PRIOR TOMCAT INSTALLATIONS.............................................................................. 8
INSTALLING TOMCAT ON WINDOWS 2003 AND 2008 SERVER ........................................................ 8
THE INSTALLATION PROCESS PHASES ........................................................................................ 10
Phase I: Plan your installation ....................................................................................................... 10
Phase II: Set up your database servers using P6............................................................................ 10
Phase III: Configure the Compression server ................................................................................ 10
Phase IV: Configure clients ........................................................................................................... 10
SERVER INSTALLATION AND CONFIGURATION ........................................................................... 11
INSTALLING THE COMPRESSION SERVER.................................................................................... 11
CHANGING COMPRESSION SERVER DATABASE CONNECTION SETTINGS ................................. 18
TROUBLESHOOTING ...................................................................................................................... 22
USING THE COMPRESSION SERVER ADMINISTRATION APPLICATION ........................................ 25
REVIEWING AND MODIFYING COMPRESSION SERVER CONFIGURATIONS ................................ 28
STARTING AND STOPPING THE COMPRESSION SERVER ............................................................ 30
UPDATING THE VERSION OF THE COMPRESSION SERVER CONFIGURATION ............................ 31
COMPRESSION SERVER TELEMETRICS ....................................................................................... 32
Telemetry item descriptions .......................................................................................................... 32
CLIENT INSTALLATION AND CONFIGURATION ............................................................................. 35
INSTALLING CLIENT APPLICATIONS.............................................................................................. 35
CHANGING COMPRESSION SERVER CONNECTION SETTINGS .................................................... 35
CONFIGURING DATABASE CONNECTIONS DIRECTLY AGAINST ORACLE ..................................... 40
CONFIGURING APPLICATION LICENSING ..................................................................................... 41
4
Preface
Server Installation and Configuration Provides the steps for installing the server-
side components of the compression server, including the following:
• Setting up the database connections for the compression server
• Configuring databases
• Configuring compression server settings
Client installation and configuration Provides the steps to install the client-side
components compatible with the compression server, including how to configure your
database connection during or after installation.
Please provide your Primavera product serial number ready when contacting Primavera. Each interaction is
logged to help Primavera resolve your questions quickly.
Office Time
Hours Telephone FAX E-mail Address*
Telephone Zone
Bala Cynwyd, 8:00–8:00 +1-610-668-3030 +1-610-667-0652 [email protected]
Pennsylvania, ET (Mon–Fri)
USA 9:00–2:00 (Sat)
London, 8:30–6:30 +44-20-8563-5555 +44-20-8563-5543 [email protected]
England, UK GMT (Mon–Thur)
8:30–5:30 (Fri)
Hong Kong GMT+8 8:00–5:00 +852-2111-8299 +852-2111-9477 [email protected]
(Mon–Fri)
*Primavera's Web site at http:/www.primavera.com/customer/index.asp provides support and product
information, such as knowledgebases, file downloads, user group and newsgroup information, and a
product enhancement request form.
Client #1 DB Server
Client #2
WAN
Client #N
Compressed Data
Compressed Data
Compression
Client #1 Server
Client #N
LAN LAN
On the compression server end, the details of scheduling threads are handled by the BRE
(Business Rule Engine), which is the same engine used in P6 Web Access. For each
client request, a worker thread will perform the necessary work, running the query and
fetching the dataset before returning the data back to the client.
If Compression Server 5.0 was not installed as a service, or 5.0 SP1 or later is installed:
You must uninstall the Compression Server using Add/Remove Programs (Settings,
Control Panel).
Note: When installing Apache Tomcat on a Windows 2008 Server, you may receive an
error, “Failed to install Tomcat5 service. Check your setting and permissions. Ignore and
continue anyway (not recommended)?”
9
• Browse to the Oracle home location. Make sure your environment variable path
points to the correct location where Oracle is installed. Also, specify the location
of the Tomcat 5.5.20 server.
13
• Browse to the directory where you want to install Compression Server. Click
Next.
• Click Next to confirm the install location and begin the installation.
14
• Setup your database username and password settings. Pubuser is the default
username and password. Enter the Oracle Connection String / TNS entry (Alias),
15
Oracle Host IP address, Oracle Host port and Public Group ID. Choose a
database with a valid P6 schema . If the Database Host Address pertains to a
compression sever dedicated connection then make sure you review and execute
the steps under Network Settings for Compression Server in the Changing
Compression Server Database connection settings section of this
Administration Guide.
• After the initial installation, the Database Configuration tool shows an existing
configuration. You may choose the Create a New Configuration option to type an
appropriate name for the new configuration. If there is no configuration
information in the database you will not see the following screen during the initial
setup. In this case a default configuration will be saved to the database.
16
You can configure the network settings for the compression server and database server to
function more efficiently in a multi-user setting. The compression server needs to
communicate with the Project Management (PM) clients and the database server
concurrently, with as little network impediments as possible. For example, if the
compression server machine uses only one network interface card (NIC), a potential risk
for switch collision could lead to poor performance. To avoid this risk, we suggest using
at least two NICs for the compression server. One NIC should be used for the data
transfer with PM clients and another NIC for the communication with the database
server.
To avoid unwanted routing, you can configure the NICs you are using for the PM clients
and database on separate subnets. Also, the routing table should not have any entries
configured for routes between the two NICs.
The example below shows one possible way to configure the network for the
compression server. All configurations must meet the following two requirements:
1. One NIC should serve data transferred between the Compression Server and PM
clients. For example, you can use an IP address that is accessible to every one in the
corporate network of the organization.
2. The second NIC should serve data transferred between the Compression Server and the
DB Server. As an example, the following configuration meets this requirement:
The IP address of the second NIC should not be accessible from any other machine in the
corporate network of the organization, except the DB server machine. This minimizes
traffic on the second NIC and also ensures the fastest possible connection between the
Compression Server and the Database server. To achieve this, we recommend using an IP
address with a subnet not visible in the corporate network. In the example below,
changing the IP address to 10.12.63.XX would make the second NIC visible only for the
subnet 63.
20
We also recommend that the DB Server machine uses a dedicated NIC for the
compression server connection. This connection will support the traffic of uncompressed
data for all PM clients. If the expected traffic through this connection is low, then the DB
Server machine can use one NIC with IP multiplexing. The routing table of the DB server
should not have any entry configured for routes between the two NICs.
The IP address of the second NIC, or the second IP of a single NIC, must have the
same unknown (invisible) subnet as the second NIC of the compression server. In the
example above, the IP would say 10.12.63.YY.
This configuration is the equivalent of using a direct crossover patch network cable
between the compression server and the database.
If the DB Server machine uses a dedicated NIC for the compression server connection,
the applications that need to connect directly to the database may have to use another
NIC. In order to inform these applications about the fact that the parameters of the
compression server connection to Oracle can not be used for direct connection, you have
to add a new entry in the ADMIN_CONFIG table of the configuration database.
21
The following steps are required only if your database server is configured to support
more than one network interface card (NIC) and uses an IP address that is not public.
1. Using SQL*Plus, run the following SQL command on the database server:
Note that the SID is the SID of the database server, and the IP_ADDRESS:port_no is the
database server’s public NIC IP address and port number.
Troubleshooting
By default, the SocketLingerTime value is 2s (2000ms). For noisy networks, 2s may not
be sufficient, resulting in the socket closing before the data is fully read. Users will then
receive the following error message:
Error: Socket Error #10054 Connection reset by peer. Received data is invalid!
To avoid this error, Primavera recommends that you adjust the SocketLingerTime setting
to a higher value and restart the Compression Server from the services dialog. You will
need to set the value according to how noisy your network is. For example, during in-
house testing, increasing the SocketLingerTime setting to 10s on a network with a 5%
packet loss eliminated the error messages and loss of data.
Since sockets tend to be open longer with higher settings in this parameter, there
could be a slight loss of performance.
You may see errors like “Error occurred during initialization of VM -- Could not reserve
enough space for object heap.”
In this case, the administrator should edit –Xms and -Xmx parameters. To do this,
complete the following steps:
23
1. Double click PCSTCw.exe in the Tomcat Home\bin folder, then choose the Java tab.
2. Change the –Xms and -Xmx parameters (Initial memory pool and Max memory Pool –
default 1200MB each) equal to the largest available contiguous chunk of the available
physical memory, but no more than 2GB. Setting -Xms and -Xmx to the same value
increases predictability by removing the most important memory sizing decision from the
virtual machine.
We recommend a value no greater than 1024 kilobytes for the –Xss (-Xss1024k). The
default maximum stack size used by C code is sufficient for the native implementation of
the compression library.
• As the system administrator, you can use the Compression Server Administrator
application to review, modify, add, and delete Compression Server
configurations. Primavera configurations are stored in the Compression Server
database specified during installation. These configurations contain all of the
settings used to run the Compression Server.
• Only administrators should use the Compression Server Administrator application
to modify configuration settings.
• Choose Start, Programs, Primavera, Compression Server, Administrator to run the
Compression Server Administrator application.
• Type the database User Name and Password (privuser by default) and click OK.
• Select the correct configuration that was chosen while installing the Compression
Server, for example, .\Configurations\Custom\Primavera CompSvr Config.
• To upgrade the selected configuration to the latest version, right-click and choose
Update to latest version.
Note: Primavera strongly recommends that you create a new configuration when
you install the Primavera Compression Server. However, if you choose to upgrade an
existing 5.0 SP1 or earlier configuration, refer to “Updating the version of the
Compression Server configuration” later in this guide for additional required steps.
26
• Next, create one or more databases that the compression server can load data
against on behalf of the Primavera Project Management clients. Expand the
database folder. Right-click on the Instance folder and choose Duplicate. In our
example, this creates a Duplicate instance of LONDON10, the configuration
database. You can modify this copy to be any database you may need for the
compression server.
• For connecting the compression server to any DB server, edit the URL parameter
under Database\Instance. To edit this field, triple-click it or press the F2 key.
Then start editing the following fields to have appropriate values of New DB.
o Name
o Description
o URL (Remember that a Database is always referred to by its SID name
and IP address).
o UserName
o Password
27
o Public Group ID
• In order to create and configure multiple database connections, you can duplicate
a database instance as many times as you need.
28
You can stop, pause or restart the Primavera Compression Server service using the
Action menu.
31
You can also upgrade the configuration using the Administration application. Refer to
“Using the Compression Server Administration Application” earlier in this guide.
Note: Primavera strongly recommends that you create a new configuration when
you install the Primavera Compression Server. However, if you choose to update an
existing 5.0 SP1 or earlier configuration, complete the steps below.
Primavera customers requested to have the following new features for compression
server.
In order to meet these requests, the compression server is now deployed as a WAR file
under Tomcat web server. By going to the following site, you can view basic telemetrics
of the compression server: http://host:port/compressionserver/telemetry/summary
You can login to an advanced control page with configurable username and password.
Default username and password are csadmin/csadmin. Password is case sensitive.
When a load balancer (specific for the user environment) requests following URL:
http://host:port/compressionserver/telemetry/summary?textfile=true
the load balancer gets summary page details in the same order as the summary page, with
memory in KB and all durations in ms.
Summary page
Machine Name
The value is a string representing the compression server host name.
Standby
The value is a Boolean Yes/No representing the standby state of the compression server.
Note: The Standby state can be used in a load balancer.
33
Available Memory
The value represents the amount of free memory in the Java Virtual Machine that runs
compression server.
Total Memory
The value represents the total amount of memory in the Java Virtual Machine that runs
compression server.
Number of Sessions
The value represents the total number of client sessions in the compression server.
Application Name
The value represents the name of the client application that uses a compression server
session.
34
Client identifier
The value represents the client’s HDD serial number concatenated with the client’s IP
address.
Database Name
The value represents the SID used by the client’s database connection.
Inactive Duration
The value represents the elapsed since the end of serving the last client request.
Delete
Click to delete the selected compression server client sessions.
Logout
Click to logout of the advanced control page.
35
• Select the database alias you want to use for the Project Management database
(PMDB). Click Next.
• Select an alias name or type a new one in the Database Alias field. For example,
type PMDB _PE and select Primavera Compression Server from the Driver Type
list. (For a direct database connection, choose Either Oracle, Microsoft SQL
Server/MSDE.). Click Next.
37
• Type the Database Instance Name of the database you want to access in the
Compression Server Database Name field, and the IP address of the Compression
Server machine in the Host Name/IP Address field. Note that we pick an instance
that has the oci connection string specified in the configuration.
• Make sure that the Database you choose here is configured as a Database Instance
by the Compression Server Administration application.
• You may type a different Port number, except 1521 which is used by an Oracle
database. Make sure the port you specified in the Compression Server
Administration Application is the same port you enter here. Compression server
listens by default on Port 80. You can change the port using the Compression
Server Administration Application.
In general, if you only use one Primavera Database and this was configured during
the Compression Server installation, you should not have any need to run the
Compression Server Administration Application to configure additional databases.
38
• Click Next to test the database connection. If the connection isn’t successful,
click Previous to modify your settings.
• If prompted to configure Methodology Manager, click Cancel.
40
• To configure the client against Oracle directly, run Database Configuration utility
until you reach the screen that specifies the database alias:
• Choose the Oracle Driver type. Next, enter the Oracle connection parameters
as you would have done in earlier Primavera versions.
41
• Use the client DBConfig utility to configure your application license. Choose
Start, Programs, Primavera, Help and Utilities, Database Configuration to run the
database configuration utility.