[Geoserver-users] Geoserver errors

Hi

Our Geoserver was, again, out of service. Version 2.3.1 on Ubuntu 12.04 server. I found several Java heap space errors, similar as below. Heap size is alrady 512.

2014-12-05 12:05:44,042 ERROR [geoserver.ows] -
java.lang.OutOfMemoryError: Java heap space

Then this flushedPos error

2014-12-05 12:38:26,552 ERROR [geoserver.ows] -
java.lang.IndexOutOfBoundsException: pos < flushedPos!

And after restart this kind of warn and error. We have installed 2.3 over 2.2 so may be somethin to do with that?

2014-12-08 13:46:30,655 WARN [geoserver.security] - /data/data_dir/security/config.xml.2.2.x could be removed manually
2014-12-08 13:46:31,288 ERROR [geoserver.security] - Error loading filter: guiException

In spite of my several notices, our sys admin still has java 7 (64-bit) on the server. Is that the reason for heap size errors

JVM Version Oracle Corporation: 1.7.0_01 (Java HotSpot™ 64-Bit Server VM)

Geoserver is still using Jetty.

So, what to do to prevent those errors?

Oiva Hakala, MTT, Finland

We do fix errors all the time, often it is a quality assurance issue (the developers need to check that they “close” each resource they open). With that in mind I would recommend upgrading. That version of GeoServer is old (so no active developers are available to help you). Part of how open source works is both geoserver-devel and geoserver-user list collaborating as the software is produced each year. If you are working with an older version of GeoServer you can look into some options for commercial support on our website.

You may also find that specific patterns of use load more raster data into memory then you have provided. You can look at data optimisation (some formats always need memory (jpeg) some formats give you flexibility to control size vs memory use during data prep (geotiff). In a production system it is smart to set up a watchdog script to monitor your Tomcat (or Jetty) and restart it if necessary.

Cheers,
Jody

On Mon Dec 08 2014 at 4:55:43 AM Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

Hi

Our Geoserver was, again, out of service. Version 2.3.1 on Ubuntu 12.04 server. I found several Java heap space errors, similar as below. Heap size is alrady 512.

2014-12-05 12:05:44,042 ERROR [geoserver.ows] -
java.lang.OutOfMemoryError: Java heap space

Then this flushedPos error

2014-12-05 12:38:26,552 ERROR [geoserver.ows] -
java.lang.IndexOutOfBoundsException: pos < flushedPos!

And after restart this kind of warn and error. We have installed 2.3 over 2.2 so may be somethin to do with that?

2014-12-08 13:46:30,655 WARN [geoserver.security] - /data/data_dir/security/config.xml.2.2.x could be removed manually
2014-12-08 13:46:31,288 ERROR [geoserver.security] - Error loading filter: guiException

In spite of my several notices, our sys admin still has java 7 (64-bit) on the server. Is that the reason for heap size errors

JVM Version Oracle Corporation: 1.7.0_01 (Java HotSpot™ 64-Bit Server VM)

Geoserver is still using Jetty.

So, what to do to prevent those errors?

Oiva Hakala, MTT, Finland


Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk_______________________________________________
Geoserver-users mailing list
Geoserver-users@anonymised.comsourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ciao Hakala,
please, find my answers inline below...

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Please, notice that GeoSolutions will be closed for seasonal holidays
from December the 24th to January the 6th

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e di procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
diverse, costituisce comportamento contrario ai principi dettati dal
D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely
for the attention and use of the named addressee(s) and may be
confidential or proprietary in nature or covered by the provisions of
privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New
Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either
dissemination, either whole or partial, is strictly forbidden except
previous formal approval of the named addressee(s). If you are not the
intended recipient, please contact immediately the sender by
telephone, fax or e-mail and delete the information in this message
that has been received in error. The sender does not give any warranty
or accept liability as the content, accuracy or completeness of sent
messages and accepts no responsibility for changes made after they
were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.

On Mon, Dec 8, 2014 at 1:16 PM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

Hi

Our Geoserver was, again, out of service. Version 2.3.1 on Ubuntu 12.04
server. I found several Java heap space errors, similar as below. Heap size
is alrady 512.

512M is not that much, generally speaking.
I would settle for something between 1G and 2G.

2014-12-05 12:05:44,042 ERROR [geoserver.ows] -
java.lang.OutOfMemoryError: Java heap space

We would need a larger portion of the logs + more info about how you
use geoserver.
A memory dump might help. Check this page on how to get a memory dump
from a live geoserver:
http://docs.geoserver.org/latest/en/user/production/troubleshooting.html#using-jdk-tools-to-get-stack-and-memory-dumps

Then this flushedPos error

2014-12-05 12:38:26,552 ERROR [geoserver.ows] -
java.lang.IndexOutOfBoundsException: pos < flushedPos!

This is not a problem, it is a client that kills the connection while
geoserver is writing on the output stream.
In the more recent version this warning can be ignored setting QUIET
logging level.

And after restart this kind of warn and error. We have installed 2.3 over
2.2 so may be somethin to do with that?

2014-12-08 13:46:30,655 WARN [geoserver.security] -
/data/data_dir/security/config.xml.2.2.x could be removed manually
2014-12-08 13:46:31,288 ERROR [geoserver.security] - Error loading filter:
guiException

This looks like an harmless warning, unless you are experiencing
failuers related to security, like not being able to log in and so on.

In spite of my several notices, our sys admin still has java 7 (64-bit) on
the server. Is that the reason for heap size errors

JVM Version Oracle Corporation: 1.7.0_01 (Java HotSpot(TM) 64-Bit Server
VM)

I don't think so. You should be fine with Java 7.

Geoserver is still using Jetty.

So, what to do to prevent those errors?

Oiva Hakala, MTT, Finland

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users