Hi Christopher,
I am using simple HelloWorld servlet. Which will give "Hello World!" as 
response. There is no business logic in the servlet. Same code is executing on 
both the version of tomcat. 

public class HelloWorld extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    {
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
        out.println("<html>");
        out.println("<head>");
        out.println("<title>Hello World!</title>");
        out.println("</head>");
        out.println("<body>");
        out.println("<h1>Hello World!</h1>");
        out.println("</body>");
        out.println("</html>");
    }
}

-Ravi
-----Original Message-----
From: Christopher Schultz [mailto:[email protected]] 
Sent: Thursday, April 21, 2016 7:37 PM
To: Tomcat Users List
Subject: Re: performance of tomcat 8 is less than tomcat 6

Ravi,

On 4/20/16 6:55 AM, Ravi Chandra Suryavanshi wrote:
> Yes I tried the NIO and NIO2 but not seen much difference. The TPS 
> only increased 3K  with NIO2.

What is your test case?

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to