Skip to content

Commit

Permalink
add sample setenv.bat for tomcat on windows to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hailey Johnson authored and haileyajohnson committed Feb 29, 2024
1 parent 7f5f22e commit 44a69a3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@echo off
rem ENVARS for Tomcat
set CATALINA_HOME=\usr\local\tomcat
set CATALINA_BASE=\usr\local\tomcat
set JAVA_HOME=\usr\local\java

rem TDS specific ENVARS
rem Define where the TDS content directory will live
rem THIS IS CRITICAL and there is NO DEFAULT - the TDS will not start without this.
set CONTENT_ROOT=data\content
set CONTENT_ROOT_PATH=-Dtds.content.root.path="%CONTENT_ROOT%"

rem Set java prefs related variables (used by the wms service, for example)
set JAVA_PREFS_ROOTS=-Djava.util.prefs.systemRoot="%CONTENT_ROOT%\thredds\javaUtilPrefs" -Djava.util.prefs.userRoot="%CONTENT_ROOT%\thredds\javaUtilPrefs"

rem Some commonly used JAVA_OPTS settings:
set NORMAL=-Xmx4096m -Xms512m
set HEAP_DUMP=-XX:+HeapDumpOnOutOfMemoryError
set HEADLESS=-Djava.awt.headless=true

rem Standard setup.
set JAVA_OPTS=%CONTENT_ROOT_PATH% %JAVA_PREFS_ROOTS% %NORMAL% %HEAP_DUMP% %HEADLESS%

rem Uncomment the following line if you want to display the JAVA_OPTS
rem echo %JAVA_OPTS%
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ If it finds `setenv.sh`, it will apply the custom environment and JVM configurat
{%include note.html content="
If you're running Tomcat on an instance of Windows OS, you will want to create a `setenv.bat` file.
" %}
Download an {% include link_file.html file="tds_tutorial/getting_started/setenv.bat" text="example" %} here.
1. Create the `setenv.sh` file.
Expand Down

0 comments on commit 44a69a3

Please sign in to comment.