I am porting an application from Windows to Linux which makes heavy use of
servlets. I have a fairly intensive background process (currently a windows
service) that requires no user interaction. I plan to rewrite the code in
Java and I am wondering if there is any notable performance difference
between running the Java code under Tomcat as opposed to running the code
directly as a daemon. Since the application requires Tomcat, I know I can
code it up as a servlet and kick off the processing in the init() function
and not worry about executing the code directly as a daemon. Since this is a
performance sensitive process I want to make sure that I choose the optimal
route.

Does anybody know how java code running as a servlet compares
performance-wise to the same code running as a daemon? Is one way generally
better than the other?

Thanks,

Nate Thatcher

Reply via email to