Version 4 (modified by business@…, 4 years ago)


Set up dbNP instance on an NBX

Set up tomcat user

  • Login as manager
  • Create user tomcat:
    sudo adduser tomcat
  • Switch to user tomcat and its home directory
    sudo su - tomcat
  • Change default shell to bash:
    chsh -s /bin/bash
  • Check out deploy scripts and virtual host configurations
    svn checkout --username=anonymous
    svn checkout --username=anonymous
  • Download Tomcat (to find the newest version, go to, find it, click Download and look up the Core .tar.gz file)
    tar -zxvf apache-tomcat-7.0.16.tar.gz
  • Add CATALINA_OPTS parameter to default bash environment of Tomcat user (convenient when restarting Tomcat manually)
    echo "export CATALINA_OPTS=\"-Xms128m -Xmx2048m -XX:MaxPermSize=720m -XX:MaxHeapFreeRatio=70 -XX:MaxGCPauseMillis=10 -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled\"" >> ~/.bashrc