Boa tarde pessoal, estou com um problema de Servlet que não consegui solução. Já procurei na internet e até mesmo aqui no GUJ. O problema é o seguinte: ao chamar o método forward do RequestDispatcher, o mesmo demora 8 segundos para executar. Segue o código.
long time = System.currentTimeMillis();
RequestDispatcher rq = req.getRequestDispatcher("pagina.jsp");
System.out.println("Tempo após getDispatcher: "+(System.currentTimeMillis() - time));
time = System.currentTimeMillis();
rq.forward(req, res);
System.out.println("Tempo após forward: "+(System.currentTimeMillis() - time));
Saída:
Tempo após getDispatcher: 0
Tempo após forward: 7933