Skip to main content

Troubleshooting: Debug endpoints

All endpoints that are not <system>-only can be accessed for particular database by adding /databases/{database_name}/ prefix.

Overview

EndpointMethodParametersDescription<system>-only
debug/prefetch-statusGETReturn prefetching statuses for all indexing groups.
debug/format-indexPOST- (Content) JSON-array of indexing functionsSimplifies and formats given indexing functions.
debug/indexing-perf-stats?format={format}GET- format - output format: json or csv (if empty: json)Indexing performance statistics like duration and input/output count.
debug/indexing-batch-statsGETIndexing performance stats shown for indexing batches
debug/reducing-batch-statsGETIndexing performance stats shown for reducing batches
debug/pluginsGETReturns active plugins e.g. triggers and startup tasks.
debug/changesGETReturns Changes API connection details e.g. connection identifier or subscription details.
debug/sql-replication-statsGETVarious metrics with SQL Replication performance.
debug/metricsGETAll database metrics.
debug/configGETDatabase configuration file.
debug/docrefs?id={id}&op={op}GET- id - id of a document to check<br />- op - operation type: from or toReturns count of references and array of referenced document keys.
debug/index-fieldsPOST- (Content) - indexing functionReturns array of field names extracted from indexing function.
debug/list?id={id}&key={key}GET- id - list name<br />- key - valueReturns value found under key from list.
debug/list-all?id={id} GET- id - list nameReturns all values for given list.
debug/queriesGETReturns list of currently running queries.
debug/suggest-index-mergeGETReturns index merge suggestions.
debug/sl0w-d0c-c0untsGETCounts the number and size of documents for each collection. CAUTION: resource intensive and slow.
debug/user-infoGETReturns information about current authenticated user.
debug/tasksGETReturns list of all current database tasks.
debug/routesGETReturns list of all available endpoints.Y
debug/currently-indexingGETReturns current indexing operations details (e.g. what indexes are working and what is the current indexing rate)
debug/remaining-reductionsGETReturns information about remaining, scheduled reductions.
debug/request-tracingGETReturns the list of recent requests with detailed info (e.g. headers, execution type).
debug/identities?start={start}&pageSize={pageSize}GET- paging parametersReturns next identity values for collection types, indexes, transformers, etc.
debug/info-packageGETCreates debug info package that contains detailed information about the database (e.g. replication information, statistics, queries, requests, hardware information, etc.)
debug/transactionsGETReturns information about current DTC transactions.
debug/raw-doc?id={id}GET- id - if of a documentReturns raw document data.
debug/subscriptionsGETReturns information about existing data subscriptions.
/admin/voron/tree/{name}GET- name - a tree nameReturns the state of a Voron tree.
admin/statsGETReturns server-wide statistics (e.g. server name, uptime, memory statistics, loaded databases information). More here.
admin/gcGETStarts the garbage collection process.
admin/loh-compactionGETStarts the garbage collection with LOH compaction process.
admin/debug/info-packageGET- (Optional) stacktrace - indicates if stacktraces should be included in package (may freeze server for some time to gather them).Returns debug info package for all loaded databases.
admin/detailed-storage-breakdownGETReturns storage report (e.g. number of documents, indexes, attachments and other storage-dependant statistics).
admin/low-memory-notificationPOSTSimulates low memory on server and executes all memory conservation events.
admin/generate-oauth-certificateGETGenerates OAuth certificate.
build/versionGETReturns product and build version.Y
indexes/{index_name} ?op=forceWriteToDiskPOST- index_name - index nameForce in-memory auto-index persistence.
replication/explain/{*docId}?destinationUrl={destinationUrl}&databaseName={databaseName}GET- docId - Id of a document to check<br />- destinationUrl - destination server URL<br />- databaseName - destination database nameTries to explain what is the replication status for a given document on a given replication destination e.g. if the document should have been already replicated or will be replicated

Studio

Most of the endpoints can be accessed from the Studio by accessing the Debug section in the Status tab.

Figure 1: Studio : Debug Endpoints