STICKY: status of java on raspbian.


35 posts   Page 2 of 2   1, 2
by mcgyver83 » Mon Nov 18, 2013 10:23 am
I need only to run a small gui (jdownloader2) without any other java app, I need a JVM that doesn't need too much resources to show 2D stuff.
Posts: 357
Joined: Fri Oct 05, 2012 11:49 am
by mcgyver83 » Mon Nov 25, 2013 8:50 am
So for not 3D or graphic stuff, only 2D?
Posts: 357
Joined: Fri Oct 05, 2012 11:49 am
by johnniepop » Sat Mar 22, 2014 4:52 pm
Maybe you should consider updating the information, since few days ago the official release of JDK8 for Raspberry Pi was made by Oracle. You can check it out here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html if you haven't already.

Cheers!
Posts: 1
Joined: Sat Mar 22, 2014 4:47 pm
by mcgyver83 » Wed Mar 26, 2014 7:58 am
I'll check!
Any idea about the performances? java7 vs java8?
Posts: 357
Joined: Fri Oct 05, 2012 11:49 am
by Fidelius » Wed Mar 26, 2014 8:15 am
mcgyver83 wrote:Any idea about the performances? java7 vs java8?

Yes, please see this thread : Java ‹ Updating Java on Raspbian from 1.7.0 to 1.8.0
radu1337 wrote:So I started and stopped the Minecraft server with both versions of java:

1.7.0_40-b43 => 73 seconds
1.8.0-b129 => 51 seconds

The 1.8.0 version sometimes even starts under 50 seconds.

And this is so for normal "old" Java programs running on the new JVM 8, i.e. without exploiting new Java 8 features. OK, so Minecraft may not be a typical normal program, so we can't expect such a Java 8 performance increase for all our Java programs. But still, it doesn't use any special features of Java 8.

If however you use some new Java 8 features like its hardware accelerated 2D and 3D operation (JavaFX), you will see performance increases in an order of magnitude. For example the little Raspberry Pi sprite demo I did with Java 8 some time ago isn't possible with Java 7 on the Pi.

Java 8 is very nice indeed and an important update, in particular for our relatively slow Pi which needs any co-processor (GPU) help it can.


When will Raspbian include Java 8 as default? Please see Oracle's announcement a week ago here:
Henrik wrote:I expect to see the Raspberry Pi Linux repository and Raspbian etc images to be updated with Oracle JDK 8 sometime soon.

Henrik - Oracle Java team
Posts: 392
Joined: Wed Jan 01, 2014 8:40 pm
Location: Germany
by xranby » Thu Apr 16, 2015 9:05 am
IcedTea 2.5.5 has been released.
http://blog.fuseyism.com/index.php/2015 ... -released/

This free software OpenJDK release includes Edward Nevills latest ARM32 JIT that will enable boosted performance on all singlecore ARMv6 Raspberry PI systems. The new JIT is also more stable to use on the new multicore ARMv7 Raspberry PI 2 systems.

I hope raspbian can import the new
openjdk-7 7u79-2.5.5-1
package that is found in debian.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby
User avatar
Posts: 535
Joined: Sat Mar 03, 2012 10:02 pm
by plugwash » Fri Apr 17, 2015 12:36 am
I've recently uploaded 7u75-2.5.4-3+rpi1 which has the new jit to.raspbian jessie. I expect 2.5.5 to come through to both wheezy and jessie in-time but i'm currently watching what happens in Debian.

Anyone know how the new jit compares to oracle's propietary one?
Forum Moderator
Forum Moderator
Posts: 3220
Joined: Wed Dec 28, 2011 11:45 pm
by xranby » Mon Jun 08, 2015 3:14 pm
plugwash wrote:I've recently uploaded 7u75-2.5.4-3+rpi1 which has the new jit to.raspbian jessie. I expect 2.5.5 to come through to both wheezy and jessie in-time but i'm currently watching what happens in Debian.

Anyone know how the new jit compares to oracle's propietary one?


There is something missing in the 7u75-2.5.4-3+rpi1 package it looks like the new jit is included in the sourcetree but disabled at runtime. I will have to examine the debian package to see if there is a missing build flag.
I tried to benchmark the new jit on the raspberry pi 1 and compared it with edward nevills reference build where the new jit work
http://openjdk.linaro.org/arm32jit/

I used SciMark 2.0a
http://math.nist.gov/scimark2/download_java.html

7u75-2.5.4-3+rpi raspbian
Composite Score: 2.773446704209826
FFT (1024): 1.6724202743674736
SOR (100x100): 6.285735331895986
Monte Carlo : 0.6632359390308941
Sparse matmult (N=1000, nz=5000): 2.4615385518271573
LU (100x100): 2.78430342392762

Edwards arm32 microJIT
Composite Score: 9.7088881566708
FFT (1024): 6.936563765379863
SOR (100x100): 17.71098303263207
Monte Carlo : 3.3608204434787985
Sparse matmult (N=1000, nz=5000): 9.579045785957213
LU (100x100): 10.957027755906072

oracle jdk8 b132
Composite Score: 23.92186747096536
FFT (1024): 21.518957822414773
SOR (100x100): 48.46466057515884
Monte Carlo : 8.494792808844737
Sparse matmult (N=1000, nz=5000): 20.277227914236352
LU (100x100): 20.8536982341721

The new OpenJDK JIT is 3 times faster compared to the old jit on a raspberry Pi 1
Oracles properitary JIT version is still about 2 times faster compared to the new jit in OpenJDK.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby
User avatar
Posts: 535
Joined: Sat Mar 03, 2012 10:02 pm
by plugwash » Sat Jun 20, 2015 1:56 pm
BTW i've just uploaded 7u79-2.5.5-1~deb8u1+rpi1 , might want to check the jit status with that.
Forum Moderator
Forum Moderator
Posts: 3220
Joined: Wed Dec 28, 2011 11:45 pm
by mcgyver83 » Mon Jun 22, 2015 2:49 pm
So it's available via apt ?
Posts: 357
Joined: Fri Oct 05, 2012 11:49 am