Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My Rest API Server with jetty and jersey was not drawn in server map #10363

Open
harveychong opened this issue Sep 21, 2023 · 0 comments
Open

Comments

@harveychong
Copy link

I have two applications: one is a http client with jdk 17 java.net.http.HttpClient (not supported by Pinpoint 2.5.2) and other is our rest api (jersey) with an embedded jetty and jersey. When I started the client, I can see the client was drawn in server map but the rest api was not. My configuration is

For client,

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.0.4.1.jdk/Contents/Home
export AGENT_PATH=$HOME/pinpoint-agent-2.5.2 
export PUMP_MODULE=$HOME/myclient
PROPERTIES="-Dpring.profiles.active=release"
PROPERTIES="$PROPERTIES -Dpinpoint.applicationName=datapump"
PROPERTIES="$PROPERTIES -Dpinpoint.agentId=1"

$JAVA_HOME/bin/java -javaagent:$AGENT_PATH/pinpoint-bootstrap-2.5.2.jar $PROPERTIES  --module-path $PUMP_MODULE/lib --module myclient/myclient.Main 

Note that I did

profiler.include=jdk.internal.net.http.HttpClientImpl

I can see all functions expected in Call Tree

For Rest API,

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.0.4.1.jdk/Contents/Home
export AGENT_PATH=$HOME/api/pinpoint-agent-2.5.2
export APP_MODULE=$HOME/rest-api

PROPERTIES="-Dpring.profiles.active=release"
PROPERTIES="$PROPERTIES -Dpinpoint.applicationName=api"
PROPERTIES="$PROPERTIES -Dpinpoint.agentId=2"

$JAVA_HOME/bin/java  -javaagent:$AGENT_PATH/pinpoint-bootstrap-2.5.2.jar $PROPERTIES --module-path $APP_MODULE/lib --module rest-api/rest.api.Main

What did I miss? Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant