Hi Jan

Thanks for the advice, that’s really helpful.

An initial try with OpenJDK and a variety of the new memory options yields
the same behaviour but I will experiment some more.

If anyone has any other suggestions please let me know.

Thanks again

Tom

On Mon, Mar 30, 2020 at 1:27 PM Jan Boonen <jan.boo...@geodan.nl> wrote:

> Hi Tom,
>
> This is a common problem when running Java applications under Docker. It
> depends on you Docker setup, but usually the container is not aware of the
> memory limit that is imposed by Docker or the Docker host machine. This
> video from last year's devoxx conference is a good starter to optimise and
> tune Java images and containers:
> https://www.youtube.com/watch?v=c16oOeTfFXM
>
> I'd advise you to run GeoServer using the latest OpenJDK 11 image
> (tomcat:9.0.33-jdk11-openjdk-slim) and set a fixed memory limit on the
> container. Use the Java Tool option -XX:MaxRAMPercentage to set the
> required heap space.
>
> Hope this helps to tune the GC better.
>
> Cheers,
>
> Jan
>
> --------------------------------------
> Geodan
> Buitenhaven 27-A
> 5211 TP 's-Hertogenbosch (NL)
>
> T +31 (0)73 - 692 5151
> M +31 (0)6 - 2395 1191
> E jan.boo...@geodan.nl
> www.geodan.nl | disclaimer <https://www.geodan.nl/disclaimer/>
> --------------------------------------
>
>
> Op ma 30 mrt. 2020 om 12:33 schreef Tom <tomcol...@gmail.com>:
>
>> Hi all
>>
>> I am experiencing severe memory issues running Geoserver in a Kubernetes
>> container.
>>
>> Running a simple JMeter test with a static GetMap request (point layer in
>> PostGIS) with 30 concurrent requests, Geoserver memory usage steadily
>> increases until it reaches the JVM limit and causes an out of heap memory
>> error.
>>
>> I have tried various different GC and other JVM options but all behave in
>> the same way. GC does seem to be operating as I can see the memory usage
>> regularly going down, but not as quickly as it goes up.
>>
>> I am running Geoserver 2.15.2 with Oracle Corporation: 1.8.0_242
>> (OpenJDK 64-Bit Server VM) and Tomcat 9.0.20 on Ubuntu 16.04.
>>
>> The same Geoserver deployment within a local Vagrant VM runs the same
>> JMeter test and remains stable, with memory usage not increasing over time.
>>
>> I'd be very grateful for any suggestions.
>>
>> Thanks
>>
>> Tom
>> _______________________________________________
>> Geoserver-users mailing list
>>
>> Please make sure you read the following two resources before posting to
>> this list:
>> - Earning your support instead of buying it, but Ian Turton:
>> http://www.ianturton.com/talks/foss4g.html#/
>> - The GeoServer user list posting guidelines:
>> http://geoserver.org/comm/userlist-guidelines.html
>>
>> If you want to request a feature or an improvement, also see this:
>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>>
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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

Reply via email to