Слияние кода завершено, страница обновится автоматически
title |
---|
How to read the server logs |
Here's an example log from running a query:
2021-07-07 15:53:18,560 DEBUG middleware.log :: POST /api/dataset 202 [ASYNC: completed] 46.9 ms (17 DB calls) App DB connections: 1/10 Jetty threads: 3/50 (4 idle, 0 queued) (72 total active threads) Queries in flight: 0 (0 queued); h2 DB 4 connections: 0/1 (0 threads blocked)
Let's unpack the log:
2021-07-07 15:53:18,560
.DEBUG
. There are different types of log levels. To learn more, check out Metabase logs.middleware.log
. You can tweak your logging level to get more or less information from this namespace.POST
. The HTTP method verb, like POST, PUT, GET, DELETE./api/dataset
. The handling URL. Note that URL parameters aren't included, which can make debugging certain issues a little tricky.202
. The HTTP status code.[ASYNC: completed]
. Whether Metabase could deliver the results to the browser. If Metabase couldn't deliver the results, for example if someone starts a query and closes their browser before the query finishes, the ASYNC status will say "cancelled".46.9 ms
. The time Metabase takes to handle the request (from when Metabase receives the request until it's returned results back to the browser).(17 DB calls)
. The number of query statements used, which in addition to calls to the queried data source(s), includes calls to the Metabase application database.App DB connections: 1/10
. The number of active connections, and the available pool of connections.Jetty threads: 3/50 (4 idle, 0 queued)
. List the number of active threads, and the total pool of threads available. The (4 idle, 0 queued)
are the spare hot threads, and the number of threads queued. If you find you're maxing out the number threads in your pool, check out Metabase at scale.(72 total active threads)
. The total number of threads Metabase is using.Queries in flight: 0 (0 queued)
. The number of active and queued queries across all database sources connected to Metabase. We recommend checking the Database info below for troubleshooting issues with the database related to the request.h2 DB 4 connections: 0/1 (0 threads blocked)
. Shows database type, database ID, connections active/pool (and queue). This info is specific to the database related to the request (in this case a POST
request), and not to the overall queries in flight.Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )