文章 Hao Ma · 四月 28, 2023 12m read

IRIS, Caché监控指导 - 控制台日志和错误

这里只讨论Caché和IRIS本身产生的错误和警告。用户在维护工作中通常会需要更多的内容, 那些我们在后面的 “系统性能指标”里介绍。另外, 关于集成平台的告警和日志, 也会在后面单独讨论。集成平台,也就是Ensemble Production,是IRIS系统上运行的应用,它的日志,告警,以及指标,测量,是单独的内容。

控制台日志

控制台日志是系统运行状态的日志文件,在IRIS里是messages.log, 在Cache‘里的名字是console.log,默认放在安装目录的mgr子目录。 用户也可以在管理门户的"系统操作>系统日志>控制台日志"里查看。以下是一个实际的例子:

*** Recovery started at Fri Jan 03 16:26:05 2020
     Current default directory: c:\intersystems\hsap\mgr
     Log file directory: c:\intersystems\hsap\mgr\
     WIJ file spec: c:\intersystems\hsap\mgr\CACHE.WIJ
Recovering local (c:\intersystems\hsap\mgr\CACHE.WIJ) image journal file...
Starting WIJ recovery for 'c:\intersystems\hsap\mgr\CACHE.WIJ'.
  0 blocks pending in this WIJ.
Exiting with status 3 (Success)
01/03/20-16:26:43:627 (8108) 2 Failed to allocate 2880MB shared memory using large pages.  Switching to small pages.
01/03/20-16:26:43:627 (8108) 0 Allocated 2880MB shared memory: 2048MB global buffers, 512MB routine buffers
01/03/20-16:26:43:627 (8108) 0 Intel Sandy Bridge AES-NI instructions detected.
01/03/20-16:26:43:731 (8108) 0 Jrn info from prior WIJ (imflags: 0):
(Skip multiple records…)
01/04/20-00:00:00:804 (6900) 1 Warning: Alternate and primary journal directories are the same
01/04/20-00:00:00:820 (16272) 0 CACHE JOURNALING SYSTEM MESSAGE
Journaling switched to: c:\intersystems\hsap\mgr\journal\20200104.001
01/04/20-10:15:41:703 (16096) 0 DELETE: c:\intersystems\hsap\mgr\journal\20191231.001
01/04/20-10:15:41:734 (12224) 0 Purging old application errors
01/05/20-00:00:00:497 (6900) 1 Warning: Alternate and primary journal directories are the same...(repeated 1 times)
01/05/20-00:00:00:528 (12472) 0 CACHE JOURNALING SYSTEM MESSAGE
Journaling switched to: c:\intersystems\hsap\mgr\journal\20200105.001
01/05/20-00:00:01:653 (11436) 1 %SYS.Task.FeatureTracker failed to transfer data
01/05/20-18:18:34:726 (2260) 0 DELETE: c:\intersystems\hsap\mgr\journal\20200101.001
01/05/20-18:18:34:789 (14444) 0 Purging old application errors