...
This is a continution of the Bonsai Framework 0FS Tomcat setup and explains how to scale vertically (article can be written of why vertical is better than just increasing heap size) adding two additional instances of Tomcat on the same machine,
...
Code Block | ||
---|---|---|
| ||
wget http://www.bonsaiframework.com/downloads/0fs-tomcat-linux/0fs-tomcat.tar.gz sudo tar -xvpf 0fs-tomcat.tar.gz # thissudo symbolicallywill pointsensure to the latest 64-bit version sudo permissions and users are kept sudo mv /0fs-tomcat/ /0fs-tomcat.1/ sudo mv /0fs-tomcat.1/ /opt/ |
Create the second instance,
Code Block | ||
---|---|---|
| ||
sudo tar -xvpf 0fs-tomcat.tar.gz # sudo will ensure the permissions and users are kept sudo mv /0fs-tomcat/ /0fs-tomcat.12/ sudo mv /0fs-tomcat.12/ /opt/ |
Now create the second instance,
...These two Tomcat instances are completely independent of each other.
Tomcat and serveradmin
I will re-iterated that you should run Tomcat or any public facing service for that matter as serveradmin. As noted in account creation, this is for security reasons. In the event that Tomcat is somehow attacked, the compromise would be limited to serveradmin which has reduced limited priviledges.
...