I am experimenting with VPS before moving my application from a private Tomcat host to the cloud. This is a reader application built on Struts 2 + Spring + Hibernate + MySql. This is a moderately popular app in India with 1,500 visitors and 10,000 page views per day. I have some basic questions about choosing a server configuration.
1) Is it enough to have 256M RAM to run Tomcat and Mysql. I will not run anything other than SSH. No apache, FTP, etc. My current heap size is 190 million. can i set heap size as 190M with 256M RAM? What are the pros and cons?
2) Is it better to have 2 256 M servers with Tomcat and one with Mysql? or 1 server with 512 M running both MySql and Tomcat?
I am open to any suggestions. Thanks!
source
share