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

Please support OpenJ9 #2

Open
isopov opened this issue Jul 21, 2019 · 1 comment
Open

Please support OpenJ9 #2

isopov opened this issue Jul 21, 2019 · 1 comment

Comments

@isopov
Copy link

isopov commented Jul 21, 2019

It seems that only needed thing is to know the name of old generations. I try it with:

$ mvn clean package
$ docker run -v `pwd`/target:/mnt/target --rm -it adoptopenjdk/openjdk9-openj9:jdk-9.0.4.12_openj9-0.9.0-alpine java -jar /mnt/target/HeapUseWatcher.jar
Exception in thread "main" java.lang.IllegalStateException: No recognized OldGen pool name found. Pool names found include:
class storage
nursery-survivor
nursery-allocate
miscellaneous non-heap storage
JIT code cache
JIT data cache
tenured-SOA
tenured-LOA

	at org.heaputils.HeapUseWatcher$NonEphemeralHeapUseModel.<init>(HeapUseWatcher.java:135)
	at org.heaputils.HeapUseWatcher.<init>(HeapUseWatcher.java:313)
	at org.heaputils.HeapUseWatcher.<init>(HeapUseWatcher.java:329)
	at org.heaputils.HeapUseWatcher.commonMain(HeapUseWatcher.java:436)
	at org.heaputils.HeapUseWatcher.main(HeapUseWatcher.java:477)
@giltene
Copy link
Owner

giltene commented Sep 4, 2019

It looks like we'll need to add up tenured-SOA and tenured-LOA for this to work right, so it will need a list of nonephemeral pools, and not just one (not hard to add). We'll also need to figure out if the maxAllowed is the sum of the getMax() values on the pools in the list, or the max of them (which one it is can be an attribute determined in the model). Any idea what the behavior is like for that in OpenJ9?

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