Features

On this page

Features

BxLens has two parts. The bar is a snapshot of one request, shown to developers on the page itself. The console is a password protected page for one running server. Alerts, reports and a read only view of servers that share a store folder are BoxLang+.

Free means no BoxLang+ subscription is needed. Plus means a BoxLang+ license or trial. The split is the current state and may change, see Licensing.

Jump to: What can I do with it? | Debug bar | Console | Lensy | Alerts and reports | Many servers | Integrations | BIFs | Safe by default

What can I do with it?

One row per job. Find the job, then follow the link for the detail.

I want to...WhereFreePlus adds
See what one request did, step by stepBar: TimelineFull waterfall of templates, queries, HTTP and transactionsRequest cost (CPU and memory)
Find slow queries and N+1 problemsBar: Queries, Console: QueriesEvery statement of a request, the 10 heaviest across requestsEvery statement across requests
Errors as issues you can work: resolve, ignore, regress by themselves, notes, breadcrumbs, tags, from requests, tasks, threads, logs and lensExceptionConsole: ErrorsIn memory, 24 hour trendSaved to disk, 7 and 30 day trends, all servers, Share and Ask Lensy
Watch traffic and slow pagesConsole: Overview, Requests, ReportsLast 25 requests, 60 minutes of totalsLonger history, saved, more requests
See what is running right nowConsole: In flight Live stack of every running request
Find where a slow page spends its timeConsole: Hot spots Where the time went, for a request and for a URL
Watch the outgoing HTTP callsConsole: HTTPLast hour, by host and endpoint24 hours to 15 days, the call list
Check the JVM: heap, GC, threads, deadlocksConsole: JVM, SystemMemory, GC, flags, deadlock detectionThread dumps, heap dumps
See pools, tasks, caches, applications, watchersConsole: Runtime pagesView everythingRun, pause, evict, restart and the other actions
Look at the web server under BoxLangConsole: Web serverListeners, workers, requests
Debug a ColdBox appBar: ColdBox, Console: ColdBoxEvents, views, routes, modules, findingsCache evict, reap, clear
Watch the mail your app sendsConsole: MailThree counters, last ten messagesPreview, servers, spool and queue
Watch ORM queriesBar: ORMORM SQL in QueriesEvent totals and Hibernate statistics
See what your AI agents and MCP servers doConsole: AI observabilityFour counters, last hourRuns, traces, cost, rate limits
Ask about the server in plain wordsAsk Lens, LensyCopy a redacted prompt, open ChatGPT or ClaudeThe assistant, with tools and approved actions
Get an email or chat message when something breaksNotifications 21 alert rules, SMTP, Slack, Teams, Telegram, webhook
Get a daily, weekly or monthly reportEmail reports Reports from the saved data of every server
Watch more than one serverOverview, ServersThis server in fullThe fleet, the server selector, other servers' pages
Change settings without a restartSettingsRead every valueChange and reset in the console
Add my own data to the barBIFs, ExtendingMessages, timers, tags, panelsData BIFs for dashboards
Keep it locked downSecurity, HardeningRoles, read only mode, audit log, access rulesViewer login

The debug bar

The bar is off by default and only shows to allowed callers (loopback by default). It says what happened in this request and nothing more. Analysis lives in the console.

FeatureWhat it doesTier
StripStatus, total time, query count and time, exception count, request id, a Console button, theme toggle. Red only for a 5xx or an uncaught exceptionFree
TimelineA waterfall of templates, functions (opt in), queries, HTTP calls and transactions, nested the way they ran. Zoom, pan, filter, search with /, click a span for detail and an open in editor linkFree
Interrupted spansA span whose closing event never fired ends at the exception (or last activity) and is marked interruptedFree
QueriesEvery statement with SQL, rows, time, datasource and the line that ran it. Bound values only when includeParams is on. ORM statements carry an ORM labelFree
ExceptionsCaught and uncaught, with BoxLang location and the Java stack. The panel can open itself on a caught exceptionFree
HTTPOutgoing HTTP calls with status, size and timeFree
Messages and TimersWhat your code sends with lensMessage(), lensDump(), lensMeasure(), lensStart() and lensStop()Free
RequestRequest and response headers, status and the request costFree, cost is Plus
Request costCPU time and memory allocated by the request threadPlus
ScopesRedacted copy of url and form (others opt in). Off by default because it costs timeFree
BIFsCalls, total, average and slowest time and errors per built in function. Off by defaultFree
ColdBoxThe route, event, handler, layout and view, which views rendered more than once, the time of each event, view and layout, and whether the event cache hit. Names of rc and prc keys, never values. Buttons to clear the event and view caches and to reinit. Nothing to install in the application. See ColdBoxFree
TagslensTag(), lensFramework() and data.lens.tag() mark requests (ColdBox is tagged by itself). The Requests page shows and filters by tagFree
RuntimeBoxLang and Java versions, OS, uptime, heap, server and app name, cache names, and the main boxlang.json settings. Secrets hiddenFree
Your panelsApplications and modules add panels with lensPanel() or the onLensCollect interception pointFree
Bar designerShow, hide and reorder the bar tabs from the consoleLook Free, save Plus
Request idEvery tracked request gets a short id, sent as X-BxLens-Id, shown in the bar and the console, and set as request.bxlens.id and lensRequestId()Free

How the bar stays light: the page gets a block of about 1 KB. The CSS, JavaScript and icons are separate files, hashed and cached by the browser. The bar data is built only when the page renders for an allowed caller.

The console

One page at /~bxlens/index.bxm, with its own password, an optional second viewer password, lockout after failed logins, CSRF tokens and a content security policy that allows no script or style from another origin. It makes no request to any other site. On Free and trial the server registers once, for free, before the first sign in, see Register.

Inspect

PageWhat it doesTier
OverviewState of the fleet, requests, errors, p95 and what needs attention. See Many serversFree
RequestsEvery request in memory, including JSON and SSE. Click one for its timeline, issues (N+1, slow query, slow template, failed HTTP, security notes), headers and cost. Copy as JSON or cURLFree, last 25 kept. Plus keeps the configured size
In flightRequests running now, longest first, with a live stack of what each one is doingPlus
Hot spotsWhere the time of a slow request or a URL went: your code, the database, calls and waitsPlus
Bytecode profilerEvery expression of your code counted and timed for a session, as a heatmap on the source (BoxLang 1.19 or newer)Plus
ErrorsIssues grouped by cause with a status, a trend, the stack, breadcrumbs and tags of each event, notes and bulk actions. Redacted prompt copy for an AI chatFree in memory, saved to disk with Plus
ReportsTotals, error rate, p95 and p99, status codes, busiest and slowest URLs, a minute seriesFree for 60 minutes, longer and saved with Plus
QueriesStatements ranked by slowest, total time, count and failures, across every requestFree shows the 10 heaviest, Plus every statement
HTTPOutgoing calls by host and endpoint with error rate, p50, p95 and p99, and a needs attention list for slow hosts and call loops. See HTTPFree for the last hour, Plus for longer ranges and the list of calls
Ask LensAsk about this server in plain words. Copy prompt, Ask ChatGPT and Ask Claude buttons are free. With BoxLang+ it is the full page of LensyFree copy, Plus assistant

Runtime

PageWhat it doesTier
ExecutorsPool, thread and queue use against thresholds, a 60 second chart, health notes, and the tasks bound to each scheduler executorFree
TasksScheduled tasks with status, schedule, next and last run, runs and failures. Run now, pause, resume, reloadView Free, actions Plus
DatasourcesPool size, active and idle connections, waits and timeouts. Test connectionFree
ApplicationsEvery application the runtime has started: sessions, tasks, watchers and class loaders of each. Restart, remove an expired entryView Free, actions Plus
WatchersEvery file watcher with its owner, state, paths and settings. Start, stop, restartView Free, actions Plus
CachesHit rate and counts per cache, a capped key list. Read a value, evict, reap, clearStatistics Free, actions Plus
LogsEvery file in the logs directory. Last 200 lines and a level filter on Free. Search, up to 2000 lines, live tail and download with PlusFree (admin), search, tail and download Plus
ModulesLoaded modules, versions and settings, plus the Integrations section with a switch per integrationFree
EnvironmentThe effective configuration, JVM arguments, variables and properties, secrets hidden. Diagnostic bundleFree (admin), bundle Plus
ConfigurationThe effective BoxLang settings by area with the value and its source (default, boxlang.json or environment variable), and a filter boxFree
SystemCPU, heap, memory pools, disks and runtime details. Run GC. Deadlock detection. Heap dump. See SystemFree, heap dump Plus and off until console.allowHeapDump
JVMHeap and memory pools, garbage collection with causes and pauses, classes and JIT, and JVM flags with plain suggestions. See JVMFree
ThreadsEvery thread with state, CPU and stack. BoxLang frames highlighted. Copy or download a thread dumpPlus (admin)
Web serverThe server under BoxLang (MiniServer, CommandBox or a servlet container): listeners, workers, requests and what needs a look. See Web serverFree
ColdBoxOverview, findings from the Advisor, composition (routes, handlers, interceptors), modules (timeline, tree, table, and a Resolution view that finds the same module in more than one version), CacheBox caches, schedulers and executors. See ColdBox pageFree (cache evict, reap and clear, task run, pause, resume and remove: Plus)
ORMOpt in integration with bx-orm. Event totals, flushes, failures and Hibernate statistics, with a switch to turn statistics onPage is Plus, the ORM SQL in Queries is Free
MailMessages sent through bx-mail with a locked preview, delivery steps, servers, the spool and its bouncesCounters and ten messages Free, viewer and queue Plus
AI observabilityAgents, runs and their traces, models, tokens, estimated cost, MCP servers and their rate limits. See AI observabilityFour counters Free, the rest Plus

Config

PageWhat it doesTier
Bar designerChoose and order the bar tabsSave Plus
AIStatus, requirements, live settings and a connection test for Lensy. The key is write only: set in the console (kept sealed, never shown again), a bxsecret: value or an environment variable nameView Free, change Plus
SettingsChange thresholds, collectors, interface and limits live, with a reset, saved to a small overrides file. Access rules, console.* and store.* stay in boxlang.json. Tabs for Security (console passwords and write only secrets), Storage (the store, read only) and NotificationsRead Free, change Plus (Notifications Plus)
UpgradeWhat Free has, what BoxLang+ adds, and how to get it. See UpgradeFree
RegisterRegister the server once, for free, to use the console. See RegisterFree

Roles and control

  • Admin and viewer roles (the viewer login is BoxLang+). A viewer sees overview, requests, in flight, queries, errors, reports, HTTP, executors, tasks, datasources, applications, watchers, cache statistics and modules. Logs, thread stacks, environment, system details, notifications, security and a few sensitive setting values are admin only. See Roles.
  • Read only mode refuses every change from the console.
  • Audit log (bxlens-audit.log) records every change, download and denied attempt. No secrets.
  • Access rules per surface: loopback, an IP list, allowed hosts (DNS rebinding guard), a required header, and proxy header trust only from trusted peers.

Lensy, the Box Agent

A chat in a drawer on every console page (and the full page of Ask Lens) that answers by calling tools. BoxLang+.

It can look atIt can do, after you click Approve
Overview, requests, errors, queries, executors (with concrete pool recommendations), threads, blocked threads and deadlocks, garbage collection pressure, datasources, logs, database metadata, ColdBox, alerts and notificationsRun, pause or resume tasks, cache actions, Run GC, integration switches, a live setting, alert rules and recipients, ColdBox cache and reinit actions
A diagnose health sweep, and a search of these docs

The default model is Ollama on this machine. Admins can also let it ask MCP servers, such as the Ortus documentation, which are all off until turned on. See the AI page, the tool list and the threat model.

Alerts and reports

BoxLang+. Admin only. Set up in the console under Settings, Notifications. See Notifications.

WhatDetail
21 alert rulesServer down, deadlock, heap pressure, disk space, error spike, failed requests, slow site, datasource pool, executor saturated, task failing, outgoing HTTP, mail, AI, MCP rate limited, MCP rate limiter failing, security, errors in the logs. Defaults and what to check first: Alert runbook
MailYour own SMTP server, recipients per person, firing, reminder and resolved messages, grouped per person. The SMTP password is write only
ChannelsSlack, Microsoft Teams, Telegram and a signed webhook. Guides: Slack, Teams, Telegram, webhook
ReportsA daily, weekly or monthly report of how the whole cluster did, built from the saved data of every server. See Email reports
PreviewsSee any mail with sample data, and send a test to one address
LensyLensy can read the rules and, with your approval, change them

Many servers

BoxLang+. Free shows one server only, and counts the other servers it finds in the store folder without reading them.

WhatDetail
Fleet on the OverviewEach server is healthy, degraded, critical, silent or gone, as a table or cards, with groups and versions. See Overview
TrendsA line for requests, average time, errors, CPU and heap on every server, for the last 15 minutes, hour, 6 hours or 24 hours, with a Live switch. See Overview
Totals and slowestSlowest requests, SQL, HTTP calls, MCP servers and AI agents across the fleet
Server selectorSwitch the console between this server, another server and all servers. See Servers
Pages of another serverRead only: HTTP, Reports, Errors, AI, Mail, System and more
SetupOne shared store folder and one shared secrets folder. See Multi server

Server identity

Every record says which machine produced it, so the data of many servers can end up in one place and still be told apart. This is built in and free. It is a name and an address, never a lookup while a request runs.

WhatWhere the identity appears
A requestThe serverHost, serverIp and serverId of the summary and the detail, the Request tab of the bar, the console request detail, the Requests table (a Server column shows when the history holds more than one server id), the JSON and cURL exports
ErrorsThe group and every sample, and a top level server on the list
Reports and queriesA top level server on the totals and on the query statistics, and the server id of each statement
In flightEach running request
Audit logEvery line has server=<id>
Disk storeerrors.json and reports.json have a top level server, every error group and sample has its own serverId
BIFslensServer(), and the server key of lensReport() and lensDiagnostics(). The rows of lensErrors(), lensQueries() and lensInflight() carry serverId
Response headerX-BxLens-Server, only next to X-BxLens-Id and only with history.serverHeader
ConsoleThe host name and address in the header and on the Overview

The identity is detected once at start and looked at again every five minutes. Set server.name, server.address and server.id (or the environment variables BXLENS_SERVER_NAME, BXLENS_SERVER_ADDRESS and BXLENS_SERVER_ID) behind containers or NAT. See server.

The identity also carries the group (server.group), the kind of place the server runs in (a host, Docker, Kubernetes, AWS Lambda and so on, with an icon), and the BoxLang, Java and BxLens versions. lensServer() returns them as group, kind, kindLabel, icon, ephemeral, kindDetail, boxlang, java and bxlens, and the Overview of a fleet uses them.

Integrations

An integration reads another module's events. It is off by default, and it is only offered when that module is installed. Until both are true Lens registers no listener.

IntegrationNeedsWhat you get
Mailbx-mail with the onMail events, collectors.mail.enabledThe Mail page
ORMbx-orm 1.7.2 or later, collectors.orm.enabledORM SQL in the bar and console queries with an ORM label, flush counts, failed statements, startup DDL, and (Plus) the statistics page
AIbx-ai, collectors.aiobs.enabledThe AI observability page: agents, runs, models, cost, MCP servers and their rate limits. Four counters are free
ColdBoxA ColdBox application, nothing to install. On by default, collectors.coldbox.enabledThe bar tab, the console page and the Advisor findings

BIFs for your code

The tracking BIFs do nothing when the request is not tracked. See the BIF guide.

ForBIFs
Messages and timerslensMessage(), lensDump(), lensMeasure(), lensAddMeasure(), lensStart(), lensStop()
Marking requestslensTag(), lensFramework(), lensRequestId()
Exceptions and panelslensException(), lensPanel()
Switching the barlensEnable(), lensDisable(), lensIsEnabled(), lensRender()
Tools and dashboardslensReport(), lensErrors(), lensQueries(), lensInflight() (Plus, they return nothing on Free), lensLicense(), lensDiagnostics(), lensServer()

Safe by default

SettingDefaultWhy
bar.enabled, console.enabledoffNothing runs until you ask
bar.access, console.accesslocalLoopback only
collect.levellightNo bound values, scopes, request headers, caller lookups or stack frames beyond what is cheap
collectors.queries.includeParamsoffValues can be personal data
collectors.functions, bifs, logs, scopes, ormoffThey cost time or copy data
console.allowHeapDumpoffA dump holds every secret in memory
ai.enabledoffWhen on, prompts and what the assistant reads leave the server (a local model keeps them in your network)
  • Redaction happens before storing. Statement text is stored with literals masked, never parameter values.
  • Every in-memory store has a hard cap and drops the oldest entry.
  • A tracked request that never finishes is closed after request.maxMinutes (10) and kept as unfinished.
  • Heavy aggregation (query statistics, error groups, reports, history, audit) runs on one bounded background worker. When its queue is full new work is dropped and counted, and a request never waits.

Speed

Measured on /index.bxm with the MiniServer and 8 clients (requests per second): installed with bar and console off about 2770, console on at light about 2190, bar shown about 1650. The full table is in Performance.

What it does not do

  • Capture bound query values by default.
  • Add a request id to outgoing HTTP calls. collectors.http.propagateId is reserved: core gives Lens a read only HTTP request, so it cannot add a header yet.
  • Record request timeouts or client disconnects. Core does not announce them, so only the unfinished request sweep covers those.
Edit this page Download Markdown Last updated Nov 26, 2026, 8:34:30 AM Report an issue