[Geoserver-users] Monitoring Geoserver

Which is the best method to monitoring Geoserver activity in order to prevent unexpected fails or shutdowns? I am asking that because my geoserver installation sometimes come down, and ideally I would like to have an script that will check its state and restart geoserver automatically if it fails. By the way it is running under Ubuntu/Linux.

Thank you.



<br>-- <br> Aitor Calero García<br> [aitor.calero@anonymised.com](mailto:aitor.calero@anonymised.com)<br> [aitor.calero@anonymised.com](mailto:aitor.calero@anonymised.com)<br> Atos Research & Innovation<br> Atos Origin Spain<br> C/ Albarracín, 25 - 28037 Madrid (Spain) <br> Tel. (+34) 91 214 8805 <br> Fax. (+34) 91 754 3252<br> [http://www.atosresearch.eu](http://www.atosresearch.eu)<br> Before printing this e-mail, think if it is really necessary<br><br>

Hi,

There is no really way to monitor GeoServer in this manner... this is
something which probably falls into the realm of JMX or something like
that.. which is currently a feature we do not have.

However, your best bet is probably a little shell script set up in cron
which just attempts to do a request to the server with wget. Something like:

wget http://<server:port>/geoserver/welcome.do
if [ "$?" != "0" ]; then
  sh $GEOSERVER_HOME/bin/startup.sh
fi

However... that begs the question as to why your server is crashing?
Which version of GeoServer are you using? Also, if you include some
information about how you use GeoServer we may be able to help. THings
like what type of data you are serving up, etc...

I know that on our production server we had a similar issue. One thing
that helped was the recent postgis connection pooling stuff that Andrea
implemented. If you use postgis that might be something to consider.

-Justin

Aitor Calero García wrote:

Which is the best method to monitoring Geoserver activity in order to
prevent unexpected fails or shutdowns? I am asking that because my
geoserver installation sometimes come down, and ideally I would like to
have an script that will check its state and restart geoserver
automatically if it fails. By the way it is running under Ubuntu/Linux.

Thank you.

--
                                                                                     Aitor Calero García
                                                                             aitor.calero@anonymised.com <mailto:aitor.calero@anonymised.com>
                                                                            aitor.calero@anonymised.com <mailto:aitor.calero@anonymised.com>
                                                                              Atos Research & Innovation
                                                                                       Atos Origin Spain
                                                               C/ Albarracín, 25 - 28037 Madrid (Spain)
                                                                                Tel. (+34) 91 214 8805
                                                                                 Fax. (+34) 91 754 3252
                                                                              http://www.atosresearch.eu
                                            Before printing this e-mail, think if it is really necessary

!DSPAM:4007,46cd5a0229813668746562!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

!DSPAM:4007,46cd5a0229813668746562!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,46cd5a0229813668746562!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

In our geoserver setup a postgres stores is sometimes unavailable. It seems
Geoserver doesn't always regain a connection to the db-server. This results
in a clean picture which shows the error message.
On the other side our monitoring system (zabbix) needs a tcp status error
code or the availability of some textual content to confirm the request.
Since its a clean picture Geoserver returns an error check is not possible.
The WMS parameter for exception format ain't usable because of the
restrained conditions of the monitoring system. The monitoring needs a tcp
statuscode that the picture couldn't be made.
What are the settings on the geoserver to attain this?

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Monitoring-Geoserver-tp6109410p7040784.html
Sent from the GeoServer - User mailing list archive at Nabble.com.