Details
-
Bug
-
Resolution: Done
-
Critical
-
8.1.0.Final
-
None
Description
AsyncServlet doGet() like this:
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
{ resp.setContentType("text/html;charset=UTF-8"); AsyncContext ctx = req.startAsync(); new Thread(new Executor(ctx)).start(); }public class Executor implements Runnable {
private AsyncContext ctx = null;
public Executor(AsyncContext ctx)
{ this.ctx = ctx; } public void run() {
try
catch (Exception e)
{ e.printStackTrace(); } }
do request this Servlet some times , run linux cmd :
lsof -p [JAVAPID]|grep pipe|wc -l
this number increases by two every one request,but never decrease! when this number up to OS's open file limit everything is not OK.