question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spring Boot Application taking too long to start | Spcial Agent | Lightstep Tracer

See original GitHub issue

I am using version 1.5.6 of special-agent.

The startup time of my spring boot application is around 10 Sec. when I statically attach the agent the startup time of the application goes up to 3-5 minutes. When attaching the agent dynamically, no data shows up.

Command I used to launch the application

java -jar application.jar

Command I used to launch the app with static attach

java -javaagent:$SPECIAL_AGENT_JAR \
        -Dsa.tracer=lightstep \
        -Dsa.log.level=INFO \
        -Dls.accessToken=$LS_TOKEN \
        -Dsa.tracer.plugins.enable=false \
        -Dls.componentName="test-app-15" \
        -Dls.collectorHost="lightstep-host" \
        -Dls.collectorProtocol="http" \
        -Dls.collectorPort="80" \
        -jar application.jar

Command I used to attach the agent dynamically

java -Dsa.tracer=lightstep \
	-Dsa.log.level=INFO \
	-Dsa.instrumentation.plugins.verbose=true \
	-Dls.componentName=api-gateway \
	-Dls.collectorHost="lightstep-host" \
	-Dls.collectorProtocol="http" \
        -Dls.accessToken=$LIGHTSTEP_TOKEN \
	-Dls.collectorPort="80" \
	-Xbootclasspath/a:$JAVA_HOME/lib/tools.jar \
	-jar $SPECIAL_AGENT_JAR PID

Sample app I created for demo can be found here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
safriscommented, Feb 17, 2020

Hi @arpit728, can you test with v1.5.8 and let me know the results?

0reactions
safriscommented, Feb 19, 2020

Hi @arpit728, I’ll close this issue. If you experience any other problems, don’t hesitate to open another issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Send Traces to Lightstep with Java
This Quick Start guide shows you how to configure your Java applications to send OpenTelemetry traces to Lightstep Observability. This guide ...
Read more >
Java Agent for OpenTracing - SpecialAgent
The SpecialAgent uses the OpenTracing API for Integrations that instrument 3rd-party libraries, as well as Trace Exporters that export trace data to OpenTracing ......
Read more >
open-telemetry/opentelemetry-java
I have 4 services, one of them is in java, a spring boot app that I would like ... instrumentation using opentelemetry agent...
Read more >
OpenTelemetry Deep Dive: Java - YouTube
OpenTelemetry is an open source framework that provides a single set of APIs, libraries, and instrumentation resources to capture ...
Read more >
lightstep (with OpenTelemetry) – Index - Wilson Mar
Competitors · Observability Platform? · Who cares? (Customer stories) · Social · Hands-on intro. Java; CI/CD and API secret handling; Collector on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found