Seeking guidance to install OpenJDK on AIX 7.1
Volker Simonis
volker.simonis at gmail.com
Tue Dec 8 09:03:32 UTC 2015
Hi Thomas,
thanks for the hint. From the hs_err file:
rlimit: STACK 32768k, CORE 1048575k, NPROC 262144, NOFILE infinity, AS
infinity, DATA 131072k
the limits for STACK seem to be fine, but DATA is really small with 130mb.
@Russ: could you please try setting it to infinity?
On Tue, Dec 8, 2015 at 9:49 AM, Thomas Stüfe <thomas.stuefe at gmail.com>
wrote:
> Hi Volker, Russ,
>
> also, his limits for stack and data may be too small, especially the
> former. So, please set both to infinite.
>
> Also, could you send the mails in pure text format, this would make them
> easier to read.
>
> Thanks!
>
> ..Thomas
>
> On Tue, Dec 8, 2015 at 9:35 AM, Volker Simonis <volker.simonis at gmail.com>
> wrote:
>
>> Hi Russ,
>>
>> from a quick look at the hs_err files I saw that you have
>> JAVA_HOME=/usr/java8_64 in your environment. Can you please unset it and
>> try once again.
>>
>> If it still not works, you can try with another user (i.e. not 'root')
>> and you can try to unset LIBPATH/LD_LIBRARY_PATH if you have set them.
>>
>> Also the "-cp ~/Java HelloWorld" is just a small HelloWorld test program
>> I have in my home directory, so that part can't work for you, unless you
>> have the same class in the same location.
>>
>> Regards,
>> Volker
>>
>>
>> On Mon, Dec 7, 2015 at 8:23 PM, Russ Hankey <rhankey at us.ibm.com> wrote:
>>
>>> Sure thing -- just for reference, I'm running as root, and all I've done
>>> is bzip2 to decompress, and then untar both binaries in the /usr/download/
>>> directory
>>>
>>> In retrospect, v7 is throwing a fatal error and a core dump, v8 is
>>> complaining about memory. The results are the same whether or not I
>>> include the -cp ~/Java/HelloWorld portion
>>>
>>> v7: v8:
>>>
>>> # ./openjdk1.7.0-ppc-aix-port-b03/bin/java -showversion -cp
>>> ~/Java/HelloWorld
>>>
>>> [error occurred during error reporting , id 0xe0000000]
>>>
>>> #
>>> # A fatal error has been detected by the Java Runtime Environment:
>>> #
>>> # SIGILL (0x4) at pc=0x0000000000000000, pid=16777308, tid=258
>>> #
>>> # JRE version: 7.0
>>> # Java VM: OpenJDK 64-Bit Server VM (23.2-b04 mixed mode - )
>>> # Problematic frame:
>>> # j java.lang.Throwable.<clinit>()V+3
>>> #
>>> # Core dump written. Default location: /usr/download/core or
>>> core.16777308 (max size 1048575 kB). To ensure a full core dump, try
>>> "ulimit -c unlimited" before starting Java again
>>> #
>>> # An error report file with more information is saved as:
>>> # /usr/download/hs_err_pid16777308.log
>>> #
>>> # If you would like to submit a bug report, please visit:
>>> # http://bugreport.sun.com/bugreport/crash.jsp
>>> #
>>> IOT/Abort trap(coredump)
>>>
>>>
>>> # ./openjdk_8u40_b13-aix-ppc64/bin/java -showversion -cp
>>> ~/Java/HelloWorld
>>> #
>>> # There is insufficient memory for the Java Runtime Environment to
>>> continue.
>>> # Native memory allocation (malloc) failed to allocate 304 bytes for
>>> AllocateHeap
>>> # An error report file with more information is saved as:
>>> # /tmp/hs_err_pid16711832.log
>>>
>>> # svmon -G
>>> size inuse free pin virtual
>>> mmode
>>> memory 16777216 2269594 14507622 1309066 1533246
>>> Ded
>>> pg space 131072 3766
>>>
>>> work pers clnt other
>>> pin 748880 0 3130 557056
>>> in use 1533246 0 736348
>>>
>>> PageSize PoolSize inuse pgsp pin virtual
>>> s 4 KB - 1517274 3766 732970 780926
>>> m 64 KB - 47020 0 36006 47020
>>> L 16 MB - 0 0 0 0
>>> S 16 GB - 0 0 0 0
>>>
>>>
>>>
>>> ------------------------------
>>> *Russ Hankey*
>>> ETL/Data Specialist: DataStage and Watson Explorer
>>> Enterprise Services Transformation & Operations
>>>
>>> Phone: 720-395-1670
>>> Mobile: 269-598-9297
>>> E-mail: *rhankey at us.ibm.com* <YOUR+EMAIL>
>>> Location: Portage, MI USA
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> From: Volker Simonis <volker.simonis at gmail.com>
>>> To: Russ Hankey/Southfield/IBM at IBMUS
>>> Cc: "ppc-aix-port-dev at openjdk.java.net" <
>>> ppc-aix-port-dev at openjdk.java.net>
>>> Date: 12/07/2015 01:56 PM
>>> Subject: Re: Seeking guidance to install OpenJDK on AIX 7.1
>>> ------------------------------
>>>
>>>
>>>
>>> That's strange! I've just tried both versions on my AIX 7.1 machine and
>>> both seem to work:
>>>
>>> ./openjdk_8u40_b13-aix-ppc64/bin/java -showversion -cp ~/Java HelloWorld
>>> openjdk version "1.8.0-internal"
>>> OpenJDK Runtime Environment (build
>>> 1.8.0-internal-jvmtests_2014_10_09_22_19-b00)
>>> OpenJDK 64-Bit Server VM (build 25.40-b13, mixed mode)
>>>
>>> HelloWorld
>>>
>>> ./openjdk1.7.0-ppc-aix-port-b03/bin/java -showversion -cp ~/Java/
>>> HelloWorld
>>> openjdk version "1.7.0-internal"
>>> OpenJDK Runtime Environment (build
>>> 1.7.0-internal-jvmtests_2012_12_15_23_40-b00)
>>> OpenJDK 64-Bit Server VM (build 23.2-b04, mixed mode)
>>>
>>> HelloWorld
>>>
>>> Can you please send me the hs_err file which was generated (if there is
>>> one). Just put my personal address on cc as the mailing list may strip
>>> attachments.
>>>
>>>
>>> On Mon, Dec 7, 2015 at 7:33 PM, Russ Hankey <*rhankey at us.ibm.com*
>>> <rhankey at us.ibm.com>> wrote:
>>> Sure thing -- I don't mind having this conversation on the -dev mailing
>>> list. Also, I'm trying to get ElasticSearch's LogStash up and running on
>>> an AIX 7.1 server, and they've recommended installing OpenJDK to run LS
>>> instead of the IBM JDK.
>>>
>>> I'm going to try the daunting task of building JDK 8 on our server --
>>> I'm reviewing the documentation, and hopefully following it step by step
>>> will work well enough on our server. As you point out, the trouble is
>>> running around getting all of the dependencies installed.
>>>
>>> I did try the older outdated binaries -- but when I attempt to run
>>> java -showversion I get an insufficient memory error (occurring with both
>>> v7 and v8)
>>>
>>> # There is insufficient memory for the Java Runtime Environment to
>>> continue.
>>> # Native memory allocation (malloc) failed to allocate 120 bytes for
>>> AllocateHeap
>>>
>>> svmon shows that we have nearly 14GB of memory available yet, so I don't
>>> think that's really the issue.
>>>
>>> I even tried bin/java -Xms1024M -Xmx2048M -showversion but still
>>> the same error.
>>>
>>> I can't help but think maybe I'm missing an environment variable
>>> setting, or something.
>>>
>>> ------------------------------
>>> *Russ Hankey*
>>> ETL/Data Specialist: DataStage and Watson Explorer
>>> Enterprise Services Transformation & Operations
>>>
>>> Phone: *720-395-1670* <720-395-1670>
>>> Mobile: *269-598-9297* <269-598-9297>
>>> E-mail: *rhankey at us.ibm.com* <YOUR+EMAIL>
>>> Location: Portage, MI USA
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> From: Volker Simonis <*volker.simonis at gmail.com*
>>> <volker.simonis at gmail.com>>
>>> To: Russ Hankey/Southfield/IBM at IBMUS
>>> Cc: "*ppc-aix-port-dev at openjdk.java.net*
>>> <ppc-aix-port-dev at openjdk.java.net>" <
>>> *ppc-aix-port-dev at openjdk.java.net* <ppc-aix-port-dev at openjdk.java.net>>
>>> Date: 12/07/2015 01:15 PM
>>> Subject: Re: Seeking guidance to install OpenJDK on AIX 7.1
>>>
>>> ------------------------------
>>>
>>>
>>>
>>> First of all I've just realized that you initial message went to
>>> *ppc-aix-port-dev-owner at openjdk.java.net*
>>> <ppc-aix-port-dev-owner at openjdk.java.net>instead of
>>> *ppc-aix-port-dev at openjdk.java.net* <ppc-aix-port-dev at openjdk.java.net>.
>>> I hope you don't mind if we continue this thread on the ppc-aix-port-dev
>>> mailing list. I think it could be interesting for others as well and I
>>> don't want to repeat myself too often :)
>>>
>>> On Mon, Dec 7, 2015 at 6:13 PM, Russ Hankey <*rhankey at us.ibm.com*
>>> <rhankey at us.ibm.com>> wrote:
>>> Thank you! That gives me another route to try ... When I went to
>>> *http://cr.openjdk.java.net/~simonis/ppc-aix-port/*
>>> <http://cr.openjdk.java.net/~simonis/ppc-aix-port/>I saw the two links
>>> to the bz2 files for 1.7.0 for aix/linux, and 8u40 linux, that's why I
>>> chose the aix/linux file. I think it was the "aix" in the filename that
>>> threw me off!
>>>
>>> I didn't scan down two more paragraphs to notice the AIX/PPC64 links you
>>> sent! Sorry about that ...
>>>
>>> I'm not that familiar with the bootstrap process, but I'll see if I can
>>> follow along with the instructions posted out there and let you know if I
>>> run into any additional obstacles.
>>>
>>> I found a broken link to the JDK 8 build readme ...
>>> *http://hg.openjdk.java.net/jdk8/build/raw-file/tip/README-builds.html*
>>> <http://hg.openjdk.java.net/jdk8/build/raw-file/tip/README-builds.html> Is
>>> there a better resource for build instructions?
>>>
>>>
>>> The *http://hg.openjdk.java.net/jdk8/build*
>>> <http://hg.openjdk.java.net/jdk8/build>repository doesn't exist any
>>> more.
>>>
>>> Is this source of build/readme information more up-to-date and accurate?
>>> *http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html*
>>> <http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html>
>>>
>>>
>>> Yes, that's the general build README for jdk8 (but it doesn't cover
>>> AIX).
>>> There's an updated version for jdk9 at
>>> *http://hg.openjdk.java.net/jdk9/jdk9/raw-file/tip/README-builds.html*
>>> <http://hg.openjdk.java.net/jdk9/jdk9/raw-file/tip/README-builds.html>
>>>
>>> The following link:
>>>
>>> *http://hg.openjdk.java.net/ppc-aix-port/jdk7u/raw-file/tip/README-ppc.html*
>>> <http://hg.openjdk.java.net/ppc-aix-port/jdk7u/raw-file/tip/README-ppc.html>
>>> contains some AIX-specific stuff from which for you the build
>>> dependencies will be the most interesting.
>>>
>>> Assuming you've installed all the build dependencies and created a fresh
>>> output directory outside of the source tree, you should be able to build
>>> jdk 8 or 9 from within the new output directory with the following two
>>> commands:
>>>
>>> bash <path_to_jdk8_or_9_sources>/configure
>>> --with-boot-jdk=<path_to_boot_jdk> --with-jvm-variants=server
>>> --with-cups-include=/opt/freeware/include
>>> make images
>>>
>>> If it's not a too big secret, it would be interesting to know what do
>>> you want to use the OpenJDK for?
>>>
>>> Regards,
>>> Volker
>>>
>>> Thanks so much!
>>>
>>> -Russ
>>>
>>> ------------------------------
>>> *Russ Hankey*
>>> ETL/Data Specialist: DataStage and Watson Explorer
>>> Enterprise Services Transformation & Operations
>>>
>>> Phone: *720-395-1670* <720-395-1670>
>>> Mobile: *269-598-9297* <269-598-9297>
>>> E-mail: *rhankey at us.ibm.com* <YOUR+EMAIL>
>>> Location: Portage, MI USA
>>>
>>>
>>>
>>>
>>>
>>>
>>> From: Volker Simonis <*volker.simonis at gmail.com*
>>> <volker.simonis at gmail.com>>
>>> To: Russ Hankey/Southfield/IBM at IBMUS
>>> Cc: "*ppc-aix-port-dev-owner at openjdk.java.net*
>>> <ppc-aix-port-dev-owner at openjdk.java.net>" <
>>> *ppc-aix-port-dev-owner at openjdk.java.net*
>>> <ppc-aix-port-dev-owner at openjdk.java.net>>
>>> Date: 12/07/2015 09:10 AM
>>> Subject: Re: Seeking guidance to install OpenJDK on AIX 7.1
>>>
>>> ------------------------------
>>>
>>>
>>>
>>>
>>> Hi Russ,
>>>
>>> first of all, thanks for your interest in our port.
>>>
>>> Generally, our project, as all the other OpenJDK project, doesn't
>>> provide binaries. You have to build it yourself. However, to ease the
>>> step of building (and because the IBM J9 JDK didn't qualify as a
>>> drop-in replacement of the bootstrap JDK) we provided two JDK binaries
>>> which could be used to bootstrap the build on AIX. Please notice that
>>> these binaries are old, not very well tested on not supported at all.
>>> Their only purpose is to enable other developers to bootstrap a recent
>>> version of OpenJDK on AIX.
>>>
>>> That said, I think you downloaded the wrong version (notice the
>>> "linux" in the file name
>>> "openjdk1.7.0-ppc-aix-port-linux-ppc64-b03.tar.bz2"). The following
>>> two files contain the corresponding bootstrap OpenJDK versions 7 and 8
>>> and they should both run on AIX 7:
>>>
>>>
>>> *http://openjdkpower.osuosl.org/OpenJDK/download/bootstrap/openjdk1.7.0-ppc-aix-port-aix-ppc64-b03.tar.bz2*
>>> <http://openjdkpower.osuosl.org/OpenJDK/download/bootstrap/openjdk1.7.0-ppc-aix-port-aix-ppc64-b03.tar.bz2>
>>>
>>> *http://openjdkpower.osuosl.org/OpenJDK/download/bootstrap/openjdk_8u40_b13-aix-ppc64.tar.bz2*
>>> <http://openjdkpower.osuosl.org/OpenJDK/download/bootstrap/openjdk_8u40_b13-aix-ppc64.tar.bz2>
>>>
>>> You can find these links together with the links to our nightly builds
>>> at:
>>>
>>> *http://cr.openjdk.java.net/~simonis/ppc-aix-port/*
>>> <http://cr.openjdk.java.net/~simonis/ppc-aix-port/>
>>>
>>> A terribly outdated build instruction for OpenJDK 7 on AIX can be
>>> found in the Mercurial repository at:
>>>
>>>
>>> *http://hg.openjdk.java.net/ppc-aix-port/jdk7u/raw-file/tip/README-ppc.html*
>>> <http://hg.openjdk.java.net/ppc-aix-port/jdk7u/raw-file/tip/README-ppc.html>
>>>
>>> Nowadays, the new, configure-based build system of OpenJDK 8 and 9
>>> should easily guide you trough the build process, although the old
>>> document may still be valuable with respect to the required build
>>> dependencies on AIX.
>>>
>>> Should you have any further questions, please don't hesitate to ask.
>>>
>>> Regards,
>>> Volker
>>>
>>> On Fri, Dec 4, 2015 at 8:41 PM, Russ Hankey <*rhankey at us.ibm.com*
>>> <rhankey at us.ibm.com>> wrote:
>>> > Hi --
>>> >
>>> > I'm attempting to install OpenJDK on AIX 7.1, and I'm not sure I have
>>> the
>>> > right starting point. Is it as straightforward as downloading and
>>> > extracting the port from
>>> >
>>> *http://openjdkpower.osuosl.org/OpenJDK/download/bootstrap/openjdk1.7.0-ppc-aix-port-linux-ppc64-b03.tar.bz2?*
>>> <http://openjdkpower.osuosl.org/OpenJDK/download/bootstrap/openjdk1.7.0-ppc-aix-port-linux-ppc64-b03.tar.bz2?>
>>> >
>>> > I've done that, but the java executable in the resulting directory
>>> still
>>> > doesn't seem to want to execute (even as root with appropriate
>>> permissions).
>>> >
>>> > ksh: bin/java: 0403-006 Execute permission denied.
>>> >
>>> > Any guidance / tips would be greatly appreciated!
>>> >
>>> > Thanks,
>>> >
>>> > -Russ
>>> >
>>> >
>>> > ________________________________
>>> > Russ Hankey
>>> > ETL/Data Specialist: DataStage and Watson Explorer
>>> > Enterprise Services Transformation & Operations
>>> >
>>> > Phone: *720-395-1670* <720-395-1670>
>>> > Mobile: *269-598-9297* <269-598-9297>
>>> > E-mail: *rhankey at us.ibm.com* <rhankey at us.ibm.com>
>>> > Location: Portage, MI USA
>>> >
>>> >
>>> >
>>> >
>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/attachments/20151208/90a00f67/attachment-0001.html>
More information about the ppc-aix-port-dev
mailing list