I have a long term job at Tomcat. This is data conversion to update the database for the new version, if you are wondering. It took 7 hours on our development server, but no problem. Every 60 seconds, it sends a progress message to the browser so that you know that it is still alive, and keep in touch.
Then I tried to run it on another server, and after 120 minutes it ended with the exception: "getAttribute: Session is no longer valid." I restarted it, and again it failed with the same message after 120 minutes. He had a restart function at certain key points, so I started it on βpart 2β and again he died after 120 minutes.
I conclude something on the server that imposes a time limit of 120 minutes - it is too much for him to die due to a program error at the same time that has passed 3 times in a row, especially when the third run would be different data.
Tomcat <session-timeout> was installed on our development server 30, and on this server he had 7 hours without problems, so no matter what the limit is, I donβt think it is.
Any clues about what killed me? I suppose there is some kind of timeout somewhere, but I do not know what it is.
source share