最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Datadog APM enabled Nest application Crashing due to memory and CPU Leaks - Stack Overflow

programmeradmin1浏览0评论

We have enabled APM on our Nest Backend, the agent is hosted separately on a Machine and we communicate via Hostname and URL, but we see Our CPU and Memory chocking with agent in a regular pattern, we even doubled our APM app resources(CPU and Memory) but it somehow again expand to crash, we disable initializing datadog apm and our application works fine. We have attached a screenshot for the trend being observed

This is our configuration for datadog

import tracer from 'dd-trace';

export function initDatadog() {
  tracer.init({
    service: 'popstack-api',
    env: process.env.DD_ENV,
    version: '1.0.0',
    logInjection: true,
    startupLogs: true,
    url: process.env.DD_URL,
    hostname: process.env.DD_HOSTNAME || 'localhost',
    tags: {
      service: 'popstack-api',
      env: process.env.DD_ENV || 'development'
    },
    runtimeMetrics: true
  });
  console.log('Datadog APM initialized');
}
 

We appreciate help to find the root cause and get this fix, so we can continue our monitoring.

发布评论

评论列表(0)

  1. 暂无评论