Mr Ferrier :

  First of all thank you for your reply :-)

> I don't really understand why you're taking a snooze...
>
> Is FOut a File? if so...
>
  Yes, it's a file provided by an external process...
>
> >        FileReader frout = new FileReader(FOut);
> >        BufferedReader brout = new BufferedReader(frout);
> >
>
>  char[] content=new char[FOut.size()];

       I think you meant FOut.length(), didn't you ?

>   int red=brout.read(content,0,content.length);
>   while(red!=-1)
>    {
>       //this loop should never be called but it's a good safety measure
>        red=brout.read(content,red-1,content.length-red);
>     }
>     //now output
>     rw.write(content,0,content.length);
>
> >        rw.close();
> >        brout.close();
> >        FOut.delete();
>

      Well, after doing that, it is still consuming a lot much more CPU than
CGI-WIN.

      How do I know that ? Using NT Perfomance Monitor, running the servlet,
I see peaks of 100 % of CPU. Running the same transaction again, same data,
via CGI-WIN, I'll have at most 50 % of CPU (56 %, to be more accurate).

      Unfortunatelly, against my will, I'll have to go on with CGI-WIN.

      But, thank you again for your answer.

      See ya !


                                Obrigado/Thanks a lot,

                                Jose Adriano Baltieri
                                Analista de Sistemas
                                CPD - CENTRO
                                UNIMEP - Universidade Metodista de Piracicaba
                                PIRACICABA - SP - BRASIL
                                Fone : 055 0 XX 19 430-1858 (english spoken)
                                Fax  : 055 0 XX 19 430-1898 (cx postal 42778)

___________________________________________________________________________
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

Reply via email to