-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Felipe,

On 11/22/13, 10:29 AM, Felipe wrote:
> Interesting, so do container-based systems such as Tomcat rely
> heavely on httpd?

No, but it's quite common to see httpd used to "front" a Tomcat-based
application. This is a good strategy when you need complicated
deployments with different JVMs running different applications (or
maybe just multiple JVMs running the same application, for fail-over
and load-balancing).

> I've read that many people use Tomcat just for webapp deployment
> and use apache to handle static pages, among other things, but is
> it reasonable to use Tomcat to handle static pages, or is it solely
> for webapp server?

Tomcat does a great job as a static web server, but to get better
performance from the default you should:

1. Enable APR (connectors will auto-detect and use) if you use HTTPS

or

2. Switch to the NIO connector if you don't use HTTPS

APR's OpenSSL-based TLS implementation turns out to be faster than
other combinations of code. NIO and APR are about evenly-matched when
it comes to throughput and scalability, though I would bet on NIO all
other things being equal.

> I'm actually interested in using Tomcat for a personal project. It
> is using an Arduino Uno microcontroller (an AVR microcoontroller,
> specifically Atmel's ATMEGA 328), I would like to use the arduino
> as a server that could handle requests by way of a web interface
> control panel. I think this is would be an appropiate scenario to
> use JSP and Tomcat.

A JVM will not likely be a great choice on that platform. Modest
processor and low memory? Sounds like a disaster for a server-quality
JVM. You could look at an embedded JVM, but running Tomcat on top of
that isn't likely to pay off.

> Initially I would create a simple webapp that has prompt (where a
> user can input a command that the arduino will then act on) and
> display analog reading's (so as to monitor).

This kind of thing can be done with a simple Bash script, and use a
lot less memory. Be aware that what you are doing is (intentionally)
opening a huge security hole in your setup.

> I'm just no sure how to go about hosting tomcat, I'm pretty sure it
> is not possible to run on the arduino, but maybe using port
> forwarding or web socket to have Tomcat on a laptop or maybe a
> rasberry pi. Would this be a feasible method?

Probably not. If you were going to do all that, what's the point in
running Tomcat at all?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSk1pJAAoJEBzwKT+lPKRYUXgP/3e4+xfJIAieTw8U9ohtvLfZ
Jjl65dwjlhCRH26imhqIK9MK3w9ox+odGpjSlMM+cUPYgiIGZhxbFtUvLOigdkW4
0ENutvSzXg/mLdrDVM035IjRJMSXyIjk4Av2Wc+kJOeSyNEKREClN9Kgjojx2y44
8GoaoZCNhXgI76JfqBIgwidxrLhECS7Y5UIWzuDI0bsW0x6r1B5VhZdQBnpp2t9g
6Eb3BmfA8fE4hZYjkimKEvPCdryB/+lFuDgf5dBMIUVAemMK1fl+yn4hCaL9MKbY
DJnJeEM7Keu9KaYY4hQxQg9do/y7CNWMTqIfpB0/L2fYEu4HriNItQm0sATJ8XYB
Kjkd7TP0NU1lyhQLI7ikbkDDA/48oYBS0GkvN3F1TNYENyRuNW9fzUNMEPp6cXvd
HH5vPGn4NerJpdXq5wV6m0zVXCuOyl9uUDuP0LRHzx9fkA991RcxYqR4m21kHugD
Qi31kvw3klUJfPls7oRAY0LQJ2E3+sjGbtPccvCo4reQoxh1w7BcRxRKxwh63nKE
Cb4ITADi3qITfPRmRIHUVlDk/YD5/c2jZXxWU8Ecw4UwD9Aa9PsYzjwD2hkPBgGx
mvcTA4q0Lep8MZg+Il2/2sN0wAvMBRY8eu6fkDpFMrkDzEkYEa8jbx0znQYDeJBx
7CmJMGl2LBOcIJu1s55h
=vBKG
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to