Hi all,

Thanks all for your responses.  I will get jmap running and see what that
reports.  We restart Apache nightly because it uses huge amounts of memory
because of Oracle client connections and I wonder if this is similar.
Either way Apache doesn't actually crash (it just keeps growing its memory
footprint) whereas Geoserver does and it sometimes does it more than once
per day which suggests that restarting it nightly isn't going to resolve
the problem.

The Java startup params we're using are:

# Initial Java Heap Size (in MB)
wrapper.java.initmemory=512

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=4096

which I only recently upped.  They were set to half that before.  That to
me seems like a lot of RAM to grant something that serves a very small
number of requests (probably no more than a few thousand tiles per day)


Tom

---------- Forwarded message ----------
From: Jonathan Moules <[email protected]>
Date: Fri, Dec 20, 2013 at 2:07 PM
Subject: Re: [Geoserver-users] Out of Memory errors
To: "Tom (JDi Solutions)" <[email protected]>


Hi Tom,
We have a fairly similar setup (Windows server pointing at Oracle) but I've
never seen that, though we do restart GeoServer nightly; might you want to
try that?

Also, what are the JAVA parameters you're using at startup (the ones that
set the memory).

Oh, and if you increase the logging level to Geotools-Developers, what do
the logs say then when this is evidenced?

Cheers,
Jonathan



On 20 December 2013 13:21, Tom (JDi Solutions) <[email protected]
> wrote:

> Windows Server 2008
> Geoserver 2.3.5
> Java 1.7.13 64bit
>
> Hi all,
>
> Every so often Geoserver stops responding for about 20 minutes at a time.
> This generally happens every couple of days depending on usage.  The errors
> reported in the log are as follows:
>
> 2013-12-20 12:05:07,990 WARN [geotools.jdbc] - There is code leaving
> feature readers/iterators open, this is leaking statements and connections!
> 2013-12-20 12:17:52,501 ERROR [geotools.map] - Call MapContent dispose()
> to prevent memory leaks
> 2013-12-20 12:17:54,357 ERROR [geoserver.ows] -
> java.lang.OutOfMemoryError: Java heap space
>
> Geoserver eventually restarts itself and starts responding again.
>
> I am going to assign some more memory but it already uses 1.5GB and I
> suspect that may simply allow it to last longer before crashing?  My
> question is, is there anything else I can do?  Is this fixed in later
> versions?  Does the data source type matter?  We're using Oracle which I
> know can be a memory hog for client connections.
>
> Tom
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>

This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from us,
including without limitation all GCSX traffic, may be subject to recording
and/or monitoring in accordance with relevant legislation.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to