Time for action – configuring GeoWebCache storage
Running the GeoWebCache shipped with GeoServer is very simple. All the layers are already configured for caching; we just need to modify some details of the configuration.
Caching will produce a lot of files, and storage requires quite a lot of space on your disk. By default, all the files are stored on the same filesystem where you installed GeoServer. A common issue is that you can run out of free space or available inodes on Linux filesystems. The result is the same: you won't be able to store anything more on the filesystem and you may also crash your system. We are going to use a custom location for cache files.
Locate your
webapps
folder inside the Apache Tomcat installation folder:~$ cd /opt/apache-tomcat-7.0.27/webapps/
Go to the
geoserver/WEB-INF
folder:/opt/apache-tomcat-7.0.27/webapps$ cd geoserver/WEB-INF/
Open the
web.xml
file and locate the line containing the following code:<display-name>GeoServer</display-name>...