Environment
Environment
The Environment page shows what this server runs with: the environment variables, the JVM arguments and the Java system properties, in one searchable list. Loaded modules are on the Modules page and the BoxLang settings are on the Configuration page.

Highlights
Five cards sit above the list:
| Card | Content |
|---|---|
| Runtime | MiniServer, CommandBox, a servlet container (Tomcat, Jetty, WildFly, Liberty), the BoxLang command line, or "Not detected", with the version when it can be read. |
| Container | Yes with the kind (Docker, Kubernetes, Podman, LXC) or No. |
| Java | The JDK name and version, and its vendor. |
| Heap max | -Xmx when it is set, a percentage when -XX:MaxRAMPercentage is set, else what the JVM chose. |
| Time zone | The zone of the JVM and its offset. |
How the runtime is told apart is explained under System.
The list
One search box looks through all names and values. The chips filter by source, each with its count: Environment variables (env), JVM arguments (jvm) and System properties (property). Every row shows its source. Hide JDK noise is on by default: it hides properties every JDK sets and nobody reads (java.vendor.*, java.specification.*, java.vm.specification.*, java.class.version, sun.* and similar). Turn the switch off to search them too. A value longer than 60 characters is cut, and a click copies the whole value.
How secrets are hidden
Lens hides a value when its name looks secret. The check looks for parts such as pass, pwd, secret, token, api key, access key, private, credential, auth, cookie, session, salt, seed, signature, dsn, connection string, bearer and jwt. It also removes the user info from URLs, hides secret-looking URL parameters, and shows an encrypted bxsecret: value as [encrypted]. The check errs on the side of hiding.
A hidden row shows no value at all (the answer carries an empty value and hidden: true). It works by name. A secret stored under a name that does not look like one, for example in a variable called X1, is shown. Look at the page before you share a screenshot or a bundle.
Diagnostic bundle
Diagnostic bundle needs BoxLang+ or a trial. On Free the link is disabled with a Plus chip and the server answers 403. It downloads one zip file named lens-diagnostics-{timestamp}.zip to attach to a support ticket. It holds:
| File | Content |
|---|---|
README.txt | The time, the Lens version and a note about what is left out. |
thread-dump.txt | A thread dump taken when you download. |
environment.json | The data of this page, with the effective BoxLang configuration and the module list it always had. |
system.json | The data of the System page. |
jvm.json | The data of the JVM page: memory, collections, threads by state, flags (secrets hidden). |
executors.json, tasks.json | Executors and scheduled tasks. |
datasources.json | Datasources and pool numbers. |
caches.json | Caches and their statistics, without keys or values. |
lens-settings.json | The effective Lens settings. Passwords and API keys show only set or not set. |
The bundle holds no request data and no log files. It is for admins, and each download is written to the audit log.
The answer
GET environment (admin only) returns highlights (id, label, value, detail), rows (kind, name, value, hidden, noise) and counts (all, env, jvm, property, noise). The keys of the older answer (config, modules, jvmArgs, env, properties, info) stay, because the diagnostic bundle uses them.
Settings
Turn the page off with collectors.environment.enabled or tabs.hide. The download route of the bundle is not tied to these switches: an admin who knows the URL (/~bxlens/index.bxm/api/bundle) can still download it.