You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by xuemei <xz...@ecutel.com> on 2001/05/04 15:45:16 UTC

Servlet, JNI

Hi,

I'm a SW engineer from ECUTEL.  I'm switching from my cgi/fast-cgi code to
Java Servlet. And I try to reuse part my c code for cgi/fast-cgi by JNI.

I've tested my code with tomcat(version 3.2.1) + apache(version 1.3.19) and
iPlanet Web Server(version 4.1 both Fasttrack and Enterprise) on Windows NT.
However, I found that the POST requests(send by client every 400ms
continuously) are executed in bunch, and the delay between bunches are
large(1s - 40s); while within one bunch,
the delay between POST requests are small(10 - 200 ms), which is the regular
delay with my cgi/fast-cgi code.

I'm wondering whether the large delay is caused by process/thread
scheduling, or settings problem, or my code(almost same as cgi code except
for change of interface for JNI).  From tomcat document, it says that it
doesn't support multi-processed Servlet on Windows NT and doesn't recommand
using thread pool for no extensive tests for it yet.  However, in my
application, the POST traffic is heavy, at least one POST every 400ms from
one client, and for each POST,  I need connect to a Server by TCP, send
request and get back reply, the process takes about < 200ms with cgi.

Ok, I think above is enough information about my problem.
Thanks in advance for your kind help!

Sincerely,

Xuemei Zhang