Sun has posted a guide to J2SE 1.4 performance boosts. J2SE 1.4 has a significant performance improvement compared to 1.3.1 in many areas including Reflection, JNI, Business Transactions, EJB, Servlets, IM, and more.
- Posted by: Kumar Mettu
- Posted on: February 07 2002 22:47 EST
Here is summary of performance comparision between 1.4 and 1.3.1
Reflective Method Invocation - 20 Factor
JNI Method Invocation - 74%
Business Transactions - 58%
Instant Messaging - 73%
Its worth moving to J2SE1.4.
One major improvement is 64-Bit JVM Support which solves limitation of Hotspot with 4GB memory problem.
Read more at http://java.sun.com/j2se/1.4/performance.guide.html.
- J2SE1.4 Performance and Scalability Guide by Ian Butcher on February 08 2002 10:46 EST
- J2SE1.4 Performance and Scalability Guide by Kumar Mettu on February 08 2002 12:20 EST
- J2SE1.4 Performance and Scalability Guide by Angel Municio on February 08 2002 19:44 EST
- J2SE1.4 Performance and Scalability Guide by Ferhat SAVCI on February 09 2002 15:27 EST
- J2SE1.4 Performance and Scalability Guide by Web Master on February 11 2002 13:07 EST
- J2SE1.4 Performance and Scalability Guide by Andr? Augusto Oliveira Arag?o on February 12 2002 15:05 EST
- re: will try again when we get to GA on 1.4. Anyone else got any by First Last on February 14 2002 01:45 EST
re: will try again when we get to GA on 1.4. Anyone else got any by Michael Szlapa on February 14 2002 09:23 EST
- re: will try again when we get to GA on 1.4. Anyone else got any by Ferhat SAVCI on February 21 2002 10:01 EST
- re: will try again when we get to GA on 1.4. Anyone else got any by Michael Szlapa on February 14 2002 09:23 EST
- J2SE1.4 Performance and Scalability Guide by florin g on February 08 2002 15:58 EST
- J2SE1.4 Performance and Scalability Guide by Travis Kay on February 09 2002 18:55 EST
OK I bought it. I just installed RC-1 on my Windows 2k machine and adjusted my path and JAVA_HOME and ran JBoss+Tomcat and the performance was horrible. I discovered that the 1.4 JVM was hogging 140mb or memory compared to the 1.3.1 which is currently using around 21mb. It also shot my CPU utilization to 100% (not unusual) but it just stayed there !
I will try again when we get to GA on 1.4. Anyone else got any anacdotal evidence?
I did some tests with Tomcat and definitely its not a memory hog as you mentioned. Is there any thing specific about your applition thats deployed?
You need to consider that to take full advantage of many of the performance enhancements, you must rewrite your applications to use the new packages (nio, etc...).
In J2EE since I/O opertaions are containers responsibility we(J2EE Developers) need not rewrite our applications to take advantage of NIO.
I've seen the likes of it with 1.2.1, 1.3 and 1.3.1 on Solaris an Windows. There's some bad blood between Hotspot Client and Tomcat. Hotspot Server seemingly doesn't have this issue, and no, I was never able to regenerate the situation consistently. RMI calls in the servlets and Oracle's JDBC drivers seem to make it more probable, though. Sometimes the system will work for a long time before it degenerates. Usually, everything goes back to normal after a restart.
well, jdk 1.4 rc1 works for me. if it works so bad for you i strongly suggest you to send a detailed bug report to sun:
I downloaded the 1.4 RC and installed on a Slackware 8 Linux box. I use it to develop applications using Forte4J. The performance is really good. Is noticeable the performance boost with this application. I made no tests, however, of performance with Tomcat.
I am using J2SE SDK 1.4.0-b-20 (RC) on
- RedHat Linux 7.1
- Windows NT 4.0 SP6
with 128 MB RAM.
It's performance is excellent on Linux and fine on
Windows. I am running Tomcat as well as NetBeans IDE.
Have a good day!
Are you saying that your app is performing faster on Linux than NT in the same HW configuration ?
That would be very interesting and nice to hear. So far I've heard opposite opinions (NT java being faster), the difference being attributed to differences in thread model. Maybe 1.4 made improvements in this area?
No, from what I see, Sun's JVM still works faster on NT/W2K than it does on Linux. This is funny, as all other multi platform JVMs (IBM's, Rockit) run faster on Linux than they do on Windows for most applications (the application behaviour is the most important factor in JVM speed).
I deployed Resin with jdk1.4rc and JDBC runs like a whild animal. (P4 1.8, 1G RAM, 64MB jvm, SCSI 160, Redhat 7.2, ).
I switched my install of NetBeans 3.3 to use 1.4, now it
runs noticeably faster and uses 30 megs less ram (from 120~ to 85~) I'm happy with it =).