{"record":{"id":"2b8479ccbf5401c6","repo":"pinpoint-apm/pinpoint","slug":"agentid","errorCode":null,"errorMessage":"- agentId: {}","messagePattern":"- agentId: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/DefaultAgent.java","lineNumber":137,"sourceCode":"            System.err.printf(\"ObjectName validation failed %s %s\", e.getAgentIdType(), e.getMessage());\n            throw e;\n        }\n    }\n\n    protected AgentContextOption buildContextOption(AgentOption agentOption, ObjectName objectName, ProfilerConfig profilerConfig) {\n        return AgentContextOptionBuilder.build(agentOption, objectName, profilerConfig);\n    }\n\n    private AgentSystemConfig agentSystemConfig(ObjectName objectName) {\n        AgentSystemConfig agentSystemConfig = new AgentSystemConfig(objectName.getAgentId(), Version.VERSION);\n        agentSystemConfig.dump(System.getProperties());\n        return agentSystemConfig;\n    }\n\n    private void dumpAgentOption(AgentContextOption agentOption) {\n        final ObjectName objectName = agentOption.getObjectName();\n        logger.warn(\"AgentOption : {}\", objectName.getClass().getSimpleName());\n        logger.warn(\"- agentId: {}\", objectName.getAgentId());\n        logger.warn(\"- agentName: {}\", objectName.getAgentName());\n        logger.warn(\"- applicationName: {}\", objectName.getApplicationName());\n        if (objectName instanceof ObjectNameV4) {\n            ObjectNameV4 v4 = (ObjectNameV4) objectName;\n            logger.warn(\"- serviceName: {}\", objectName.getServiceName());\n            logger.warn(\"- apikey: {}\", MaskUtils.masking(v4.getApiKey(), 2));\n        }\n        logger.info(\"- instrumentation: {}\", agentOption.getInstrumentation());\n    }\n\n\n    private LoggingSystem newLoggingSystem(Path agentPath) {\n        return Log4j2LoggingSystem.searchPath(agentPath);\n    }\n\n    protected ApplicationContext newApplicationContext(AgentContextOption agentOption) {\n        Objects.requireNonNull(agentOption, \"agentOption\");\n        ProfilerConfig profilerConfig = Objects.requireNonNull(agentOption.getProfilerConfig(), \"profilerConfig\");","sourceCodeStart":119,"sourceCodeEnd":155,"githubUrl":"https://github.com/pinpoint-apm/pinpoint/blob/744c3d3075e595656abb1ae331ad2c0e4c9eb996/agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/DefaultAgent.java#L119-L155","documentation":"WARN log line from dumpAgentOption printing the agentId taken from the agent's ObjectName. It is part of the standard startup option dump, not an error. It exists so operators can verify which agentId the profiler actually resolved from config/system properties.","triggerScenarios":"Agent startup; always printed right after the 'AgentOption :' header line.","commonSituations":"Checking logs to confirm the agent registered under the expected agentId; diagnosing duplicate-agent-id conflicts with the collector.","solutions":["No action needed if the agentId shown is correct.","If the agentId is wrong, fix agentId in pinpoint.config or -Dpinpoint.agentId and restart.","Ensure agentId is unique per JVM instance to avoid collector-side overwrites."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// check resolved agentId at startup\nString agentId = System.getProperty(\"pinpoint.agentId\");\nif (agentId == null || agentId.isEmpty()) { /* fix pinpoint.config */ }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Verify the logged agentId matches your deployment (one unique id per JVM).","Keep agentId stable across restarts so UI charts remain continuous."],"tags":["logging","agent-startup","configuration"],"backgroundTag":null,"analyzedSha":"744c3d3075e595656abb1ae331ad2c0e4c9eb996","analyzedAt":"2026-09-07T18:48:45.289Z","contentChangedAt":"2026-09-07T18:48:45.289Z","schemaVersion":2},"datasetVersion":"2026-09-14T11:17:12.474Z"}