CommandBox: ```ACF Version11,0,19,314546``` I wa...
# box-products
c
CommandBox:
Copy code
ACF Version11,0,19,314546
I want to change the JVM settings, but I cannot find where they are? https://www.cfguide.io/coldfusion-administrator/server-settings-java-jvm/ Does anyone know whether it is possible to access these settings, using CommandBox? Thanks
p
server show JVM.heapSize
if you are using cfconfig you can configure change and export them so they are set that way next time you start up
👍 1
c
Thanks for this 🙏
p
np
c
Does this look OK? server.json:
Copy code
{
  "name": "system_learningassistant_acf",
  "web": {
    "http": {
      "port": "8081"
    },
    "rewrites": {
      "enable": "true"
    },
    "ajp": {
      "enable": "true",
      "port": "8029"
    },
    "host": "system.learningassistant.local",
    "aliases": {
      "/acf-code": "C:\\domains\\acf-lucee-shared\\shared\\la\\Code"
    },
    "webroot": "C:\\domains\\acf-lucee-shared\\shared\\la\\Code"
  },
  "openBrowserURL": "<http://system.learningassistant.local:8081>",
  "app": {
    "cfengine": "adobe@11.0.19+314546"
  },
  "jvm": {
    "javaVersion": "openjdk8_jdk",
    "minHeapSize": 1024,
    "maxHeapSize": 5120
  }
}
I couldn't actually see an example of server.json with the minHeapSize/maxHeapSize?
p
yea looks good regarding the jvm settings; might need quotes around the numbers, not sure
🙏 1
b
Adobe CF's JVM settings page (and its corresponding
jvm.config
file) is a hacked around integration with their customized version of Tomcat they bundle in their installer. Any "JRE" deployment of ACF on any other servlet container, will hide that page in the admin as those settings are handled by that servlet container
👍 1
Which, in CommandBox, is all contained in the
server.json
file
Also, quotes aren't required in the JSON, but those values are technically strings since you can set things like
1g
instead or
1024m
or
1024
(defaults to megs)
🙏 1