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

Modified printJITServerMsgStats to print at shutdown on server #9870

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

EmanElsaban
Copy link
Contributor

@EmanElsaban EmanElsaban commented Jun 12, 2020

To trigger the jitDump use the option -Xdump:jit:events=user from the server side
and then run the Java client and then kill -3 (pidof jitserver). This will print
the message stats received by the server at shutdown.
issue: #9708

Signed-off-by: Eman Elsabban eman.elsaban1@gmail.com

@EmanElsaban EmanElsaban changed the title Modified the method printJITServerMsgStats to print at shutdown on server side Modified printJITServerMsgStats to print at shutdown on server Jun 12, 2020
@EmanElsaban
Copy link
Contributor Author

@mpirvu Can you please review my PR? Thank you

@mpirvu mpirvu added the comp:jitserver Artifacts related to JIT-as-a-Service project label Jun 17, 2020
@mpirvu mpirvu added this to In progress in JIT as a Service via automation Jun 17, 2020
@mpirvu mpirvu self-assigned this Jun 17, 2020
Copy link
Contributor

@mpirvu mpirvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my inline comment

#endif
}
}
j9tty_printf(PORTLIB, "Total number of messages: %u\n", totalMsgCount);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If MESSAGE_SIZE_STATS is not defined, the for loop above will go over all the messages, but print nothing and at the very end it will print "Total number of messages: 0"
I would include the for loop and this last printf message into the block protected by ifdef.
Also, add a comment to the #endif so that we know what should be paired with:

#if defined(MESSAGE_SIZE_STATS)
...
#endif // defined(MESSAGE_SIZE_STATS)

To trigger the jitDump use the option -Xdump:jit:events=user from the server side
and then run the Java client and then  kill -3 <pidof jitserver>. This will print
the message stats received by the server at shutdown.
issue: eclipse-openj9#9708

Signed-off-by: Eman Elsabban <eman.elsaban1@gmail.com>
Copy link
Contributor

@mpirvu mpirvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mpirvu
Copy link
Contributor

mpirvu commented Jun 17, 2020

jenkins test sanity plinuxjit,xlinuxjit jdk11

@mpirvu mpirvu merged commit 4d40192 into eclipse-openj9:master Jun 18, 2020
JIT as a Service automation moved this from In progress to Done Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:jitserver Artifacts related to JIT-as-a-Service project
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants