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

Add soft maximum bytes to the shared cache statistics in Javacore file #83

Closed
hangshao0 opened this issue Sep 10, 2018 · 3 comments
Closed
Assignees

Comments

@hangshao0
Copy link
Contributor

hangshao0 commented Sep 10, 2018

Issue or pull request number:
eclipse-openj9/openj9#2724, eclipse-openj9/openj9#2746

Overview:
Add soft maximum bytes to the shared cache statistics in Javacore file. The soft maximum bytes will show up between the Cache size and Free bytes

Applies to the following JDK versions:
Java 8 SR5 and later, OpenJ9 v.0.10.0 and later

Applies to the following platforms:
All platforms

For new command line options:

N.A.

Previously the shared cache statistics in the Javacore looks like:

1SCLTEXTCRTW   Cache Created With
NULL           ------------------
NULL
2SCLTEXTXNL        -Xnolinenumbers       = false
2SCLTEXTBCI        BCI Enabled           = true
2SCLTEXTBCI        Restrict Classpaths   = false
NULL
1SCLTEXTCSUM   Cache Summary
NULL           ------------------
NULL
2SCLTEXTNLC        No line number content                    = false
2SCLTEXTLNC        Line number content                       = true
NULL
2SCLTEXTRCS        ROMClass start address                    = 0x00007FD779459000
2SCLTEXTRCE        ROMClass end address                      = 0x00007FD77966CBD0
2SCLTEXTMSA        Metadata start address                    = 0x00007FD78A7FFAF8
2SCLTEXTCEA        Cache end address                         = 0x00007FD78C000000
2SCLTEXTRTF        Runtime flags                             = 0x00102001ECA6028B
2SCLTEXTCGN        Cache generation                          = 35
NULL
2SCLTEXTCSZ        Cache size                                = 314572192
2SCLTEXTFRB        Free bytes                                = 64024244 
...
2SCLTEXTCPF        Cache is 4% full

After this change, it looks like;

1SCLTEXTCRTW   Cache Created With
NULL           ------------------
NULL
2SCLTEXTXNL        -Xnolinenumbers       = false
2SCLTEXTBCI        BCI Enabled           = true
2SCLTEXTBCI        Restrict Classpaths   = false
NULL
1SCLTEXTCSUM   Cache Summary
NULL           ------------------
NULL
2SCLTEXTNLC        No line number content                    = false
2SCLTEXTLNC        Line number content                       = true
NULL
2SCLTEXTRCS        ROMClass start address                    = 0x00007F0589459000
2SCLTEXTRCE        ROMClass end address                      = 0x00007F0589667B78
2SCLTEXTMSA        Metadata start address                    = 0x00007F059A800000
2SCLTEXTCEA        Cache end address                         = 0x00007F059C000000
2SCLTEXTRTF        Runtime flags                             = 0x00102001ECA6028B
2SCLTEXTCGN        Cache generation                          = 35
NULL
2SCLTEXTCSZ        Cache size                                = 314572192
2SCLTEXTSMB        Softmx bytes                              = 67108864
2SCLTEXTFRB        Free bytes                                = 64049038
...
2SCLTEXTCPF        Cache is 4% soft full

Example here also needs update;
https://www.ibm.com/support/knowledgecenter/SSYKE2_8.0.0/com.ibm.java.vm.80.doc/docs/javadump_tags_shared_classes.html

@SueChaplain
Copy link
Contributor

@hangshao0 I've got a PR in progress (#79) that includes the new softmx line, so please check that. The change will also be referenced in the release topic in the user guide (#84) and the OpenJ9 release notes (eclipse-openj9/openj9#2766)

@hangshao0
Copy link
Contributor Author

@SueChaplain , Looks good to me.

@SueChaplain
Copy link
Contributor

Closing this issue as the new javadump topic is now live, showing the line. The release topics will go live when 0.10.0 is finalised.

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

2 participants