Problem with Tomcat sessions

Asked

Viewed 533 times

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.

  • <session-config>&#xA; <session-timeout>30</session-timeout>&#xA; </session-config>

  • @Leonardocosta these tools are free, how do they work? Thanks

  • 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

  • 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

  • Tomcat in production is often complicated. There is some hindrance to migrating pro jboss?

  • @Weslleytavares the boss thinks of migrating to the WildFly but needs to adapt the system by account for example of the Maven

  • These changes will be less painful than postponing this inevitable act and suffering from Tomcat’s memory Leak.

  • @Weslleytavares this migration will be soon but for now I have to deal with this attitude. Thank you for your help

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.