1
I would like to know the following staff, a company application presents a high number of sessions in the manager of Tomcat.
The system has been rising in the number of users and would like to know tips from colleagues forum what I could do to see what has caused the number of sessions to go up and lock the system, causing it to stop and start at the manager and then do a shutdown and startup terminal.
The Java application was developed using Java 7, JSF, Spring for addiction injection, Hibernate among others.
Thank you
What is the timeout time you set up on web.xml? It is not right to restart the service when there is a problem. The correct thing to do is to understand what is generating the Resource Leak. I recommend that you use Visualvm or another profile tool.
– Leonardo Costa
<session-config>
 <session-timeout>30</session-timeout>
 </session-config>– Macario1983
@Leonardocosta these tools are free, how do they work? Thanks
– Macario1983
Yes, it is. It is inside the JDK itself, in the bin directory has the jvisualvm file. Here is an example: http://mvweb.mv.com.br:8080/documentation/annexes/html/guides/gui_configuracao_java_visualvm/index.html? utilizacao.html
– Leonardo Costa
I saw in a post in English that it is not a good practice to do the automatic restart of the server, better to try to find out why the server is crashing or crashing. http://serverfault.com/questions/506180/is-auto-restarting-services-like-tomcat-a-good-idea
– Leonardo Costa
Tomcat in production is often complicated. There is some hindrance to migrating pro jboss?
– Weslley Tavares
@Weslleytavares the boss thinks of migrating to the
WildFlybut needs to adapt the system by account for example of theMaven– Macario1983
These changes will be less painful than postponing this inevitable act and suffering from Tomcat’s memory Leak.
– Weslley Tavares
@Weslleytavares this migration will be soon but for now I have to deal with this attitude. Thank you for your help
– Macario1983