We cannot provide a direct answer - because it changes depending on which
application server you are using (and some by your own opinion or practice).

For example in tomcat application server I personally like making a file
called *setenv.sh:*

#!/bin/sh

# Prepend JVM Options
CATALINA_OPTS="-XX:SoftRefLRUPolicyMSPerMB=36000 -XX:-UsePerfData
${CATALINA_OPTS}"
# Append system properties
CATALINA_OPTS="${CATALINA_OPTS} -Dorg.geotools.referencing.forceXY=true"


"Catalina" being the internal name tomcat uses to refer to its "servlet
container" responsible for running GeoServer. You can see I often make one
line for each setting so I can comment things on or off.

Another application server is Jetty, as used by the GeoServer bin download.
You can set a JAVA_OPS environment variable (similar to how I have done
above) and it is applied by bin/start.sh when running Jetty.

Tips:
- To be flexible the geoserver specific settings can often be configured by
a system environment variable, a web-context property, or a java system
property.
- You can also check the current GeoServer setup using the Server Status
page. The modules tab lists what is going on, try clicking on System
Environment and System Properties modules to display more information.

--
Jody Garnett


On Mon, May 8, 2023 at 6:14 AM Amirhossein Nikfal <ah.nik...@gmail.com>
wrote:

> Regarding:
> https://docs.geoserver.org/stable/en/user/extensions/netcdf/netcdf.html
>
> A number of system properties allow us to configure this behavior:
>
>    - org.geotools.coverage.io.netcdf.param.max
>    - org.geotools.coverage.io.netcdf.param.min
>    - org.geotools.coverage.io.netcdf.auxiliary.store
>
>
> How can I set these system properties? It seems it is not discussed in the
> documentation how to work with geotools.
>
>
> _______________________________________________
> 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