Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Warning |
---|
Before installing NetVizura make sure to set the time on your server correctly. Time change after the installation will invalidate the license! NetVizura requires working connection to the internet to install required dependent software. After installation is successful you can turn off internet access for NetVizura server. |
Info |
---|
Netvizura depends on Oracle Java 1.8, Tomcat 7 and PostgreSQL 9.3 or higher. NetVizura relies on 3rd-party repositories for installation of these software packages. The installation process has been tested on Ubuntu 14.04. |
NetVizura Installation Steps
To install NetVizura follow these steps:
Step 1: Installation of 3rd-party repositories and prerequisite software
Download and execute Debian prerequisite installation script:
Code Block | ||||
---|---|---|---|---|
| ||||
apt-get -y install sudo wget wget https://www.netvizura.com/files/products/general/downloads/netvizura-4.4.0-prerequisites-ubuntu.sh --output-document=/tmp/netvizura-prerequisites-ubuntu.sh sudo bash /tmp/netvizura-prerequisites-ubuntu.sh |
Step 2: NetVizura package installation
Code Block | ||||
---|---|---|---|---|
| ||||
dpkg -i downloaded_file_name.deb |
Step 3: Verify installation
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Post Install Steps
After installation tweaking of configuration files is required in order to utilize the installed RAM to the fullest extent. The main consumers of RAM are operating system, PostgreSQL database and Tomcat. General rule for distributing memory is to split it in ratio 2:1 between PostgreSQL and Tomcat with 1 GB or more reserved for operating system. For instance:
Installed RAM | PostgreSQL | Tomcat | OS |
---|---|---|---|
4 GB | 2 GB | 1 GB | 1 GB |
16 GB | 10 GB | 5 GB | 1 GB |
Tweaking PostgreSQL
Tweaking PostgreSQL for best performance is a topic on which many books were written, but the following are some common sense suggestions. For the curious ones recommended reads (among countless others) are PostgreSQL Optimization Guide, PostgreSQL Tuning Guide, this article and this book.
In order to apply following tweaks edit file /etc/postgresql/PG_VERSION_NUMBER/main/postgresql.conf
. You will need to restart the PostgreSQL service after done editing with command: service postgresql restart
. Almost all of the following parameters are commented with carron character (#
). Be aware that if you comment out the parameter that has been changed, PostgreSQL will revert to the default value.
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Tomcat Memory Allocation
During installation NetVizura automatically allocates memory for Tomcat process. The amount allocated to Tomcat process is calculated according to the formula:
(RAMtotal - 1GB) / 3
but no less than 1GB.
For instance:
Total RAM | Tomcat |
---|---|
3 GB | 1 GB |
4 GB | 1 GB |
16 GB | 5 GB |
However, if you need to tweak Tomcat RAM allocation differently (the example for 2048MB):
- Edit file
/etc/default/tomcat7
- Locate
JAVA_OPTS
environment variable that defines memory and uncomment it if it is commented. This line looks something like the following:JAVA_OPTS="${JAVA_OPTS} -Xmx1024m -Xms1024m +UseConcMarkSweepGC"
- Modify the
-Xmx
parameter to allocate additional memory to Tomcat. Additionally, set parameter-Xms
to the same amount. This should look something like:JAVA_OPTS="-Djava.awt.headless=true -Xmx2048M -Xms2048M -XX:+UseConcMarkSweepGC"
- Save the file and restart Tomcat:
service tomcat7 restart
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|