Skip to content

Take a minute to start #13326

@SeakyLuo

Description

@SeakyLuo

Hi, after adding opentelemetry-javaagent.jar to the init command, it takes a minute longer to start the jvm. What are possible causes for that and how can I analyze and reduce the slow start? It doesn't seem to vary much between servers of different configs, so I think there might be some network issue during the startup? But it did report trace.

nohup java -javaagent:"$workspace"/AliyunJavaAgent/aliyun-java-agent.jar \
           -Dmse.licenseKey="$licenseKey" \
           -Dmse.appName="$appKey" \
           -Dprofiler.micro.service.mse.version=pro \
           -Dmse.namespace="$profile" \
           -Dmse.enable=true \
           -javaagent:"$workspace"/opentelemetry-javaagent.jar \
           -Dotel.resource.attributes=service.name="$trace_service_name",service.version=v1.0.0,deployment.environment="$profile" \
           -Dotel.exporter.otlp.protocol=http/protobuf \
           -Dotel.exporter.otlp.traces.endpoint=http://tracing-analysis-dc-hz-internal.aliyuncs.com/xxx \
           -Dotel.exporter.otlp.metrics.endpoint=http://tracing-analysis-dc-hz-internal.aliyuncs.com/xxx \
           -Dotel.logs.exporter=none \
           -jar "$jar_file" --spring.profiles.active="$profile" > "$workspace"/project.log 2>&1 &

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions