That is a good question. If you plan on using a JavaServlet jsp, as in Apache Tomcat application, you are in luck. This is an open source code for all developers of Java programs. It handles and manages request of URL and produces an object of the JavaServlet class which is an extension of a web container or website account. The apache tomcat was developed in 1999 and will give you answers you may have when you decide to develope your own Java EE edition of a application, as the Apache Tomcat. Look this up, it gives you much information on your concerns, including storage and memory use.