Question: Memory CPU Requirements

Open
#2,014 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, java, spring-boot
Domain
observability

Research direction

No source files, tests, or entry points are named. Start by reading the Java agent's documentation and resource-usage guidance, then verify how agent memory relates to the JVM heap and how CPU and startup overhead behave under load; done means providing a clear, supported answer to both questions.

Written by the indexing model from the issue text.

Description

Needs: Attention :wave:

Hello,

I want to use the Java agent inside of one docker container together with our Java SpringBoot application, like this way:

java -Xmx1024m
  -javaagent:/home/myapp/applicationinsights-agent.jar \
  -jar \
  myapp.jar

I recognized that the startup of the Java SpringBoot application is much slower, when I pass the -javaagent argument.

So I would like to ask how much memory and cpu the agent will consume, when my app is under load?
And maybe another stupid question:
Will the javaagent use the memory of the allocated memory of the Xmx1024 argument or will it allocate memory from another pool?

Thank you for your help

Regards

Thorsten

Dominant language
Java
Stars
327
Forks
222
Avg merge
22h 34m
Merged PRs (30d)
14

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/ApplicationInsights-Java

All issues in microsoft/ApplicationInsights-Java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.