----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Charles,


>and I am getting the following error when i try to run the isitworking
servlet
>or my own servlet.  Looks like my config files are ok and and I've checked
FAQ's
>10/02/2000 09:31:27:735 EST] AJP Protocol Error: java.io.IOException:
Stream
>broken

This IMO is related to the "document contains no data" no data dialogue ppl
have gotten. It
is to do with machines that have memory issues :)

When the servlet is requested via a URL the servlet is loaded, the "Document
contains no data"
dialogue pops up when the request from the browser times out as the servlet
hasnt loaded into 
memory for the JVM to run.

I have seen that "java.io.IOException: Stream broken" on machines that have
been thrashing about.
I think it is because the browser has timed the request out after the
servlet has sent it's 
PrintWriterObject but before it has closed the PrintWriter. Anyone confirm
that synopsis? 

A couple of ways you can test for it or workaround. The most obvious is
double your RAM. Another
is to modify the amount of memory available to the JVM in jserv.properties;

    wrapper.bin.parameters=-Xms64m -Xmx64m

where 64 is the amount of memory. Up it to whatever you think your machine
can handle. 32 is the
default, the skies the limit. Also try loading your servlets at startup by
editing zone.properties 
file,

    servlets.startup=IsItWorking          

give the servlet enough time to load and see if the error still occurs. 

If the place you work is anything like this place, memory issues pop up all
the time. This place 
is essentially a transport firm so all the good hardware goes to the bloody
CAD/CAM folks, more
RAM than Romney-Marsh and wall to wall 21 inch Monitors. One of our
development servers is a non
Y2K compliant P75 running Linux that fell out of the bottom of the
organization. 

Anyway hope that helps.






Cameron Riley




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to