Would love to collect everyones quick tips from the field to install securonix

asked 06 Jan '13, 23:48

anjan's gravatar image

anjan ♦♦
accept rate: 22%

edited 10 Jan '13, 19:47

Here are my notes.

Spent some time last night helping a few guys deploy Securonix. The installation meeting was so impromptu, that it even got me thinking about the steps in a nutshell. So read on!


  1. MySQL 5.5 and above
  2. JDK 1.7 and above

1. Create Securonix Database schema.

Database deployment can be split up into the following 3 steps

On MySQL: Run the scripts in following order:

  • securonix_mysql_schema_<version>.sql



2. SECURONIX_HOME Environment variable Unzip this folder at a convenient location. This folder will have all the external bits for profiler to refer.

Now you need to deploy SECURONIX_HOME environment variable. (Make sure SECURONIX_HOME is in CAPITAL letters)

Here you have 2 choices: - You can deploy SECURONIX_HOME as an environment variable. Look up the same for your respective Operating Systems.

  • Alternatively, you can add the following string to startup.sh in tomcat. (see below)[/list]

    export SECURONIX_HOME="/work/securonix_home"

Tomcat Installation - Install Tomcat 7

  • Place the securonix.war file under tomcat7/webapps folder

  • The database connection happens at a datasource level, so make sure you have a Profiler.xml at tomcat7/conf/Catalina/localhost/Profiler.xml

  • For Profiler.xml content, sample connection strings and drivers are below. Apart from that you do need to have the username and password configured. Password encryption is available, look up the community site for more info on that.

for MySQL (sample, do changes to port and server name as needed)

  • The next thing you have to do, is soup up tomcat. Its pretty simple here. Just add the following to $TOMCAT_HOME/bin/startup.sh (or bat)

export CATALINA_OPTS="-Xms1024m -Xmx6000m -XX:PermSize=1024m -XX:MaxPermSize=1024m"

  • Start tomcat (tomcat/bin/startup.sh)

If everything goes smooth, then a new Folder Profiler gets deployed in Tomcat7/webapps folder.

  • Last step is to setup the log file location. Stop tomcat and perform the steps below

Navigate to tomcat7/webapps/Profiler/WEB-INF/classes edit log4j.properties

Note the lines below, this is how it should look like


#log4j.rootLogger=ERROR, stdout
log4j.rootLogger=DEBUG, file
  • Restart the server

Log on to http://localhost:8080/Profiler and you are good to go! Obviously you need to substitute localhost:8080 to your respective ports.


answered 06 Jan '13, 23:52

anjan's gravatar image

anjan ♦♦
accept rate: 22%

edited 28 May '14, 16:48

tgulati's gravatar image

tgulati ♦♦

Great post.


answered 07 Jan '13, 17:43

tgulati's gravatar image

tgulati ♦♦
accept rate: 14%

also.. since version 4.0 onwards the following CATALINA_OPTS is recommended

export CATALINA_OPTS="-Xms4g -Xmx8g -XX:MaxPermSize=512m -XX:+AggressiveOpts -XX:+UseCompressedOops -Xmn2g -XX:+UseLargePages -Dsolr.solr.home=/home/scx1001/securonix_home/solr"


answered 22 Apr '13, 14:42

anjan's gravatar image

anjan ♦♦
accept rate: 22%

To deploy environment variables for Java and Securonix Home in Windows, one can set them both in the startup.bat and shutdown.bat files located in the bin folder. Adding the following lines will set the environment variable: ........ set "JAVA_HOME=C:\Program Files\Java\jdk1.7.0_05" set "SECURONIX_HOME=Path\to\securonix_home" set PATH=%JAVA_HOME%\bin;%SECURONIX_HOME%;%PATH% ........... set "EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat" This enables setting up the environment variables without restarting the system.


answered 08 May '13, 14:43

Sruthin's gravatar image

accept rate: 25%

Please add Garbage collection parameter in CATALINA_OPTS : -XX:+UseG1GC


answered 18 Apr '14, 12:58

Praful's gravatar image

Praful ♦♦
accept rate: 5%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 06 Jan '13, 23:48

Seen: 2,980 times

Last updated: 28 May '14, 16:48