<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Bitstream Vera Sans">Hi all,<br>
<br>
Started as "just because it's possible" running FreeIPA on a
BananaPI or Raspberry PI turned to out to be rather succesfull
and for more than a year I use FreeIPA at home.<br>
<br>
OK, running on small boards like Raspberry PI it never will be
fast but it's surely quick enough to run at small scale.
However, starting FreeIPA became much slower since Fedora 24 and
even more on Fedora 25.<br>
Since Oracle Java is also available for ARM and there's much
written this is much faster I took some time for an experiment.<br>
<br>
Starting FreeIPA using the default installation (running
OpenJDK) starting FreeIPA takes a painfull 15 minutes
(afterward, it all just works fine):<br>
<br>
[root@rpi2 sysconfig]# time ipactl start<br>
Starting Directory Service<br>
Starting krb5kdc Service<br>
Starting kadmin Service<br>
Starting named Service<br>
Starting ipa_memcached Service<br>
Starting httpd Service<br>
Starting ipa-custodia Service<br>
Starting ntpd Service<br>
Starting pki-tomcatd Service<br>
Starting ipa-otpd Service<br>
Starting ipa-dnskeysyncd Service<br>
ipa: INFO: The ipactl command was successful<br>
<br>
real 15m40.638s<br>
user 0m33.095s<br>
sys 0m1.910s<br>
<br>
Now, after installing Oracle Java and changing JAVA_HOME in
/etc/sysconfig/pki-tomcat to:<br>
<br>
#JAVA_HOME="/usr/lib/jvm/jre-1.8.0-openjdk"<br>
JAVA_HOME="/opt/jdk1.8.0_111/jre"<br>
<br>
[root@rpi2 sysconfig]# time ipactl start<br>
Starting Directory Service<br>
Starting krb5kdc Service<br>
Starting kadmin Service<br>
Starting named Service<br>
Starting ipa_memcached Service<br>
Starting httpd Service<br>
Starting ipa-custodia Service<br>
Starting ntpd Service<br>
Starting pki-tomcatd Service<br>
Starting ipa-otpd Service<br>
Starting ipa-dnskeysyncd Service<br>
ipa: INFO: The ipactl command was successful<br>
<br>
real 2m14.823s<br>
user 0m33.400s<br>
sys 0m1.730s<br>
<br>
Wow, I expected some improvement, but this far better than
expected! This leaves a question: what is happening here!!??<br>
<br>
I prefer to use OpenJDK, it 's Open Source and because it's
availabe from the Fedora ARM repositories it is also much more
easy to update. But for now, Oracle is much faster and OpenJDK
from this point of view is a very poor alternative.<br>
Why is OpenJDK so much slower? Is improvement possible? For now
(some "tweaking") of in a future release?<br>
<br>
For the record, I tested these Java versions:<br>
<br>
[root@rpi2 sysconfig]#
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-3.b16.fc25.arm/jre/bin/java
-version<br>
openjdk version "1.8.0_111"<br>
OpenJDK Runtime Environment (build 1.8.0_111-b16)<br>
OpenJDK Zero VM (build 25.111-b16, interpreted mode)<br>
<br>
[root@rpi2 sysconfig]# /opt/jdk1.8.0_111/jre/bin/java -version<br>
java version "1.8.0_111"<br>
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)<br>
Java HotSpot(TM) Client VM (build 25.111-b14, mixed mode)<br>
<br>
<br>
Kind regards,<br>
<br>
Winfried<br>
</font></font>
</body>
</html>