在MACOS上使用JRE运行ARM docker容器

时间:2018-09-12 13:22:26

标签: java macos docker arm

我遇到以下问题,试图在MAC主机上运行ARM docker容器。

这是我所指的资源

Cross Building and Running Multi-Arch Docker Images

根据以上博客,适用于Mac的Docker内置了binfmt_misc支持,从而使其无需任何其他配置即可在x86上执行arm容器。

我需要在ARM arch上测试一个Java应用程序。

为了实现这一目标,我使用下图 arm64v7/openjdk

问题是当我尝试运行Java应用程序时,我不断收到以下错误消息

   
Digest: sha256:657b2419b8407ee009e4400034e1821426d16305eb6334873b5938030f1d5f85
Status: Downloaded newer image for arm32v7/tomcat:latest
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xf4de0b90, pid=1, tid=0xe13ff470
#
# JRE version: OpenJDK Runtime Environment (8.0_171-b11) (build 1.8.0_171-8u171-b11-1~deb9u1-b11)
# Java VM: OpenJDK Client VM (25.171-b11 mixed mode linux-aarch32 )
# Problematic frame:
# V  [libjvm.so+0x12eb90]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /usr/local/tomcat/hs_err_pid1.log
Compiled method (c1)    3946  116             java.lang.StringBuilder::toString (17 bytes)
 total in heap  [0xf290f308,0xf290f598] = 656
 relocation     [0xf290f3d4,0xf290f3f4] = 32
 main code      [0xf290f400,0xf290f4e0] = 224
 stub code      [0xf290f4e0,0xf290f530] = 80
 metadata       [0xf290f530,0xf290f53c] = 12
 scopes data    [0xf290f53c,0xf290f554] = 24
 scopes pcs     [0xf290f554,0xf290f594] = 64
 dependencies   [0xf290f594,0xf290f598] = 4
Compiled method (c1)    3951  116             java.lang.StringBuilder::toString (17 bytes)
 total in heap  [0xf290f308,0xf290f598] = 656
 relocation     [0xf290f3d4,0xf290f3f4] = 32
 main code      [0xf290f400,0xf290f4e0] = 224
 stub code      [0xf290f4e0,0xf290f530] = 80
 metadata       [0xf290f530,0xf290f53c] = 12
 scopes data    [0xf290f53c,0xf290f554] = 24
 scopes pcs     [0xf290f554,0xf290f594] = 64
 dependencies   [0xf290f594,0xf290f598] = 4
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
qemu: uncaught target signal 6 (Aborted) - core dumped

任何想法将不胜感激。 提前致谢。

0 个答案:

没有答案