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

ThreadMxBean:getThreadAllocatedBytes(long) not available with ppc64le IBM Semeru v11 #16694

Closed
sahityajain123 opened this issue Feb 9, 2023 · 1 comment · Fixed by #16698
Closed

Comments

@sahityajain123
Copy link

sahityajain123 commented Feb 9, 2023

Java -version output

Output from java -version.

[root@tz-205401-bastion ~]# java -version
java version "11.0.17" 2022-10-18
IBM Semeru Runtime Certified Edition 11.0.17.0 (build 11.0.17+8)
Eclipse OpenJ9 VM 11.0.17.0 (build openj9-0.35.0, JRE 11 Linux ppc64le-64-Bit Compressed References 20221031_427 (JIT enabled, AOT enabled)
OpenJ9   - e04a7f6c1
OMR      - 85a21674f
JCL      - 2767d3a0b2 based on jdk-11.0.17+8)
[root@tz-205401-bastion ~]#

JAVA rpm can be downloaded from here: https://github.com/ibmruntimes/semeru11-certified-binaries/releases/download/jdk-11.0.17%2B8_openj9-0.35.0/ibm-semeru-certified-11-jdk-11.0.17.0-1.ppc64le.rpm

Summary of problem

I have been working on getting an ISV application (Open-source version) running on ppc64le. The source links are located here: https://hub.alfresco.com/t5/alfresco-content-services-blog/building-alfresco-docker-images-from-source-code/ba-p/311375
When trying to build the component called "base-repo" with mvn install, gives an error with the IBM Semeru v11.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project alfresco-repository: Compilation failure
[ERROR] /root/alfresco-community-repo/repository/src/main/java/org/alfresco/repo/jscript/AlfrescoScriptThreadMxBeanWrapper.java:[51,73] cannot find symbol
[ERROR]   symbol:   method getThreadAllocatedBytes(long)

It looks like Semeru/OpenJ9 didn’t implement this symbol currently. I did find the same reference in one of the issues, still open,
#14054 (comment)

Would like to know, if this symbol can be included as part of Semeru/OpenJ9. Also, if it can be implemented, when can we expect a new build or a supported maintenance release, so that I can continue with my test.

Do let me know if you need more details, I will be able to provide the same.

pshipton added a commit to pshipton/openj9 that referenced this issue Feb 16, 2023
Stop stubbing com.sun.management.ThreadMXBean and inherit
com.ibm.lang.management.ThreadMXBean from
com.sun.management.ThreadMXBean

Issue eclipse-openj9#16694

Signed-off-by: Peter Shipton <[email protected]>
pshipton added a commit to pshipton/openj9 that referenced this issue Feb 16, 2023
Stop stubbing com.sun.management.ThreadMXBean and inherit
com.ibm.lang.management.ThreadMXBean from
com.sun.management.ThreadMXBean

Issue eclipse-openj9#16694

Signed-off-by: Peter Shipton <[email protected]>
pshipton added a commit to pshipton/openj9 that referenced this issue Feb 22, 2023
Stop stubbing com.sun.management.ThreadMXBean and inherit
com.ibm.lang.management.ThreadMXBean from
com.sun.management.ThreadMXBean

Issue eclipse-openj9#16694

Signed-off-by: Peter Shipton <[email protected]>
pshipton added a commit to pshipton/openj9 that referenced this issue Mar 14, 2023
Stop stubbing com.sun.management.ThreadMXBean and inherit
com.ibm.lang.management.ThreadMXBean from
com.sun.management.ThreadMXBean

Issue eclipse-openj9#16694

Signed-off-by: Peter Shipton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants