V 1.43.3, how to increase memory???

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
Trohr
Kobold
Posts: 9
Joined: Thu May 21, 2009 5:06 pm

V 1.43.3, how to increase memory???

Post by Trohr »

Hello everyone,

Trying to increase the memory in Map Tool for version 1.43.3, but am not having much luck.

I have my MapTool.CFG pulled up, and I am looking for "Maximum Heap Size -Xmx," and I am looking for "Initial Minimum Heap Size -Xms," but can't seem to find it. I CAN find "Thread Stack Size -Xss."

Here is a copy/paste of my MapTool.cmg. My system has 8 gigs of ram, and I want to max out MapTools. What should I change...?

Thank you!

"[Application]
app.classpath=$APPDIR\MapTool.jar
app.mainclass=net.rptools.maptool.client.LaunchInstructions
app.classpath=$APPDIR\accessors-smart-2.4.9.jar
app.classpath=$APPDIR\advanced-dice-roller-1.0.3.jar
app.classpath=$APPDIR\annotations-15.0.jar
app.classpath=$APPDIR\antlr-2.7.7.jar
app.classpath=$APPDIR\antlr-runtime-3.5.3.jar
app.classpath=$APPDIR\antlr4-4.13.0.jar
app.classpath=$APPDIR\antlr4-runtime-4.13.0.jar
app.classpath=$APPDIR\apache-mime4j-core-0.7.2.jar
app.classpath=$APPDIR\apache-mime4j-dom-0.7.2.jar
app.classpath=$APPDIR\asm-9.3.jar
app.classpath=$APPDIR\autocomplete-3.3.1.jar
app.classpath=$APPDIR\autolink-0.6.0.jar
app.classpath=$APPDIR\avro-1.7.7.jar
app.classpath=$APPDIR\batik-all-1.16.jar
app.classpath=$APPDIR\bcmail-jdk15on-1.70.jar
app.classpath=$APPDIR\bcpkix-jdk15on-1.70.jar
app.classpath=$APPDIR\bcprov-jdk15on-1.70.jar
app.classpath=$APPDIR\bcutil-jdk15on-1.70.jar
app.classpath=$APPDIR\boilerpipe-1.1.0.jar
app.classpath=$APPDIR\bzip2-0.9.1.jar
app.classpath=$APPDIR\c3p0-0.9.1.1.jar
app.classpath=$APPDIR\cactoos-0.20.jar
app.classpath=$APPDIR\cdm-4.5.5.jar
app.classpath=$APPDIR\checker-qual-3.12.0.jar
app.classpath=$APPDIR\common-image-3.9.4.jar
app.classpath=$APPDIR\common-io-3.9.4.jar
app.classpath=$APPDIR\common-lang-3.9.4.jar
app.classpath=$APPDIR\commons-beanutils-1.9.4.jar
app.classpath=$APPDIR\commons-cli-1.5.0.jar
app.classpath=$APPDIR\commons-codec-1.10.jar
app.classpath=$APPDIR\commons-collections-3.2.2.jar
app.classpath=$APPDIR\commons-collections4-4.1.jar
app.classpath=$APPDIR\commons-compress-1.23.0.jar
app.classpath=$APPDIR\commons-configuration2-2.9.0.jar
app.classpath=$APPDIR\commons-csv-1.0.jar
app.classpath=$APPDIR\commons-io-2.5.jar
app.classpath=$APPDIR\commons-jxpath-1.3.jar
app.classpath=$APPDIR\commons-lang-2.6.jar
app.classpath=$APPDIR\commons-lang3-3.12.0.jar
app.classpath=$APPDIR\commons-logging-1.2.jar
app.classpath=$APPDIR\commons-logging-api-1.1.jar
app.classpath=$APPDIR\commons-net-3.9.0.jar
app.classpath=$APPDIR\commons-text-1.10.0.jar
app.classpath=$APPDIR\commons-vfs2-2.0.jar
app.classpath=$APPDIR\curvesapi-1.04.jar
app.classpath=$APPDIR\ehcache-core-2.6.2.jar
app.classpath=$APPDIR\error_prone_annotations-2.11.0.jar
app.classpath=$APPDIR\ezmorph-1.0.6.jar
app.classpath=$APPDIR\failureaccess-1.0.1.jar
app.classpath=$APPDIR\flatlaf-3.1.1.jar
app.classpath=$APPDIR\flatlaf-extras-3.1.1.jar
app.classpath=$APPDIR\flatlaf-intellij-themes-3.1.1.jar
app.classpath=$APPDIR\flatlaf-jide-oss-3.1.1.jar
app.classpath=$APPDIR\flexmark-0.64.0.jar
app.classpath=$APPDIR\flexmark-all-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-abbreviation-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-admonition-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-anchorlink-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-aside-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-attributes-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-autolink-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-definition-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-emoji-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-enumerated-reference-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-escaped-character-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-footnotes-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-gfm-issues-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-gfm-strikethrough-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-gfm-tasklist-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-gfm-users-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-gitlab-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-ins-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-jekyll-front-matter-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-jekyll-tag-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-macros-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-media-tags-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-resizable-image-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-superscript-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-tables-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-toc-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-typographic-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-wikilink-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-xwiki-macros-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-yaml-front-matter-0.64.0.jar
app.classpath=$APPDIR\flexmark-ext-youtube-embedded-0.64.0.jar
app.classpath=$APPDIR\flexmark-html2md-converter-0.64.0.jar
app.classpath=$APPDIR\flexmark-jira-converter-0.64.0.jar
app.classpath=$APPDIR\flexmark-pdf-converter-0.64.0.jar
app.classpath=$APPDIR\flexmark-profile-pegdown-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-ast-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-builder-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-collection-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-data-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-dependency-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-format-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-html-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-misc-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-options-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-sequence-0.64.0.jar
app.classpath=$APPDIR\flexmark-util-visitor-0.64.0.jar
app.classpath=$APPDIR\flexmark-youtrack-converter-0.64.0.jar
app.classpath=$APPDIR\fontbox-1.0.1.jar
app.classpath=$APPDIR\fontbox-2.0.28.jar
app.classpath=$APPDIR\geoapi-3.0.0.jar
app.classpath=$APPDIR\graal-sdk-21.2.0.jar
app.classpath=$APPDIR\graphics2d-0.32.jar
app.classpath=$APPDIR\grib-4.5.5.jar
app.classpath=$APPDIR\grpc-api-1.47.0.jar
app.classpath=$APPDIR\grpc-context-1.47.0.jar
app.classpath=$APPDIR\grpc-protobuf-1.47.0.jar
app.classpath=$APPDIR\grpc-protobuf-lite-1.47.0.jar
app.classpath=$APPDIR\gson-2.9.0.jar
app.classpath=$APPDIR\guava-31.1-jre.jar
app.classpath=$APPDIR\handlebars-4.3.1.jar
app.classpath=$APPDIR\handlebars-helpers-4.3.1.jar
app.classpath=$APPDIR\httpclient-4.2.6.jar
app.classpath=$APPDIR\httpcore-4.2.5.jar
app.classpath=$APPDIR\httpmime-4.2.6.jar
app.classpath=$APPDIR\httpservices-4.5.5.jar
app.classpath=$APPDIR\icu4j-72.1.jar
app.classpath=$APPDIR\imageio-batik-3.9.4.jar
app.classpath=$APPDIR\imageio-bmp-3.8.2.jar
app.classpath=$APPDIR\imageio-core-3.9.4.jar
app.classpath=$APPDIR\imageio-jpeg-3.8.2.jar
app.classpath=$APPDIR\imageio-metadata-3.9.4.jar
app.classpath=$APPDIR\imageio-psd-3.9.4.jar
app.classpath=$APPDIR\imageio-tga-3.8.2.jar
app.classpath=$APPDIR\imageio-tiff-3.9.4.jar
app.classpath=$APPDIR\isoparser-1.1.18.jar
app.classpath=$APPDIR\j2objc-annotations-1.3.jar
app.classpath=$APPDIR\jackcess-2.1.4.jar
app.classpath=$APPDIR\jackcess-encrypt-2.1.1.jar
app.classpath=$APPDIR\jackson-core-2.10.0.jar
app.classpath=$APPDIR\jackson-core-asl-1.9.13.jar
app.classpath=$APPDIR\jackson-mapper-asl-1.9.13.jar
app.classpath=$APPDIR\jai-imageio-core-1.4.0.jar
app.classpath=$APPDIR\jai-imageio-jpeg2000-1.4.0.jar
app.classpath=$APPDIR\java-gui-forms-rt-223.7571.182.jar
app.classpath=$APPDIR\java-libpst-0.8.1.jar
app.classpath=$APPDIR\Java-WebSocket-1.5.3.jar
app.classpath=$APPDIR\javafx-base-20-win.jar
app.classpath=$APPDIR\javafx-base-20.jar
app.classpath=$APPDIR\javafx-controls-20-win.jar
app.classpath=$APPDIR\javafx-controls-20.jar
app.classpath=$APPDIR\javafx-fxml-20-win.jar
app.classpath=$APPDIR\javafx-graphics-20-win.jar
app.classpath=$APPDIR\javafx-graphics-20.jar
app.classpath=$APPDIR\javafx-media-20-win.jar
app.classpath=$APPDIR\javafx-media-20.jar
app.classpath=$APPDIR\javafx-swing-20-win.jar
app.classpath=$APPDIR\javafx-web-20-win.jar
app.classpath=$APPDIR\javassist-3.28.0-GA.jar
app.classpath=$APPDIR\javatuples-3.0.jar
app.classpath=$APPDIR\javax.servlet-api-3.1.0.jar
app.classpath=$APPDIR\javax.ws.rs-api-2.1.1.jar
app.classpath=$APPDIR\jcabi-log-0.18.1.jar
app.classpath=$APPDIR\jcabi-xml-0.23.1.jar
app.classpath=$APPDIR\jcip-annotations-1.0.jar
app.classpath=$APPDIR\jcl-over-slf4j-1.7.7.jar
app.classpath=$APPDIR\jcommander-1.35.jar
app.classpath=$APPDIR\jdom2-2.0.4.jar
app.classpath=$APPDIR\jempbox-1.8.12.jar
app.classpath=$APPDIR\jetty-client-9.4.42.v20210604.jar
app.classpath=$APPDIR\jetty-continuation-9.4.42.v20210604.jar
app.classpath=$APPDIR\jetty-http-9.4.42.v20210604.jar
app.classpath=$APPDIR\jetty-io-9.4.42.v20210604.jar
app.classpath=$APPDIR\jetty-security-9.4.42.v20210604.jar
app.classpath=$APPDIR\jetty-server-9.4.42.v20210604.jar
app.classpath=$APPDIR\jetty-servlet-9.4.42.v20210604.jar
app.classpath=$APPDIR\jetty-util-9.4.42.v20210604.jar
app.classpath=$APPDIR\jetty-util-ajax-9.4.42.v20210604.jar
app.classpath=$APPDIR\jetty-webapp-9.4.42.v20210604.jar
app.classpath=$APPDIR\jetty-xml-9.4.42.v20210604.jar
app.classpath=$APPDIR\jhighlight-1.0.2.jar
app.classpath=$APPDIR\jide-common-3.7.9.jar
app.classpath=$APPDIR\jide-components-3.7.9.jar
app.classpath=$APPDIR\jide-dialogs-3.7.9.jar
app.classpath=$APPDIR\jide-dock-3.7.9.jar
app.classpath=$APPDIR\jide-editor-3.7.9.jar
app.classpath=$APPDIR\jide-grids-3.7.9.jar
app.classpath=$APPDIR\jide-properties-3.7.9.jar
app.classpath=$APPDIR\jide-shortcut-3.7.9.jar
app.classpath=$APPDIR\jj2000-5.2.jar
app.classpath=$APPDIR\jmatio-1.2.jar
app.classpath=$APPDIR\jna-4.1.0.jar
app.classpath=$APPDIR\joda-time-2.2.jar
app.classpath=$APPDIR\js-1.6R5.jar
app.classpath=$APPDIR\js-21.2.0.jar
app.classpath=$APPDIR\js-scriptengine-21.1.0.jar
app.classpath=$APPDIR\json-20140107.jar
app.classpath=$APPDIR\json-lib-2.4-jdk15.jar
app.classpath=$APPDIR\json-path-2.8.0.jar
app.classpath=$APPDIR\json-simple-1.1.1.jar
app.classpath=$APPDIR\json-smart-2.4.10.jar
app.classpath=$APPDIR\jsoup-1.15.4.jar
app.classpath=$APPDIR\jsr-275-0.9.3.jar
app.classpath=$APPDIR\jsr305-3.0.2.jar
app.classpath=$APPDIR\jts-core-1.19.0.jar
app.classpath=$APPDIR\juniversalchardet-1.0.3.jar
app.classpath=$APPDIR\junrar-0.7.jar
app.classpath=$APPDIR\jwnl-1.3.3.jar
app.classpath=$APPDIR\kotlin-stdlib-1.4.10.jar
app.classpath=$APPDIR\kotlin-stdlib-common-1.4.10.jar
app.classpath=$APPDIR\languagesupport-3.3.0.jar
app.classpath=$APPDIR\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
app.classpath=$APPDIR\log4j-1.2-api-2.20.0.jar
app.classpath=$APPDIR\log4j-api-2.20.0.jar
app.classpath=$APPDIR\log4j-core-2.20.0.jar
app.classpath=$APPDIR\logfast.core-1.0.6.jar
app.classpath=$APPDIR\maptool-builtin-addons-1.3.jar
app.classpath=$APPDIR\maptool-resources-1.6.0.jar
app.classpath=$APPDIR\maven-scm-api-1.4.jar
app.classpath=$APPDIR\maven-scm-provider-svn-commons-1.4.jar
app.classpath=$APPDIR\maven-scm-provider-svnexe-1.4.jar
app.classpath=$APPDIR\metadata-extractor-2.9.1.jar
app.classpath=$APPDIR\miglayout-core-11.1.jar
app.classpath=$APPDIR\miglayout-swing-11.1.jar
app.classpath=$APPDIR\mxparser-1.2.2.jar
app.classpath=$APPDIR\netcdf4-4.5.5.jar
app.classpath=$APPDIR\NoiseLib-1.0.0.jar
app.classpath=$APPDIR\okhttp-4.9.3.jar
app.classpath=$APPDIR\okio-jvm-2.8.0.jar
app.classpath=$APPDIR\openhtmltopdf-core-1.0.10.jar
app.classpath=$APPDIR\openhtmltopdf-jsoup-dom-converter-1.0.0.jar
app.classpath=$APPDIR\openhtmltopdf-pdfbox-1.0.10.jar
app.classpath=$APPDIR\openhtmltopdf-rtl-support-1.0.10.jar
app.classpath=$APPDIR\opennlp-maxent-3.0.3.jar
app.classpath=$APPDIR\opennlp-tools-1.5.3.jar
app.classpath=$APPDIR\org.abego.treelayout.core-1.0.3.jar
app.classpath=$APPDIR\paranamer-2.3.jar
app.classpath=$APPDIR\parser-1.8.3.jar
app.classpath=$APPDIR\pdfbox-1.0.1.jar
app.classpath=$APPDIR\pdfbox-2.0.28.jar
app.classpath=$APPDIR\pdfbox-debugger-2.0.28.jar
app.classpath=$APPDIR\pdfbox-tools-2.0.28.jar
app.classpath=$APPDIR\plexus-utils-1.5.6.jar
app.classpath=$APPDIR\poi-3.17.jar
app.classpath=$APPDIR\poi-ooxml-3.17.jar
app.classpath=$APPDIR\poi-ooxml-schemas-4.0.0.jar
app.classpath=$APPDIR\poi-scratchpad-3.17.jar
app.classpath=$APPDIR\proto-google-common-protos-2.0.1.jar
app.classpath=$APPDIR\protobuf-java-3.20.0.jar
app.classpath=$APPDIR\protobuf-java-util-3.20.0.jar
app.classpath=$APPDIR\quartz-2.2.0.jar
app.classpath=$APPDIR\reflections-0.10.2.jar
app.classpath=$APPDIR\regex-21.2.0.jar
app.classpath=$APPDIR\regexp-1.3.jar
app.classpath=$APPDIR\rhino-1.7.14.jar
app.classpath=$APPDIR\rome-1.5.1.jar
app.classpath=$APPDIR\rome-utils-1.5.1.jar
app.classpath=$APPDIR\rstaui-3.3.0.jar
app.classpath=$APPDIR\rsyntaxtextarea-3.3.2.jar
app.classpath=$APPDIR\sentry-1.7.29.jar
app.classpath=$APPDIR\sentry-log4j2-1.7.29.jar
app.classpath=$APPDIR\servicediscovery-1.0.b5.jar
app.classpath=$APPDIR\sis-metadata-0.6.jar
app.classpath=$APPDIR\sis-netcdf-0.6.jar
app.classpath=$APPDIR\sis-referencing-0.6.jar
app.classpath=$APPDIR\sis-storage-0.6.jar
app.classpath=$APPDIR\sis-utility-0.6.jar
app.classpath=$APPDIR\slf4j-api-2.0.7.jar
app.classpath=$APPDIR\slf4j-simple-2.0.7.jar
app.classpath=$APPDIR\snappy-java-1.0.5.jar
app.classpath=$APPDIR\ST4-4.3.4.jar
app.classpath=$APPDIR\svgSalamander-1.1.4.jar
app.classpath=$APPDIR\tagchowder.core-2.0.22.jar
app.classpath=$APPDIR\tika-core-1.0.18.jar
app.classpath=$APPDIR\tika-parsers-1.0.18.jar
app.classpath=$APPDIR\tinylaf-nocp-1.4.0.jar
app.classpath=$APPDIR\truffle-api-21.2.0.jar
app.classpath=$APPDIR\udunits-4.5.5.jar
app.classpath=$APPDIR\upnplib-1.0.9-nodebug.jar
app.classpath=$APPDIR\webp-imageio-0.2.1.jar
app.classpath=$APPDIR\webrtc-java-0.7.0-windows-x86_64.jar
app.classpath=$APPDIR\webrtc-java-0.7.0.jar
app.classpath=$APPDIR\websocket-api-9.4.42.v20210604.jar
app.classpath=$APPDIR\websocket-client-9.4.42.v20210604.jar
app.classpath=$APPDIR\websocket-common-9.4.42.v20210604.jar
app.classpath=$APPDIR\websocket-server-9.4.42.v20210604.jar
app.classpath=$APPDIR\websocket-servlet-9.4.42.v20210604.jar
app.classpath=$APPDIR\xml-apis-1.4.01.jar
app.classpath=$APPDIR\xml-apis-ext-1.3.04.jar
app.classpath=$APPDIR\xmlbeans-3.0.1.jar
app.classpath=$APPDIR\xmlgraphics-commons-2.7.jar
app.classpath=$APPDIR\xmlpull-1.1.3.1.jar
app.classpath=$APPDIR\xmpbox-2.0.24.jar
app.classpath=$APPDIR\xmpcore-5.1.2.jar
app.classpath=$APPDIR\xstream-1.4.19.jar
app.classpath=$APPDIR\xz-1.5.jar
app.classpath=$APPDIR\yasb-0.2-21012007.jar
app.classpath=$APPDIR\zstd-jni-1.5.5-3.jar

[JavaOptions]
java-options=-Djpackage.app-version=1.0
java-options=-Xss8M
java-options=-Dsun.java2d.d3d=false
java-options=-Dsentry.environment=Production
java-options=-Dfile.encoding=UTF-8
java-options=-Dpolyglot.engine.WarnInterpreterOnly=false
java-options=-Djava.util.Arrays.useLegacyMergeSort=true
java-options=-DMAPTOOL_DATADIR=.maptool-rptools
java-options=-XX:+ShowCodeDetailsInExceptionMessages
java-options=--add-opens=java.desktop/java.awt=ALL-UNNAMED
java-options=--add-opens=java.desktop/java.awt.geom=ALL-UNNAMED
java-options=--add-opens=java.desktop/sun.awt.geom=ALL-UNNAMED
java-options=--add-opens=java.base/java.util=ALL-UNNAMED
java-options=--add-opens=javafx.web/javafx.scene.web=ALL-UNNAMED
java-options=--add-opens=javafx.web/com.sun.webkit=ALL-UNNAMED
java-options=--add-opens=javafx.web/com.sun.webkit.dom=ALL-UNNAMED
java-options=--add-opens=java.desktop/javax.swing=ALL-UNNAMED
java-options=--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED
java-options=--add-opens=java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED

[ArgOptions]
arguments=-v=1.14.3
"

User avatar
aliasmask
RPTools Team
Posts: 9017
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: V 1.43.3, how to increase memory???

Post by aliasmask »

Just below the line java-options=-Xss8M you can add

java-options=-Xmx8G

but it would probably be more like 7G because it can't take what doesn't exist. On older systems and win32 it can't go much above 4G because of win32 addressing limits. Imo, making this change won't change much on performance if that's what you're looking for. If you're having memory errors then they are likely heap related and an increase in that could help, but often a change in macro code is what is needed. Sending data to chat is more limiting for the heap as well as vast amount of text sent to dialog(). Using dialog5() gives you better memory usage.

Post Reply

Return to “MapTool”