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

write VM heap class histogram at iteration end and/or start #2674

Merged
merged 7 commits into from
May 31, 2020

Conversation

nikolayilyin
Copy link
Collaborator

@nikolayilyin nikolayilyin commented May 22, 2020

This change is Reviewable

@nikolayilyin nikolayilyin requested a review from REASY May 22, 2020 16:01
@nikolayilyin nikolayilyin self-assigned this May 26, 2020
@nikolayilyin nikolayilyin marked this pull request as draft May 26, 2020 15:38
@nikolayilyin nikolayilyin removed the request for review from REASY May 26, 2020 15:38
invoke("gcClassHistogram")
}

// commands examples:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd suggest to use Scala type system to help with possible params. It can be done by using ADT, for example,

sealed trait JFRCommand {
 def asStr: String
}
object JFRCommand {
  case object GcRun extends JFRCommand  {
      def asStr: String = "gcRun"
  }
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok, looks cool, thanks!

new VMInfoCollector(objectName)
} catch {
case _: MalformedObjectNameException =>
throw new RuntimeException(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's not throw away that exception, but instead, pass it to RuntimeException so there will be more information what went wrong.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@nikolayilyin nikolayilyin marked this pull request as ready for review May 31, 2020 14:45
@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin nikolayilyin requested a review from REASY May 31, 2020 14:46
@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

2 similar comments
@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin nikolayilyin merged commit 3953767 into develop May 31, 2020
@nikolayilyin nikolayilyin deleted the inm/#2669-generic-tool-to-debug-memory-leaks branch May 31, 2020 19:51
beam-bot pushed a commit that referenced this pull request Jan 11, 2021
…debug-memory-leaks

write VM heap class histogram at iteration end and/or start
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

Successfully merging this pull request may close these issues.

2 participants