I'm not sure whether I can post this question here or not. I have an application deployed into my tomcat server and the application is running fine. Now if I have to upgrade my java version, does it stop my application? In other words Do I need any downtime for upgrading my java version?
-
2The short answer is yes. – Susannah Potts Sep 22 '16 at 14:32
-
The long answer is very likely. – Kayaman Sep 22 '16 at 14:40
-
If you install a newer version of Java beside the existing version, then no, the install does not stop your Tomcat process. You will of course need to *restart* Tomcat to make it run on the new version, and that is downtime. However, if your setup has failover support, you could upgrade one Tomcat instance at a time, with no downtime for your users. – Andreas Sep 22 '16 at 14:41
1 Answers
Now if I have to upgrade my java version, does it stop my application until my upgrade completed?
That would be advisable.
You probably could install a newer version of Java with the existing one is being used to run your application. However, you will need to restart Tomcat and your application for them to start using the newly installed JRE.
Do I need any downtime for upgrading my java version?
You certainly need some down time.
However, as @Andreas says in a comment, if you design your system(s) appropriately, you may be able to implement a system with a live server and a "hot" stand-by server, and use a load-balancer or haproxy to "fail over" from one system to the other quickly enough that the interruption is too short to notice. Alternatively, if you have multiple "live" instances of the server you can take instances out of service, upgrade them and then reintroduce them.

- 698,415
- 94
- 811
- 1,216