At the time of writing this book, GeoServer is at its 2.5.0 release, and it's definitely a stable and mature project. It has a well-defined release schedule with major and minor versions released at regular intervals.
For detailed and up-to-date information about the next releases, have a look at http://blog.geoserver.org/2014/02/26/extended-release-schedule/.
Upgrading frequently is a good thing; with any new release, you get many bugs fixed and new features included. Some experimental module, often from the community, may be included in the stable release. If you are running GeoServer in a production site, you have to choose between the benefits of upgrading it frequently and policies that your customer and/or system administrators may have enforced.
In any case, you need to fully understand what upgrading GeoServer means and its consequences on the following:
In this recipe, you will perform the simple steps required for upgrading.
Please note that in the following steps, I am assuming you are using GeoServer inside a Tomcat container, which is the most commonly used configuration for a production site.
$ sudo tar cvfz /opt/data_dir_geoserver.tar.gz /opt/data_dir_geoserver/*
$ sudo service tomcat stop
$ sudo tar cvfz /opt/Tomcat7042.tar.gz /opt/Tomcat7042/*
$ sudo service tomcat start
$ sudo mv /download/geoserver.war /opt/tomcat7042/webapps/.
web.xml
file to point it again to your custom data directory location:$ sudo vi /opt/tomcat7042/webapps/geoserver/WEB-INF/web.xml
<context-param> <param-name>GEOSERVER_DATA_DIR</param-name> <param-value>/opt/data_dir_geoserver/</param-value> </context-param>
If you followed the previous steps, you can guess that upgrading GeoServer is an easy task. In fact, it is usually a straightforward and simple operation.
Some problems may arise if you don't follow a regular upgrade process or you jump from a very old release to the latest one.
Detailed information about major changes in the data directory structure that you should be aware of are usually listed at http://docs.geoserver.org/stable/en/user/datadirectory/migrating.html.
GeoServer is quite a complex piece of software and sharing the same servlet container with other applications may result in out-of-memory issues or library conflicts.
The best option is to use a dedicated Tomcat for GeoServer. In some cases, you're not in control of the deployment environment, and you need to deploy it on the servlet container where other Java applications are hosted.
Also, for these complex configurations, you may follow the previous steps, but you need to modify them in order to avoid problems to other applications.
Also, consider that it is impossible to upgrade without an interruption of the service. So, we should accurately plan for the upgrade operation.
18.191.235.62