I am constructing a proxy service for a 100 Mb/s LAN.
It is java-based code running on a system in a DMZ that acts as
a proxy to a web server.
It provides an application-specific proxy, along with a HTTP proxy.
The proxies will make sure that no inappropriate HTTP requests are
made (restricting access to certain directories, preventing certain
forms, buffer overflows, illegal characters, etc.)
I've got a prototype working, but I have several issues yet to be
resolved. One is performance. The proxy is 10-20 times slower than the real
server. (I am running the proxy on a 500 Mhz Windows NT machine.) So I
am looking into the difference in using other JVM's and OS's to
determine if the p[roblem is in the OS, the JVM, or my code.
While looking at the Sun Servlet package, I had some questions.
1) What is the difference between jswdk-1.0.1 and jsdk2.1?
Which one shall I use? Is there a better choice?
Which of these will also work with Linux?
(The proxy server uses for our evaluation uses VMWare and
dual-boots Linux).
2) How can I make sure the Servlet intercepts all HTTP-based
traffic? Currently the Servlet is launched with the access
of a particular URL containing the Servlet class name.
I want to have it launched when the web server starts, and
have it receive all HTTP requests. This way I can log all
requests, etc.
3) Is there a generic mechanism to launch servlets when the
server starts? I was looking at IBM's Visual Java system,
and it uses an isRunnable call to launch a class. Is this
the accepted mechanism?
4) Is there any other performance gotcha's people can give me?
I am trying to come up with a finer-grained benchmark that
tests just pieces of the application. I wish to measure the
cost of spawning new threads, opening new connections, data
transfer, etc.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html