Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: The Volano Report: Which Java platform is fastest, most scalable? A JavaWorld exclusive! - JavaWorld - Mar

The Volano Report: Which Java platform is fastest, most scalable? A JavaWorld exclusive! - JavaWorld - March 1999

Tutorial Details:

The Volano Report: Which Java platform is fastest, most scalable? A JavaWorld exclusive!
The Volano Report: Which Java platform is fastest, most scalable? A JavaWorld exclusive!
By: By John Neffenger
Results of new VolanoMark 2.1 server benchmarks reveal how 10 virtual machines stack up on 6 OSs
peed and scalability are the crucial elements for the successful deployment of a Java server platform, as any Java software vendor can attest. But most administrators possess neither the resources nor the time to test the various server-side Java platforms on the market. JavaWorld therefore turned to Volano and the VolanoMark 2.1 benchmark for answers.
The tests presented in this report look at the performance and network scalability of ten Java virtual machines on six operating systems using a common Intel hardware platform running VolanoMark 2.1. VolanoMark attempts to answer two questions about Java virtual machines used in network server environments -- especially those environments involving a large number of active socket connections:
Is it fast?
Does it scale?
VolanoMark isn't a Java virtual machine test. It's a Java platform test. It allows you to take one set of Java class files and use them to evaluate an entire Java system, including the Java virtual machine, the operating system, the hardware, and the network. Each of the tests in this article was executed on identical Intel hardware, providing an answer to the question our customers ask most -- Which operating system and Java virtual machine will provide the best Java server platform for my Intel box?
Unlike Java support for applets on the client side (where two virtual machines -- those provided by Microsoft and Netscape in their respective Web browsers -- dominate), the leaders in Java on the server side change monthly. Nowhere is that more apparent than for Intel-based systems, which provide dozens of Java VM alternatives. Volano customers can and do switch overnight from one Java virtual machine to another -- or even from one operating system to another -- in order to gain the best performance or network scalability from their Java applications.
What is VolanoMark?
VolanoMark is a 100% Pure Java server benchmark characterized by long-lasting network connections and high thread counts. In this context, long-lasting means the connections last several minutes or longer, rather than just a few seconds. The VolanoMark benchmark creates client connections in groups of 20 and measures how long it takes for the clients to take turns broadcasting their messages to the group. At the end of the test, it reports a score as the average number of messages transferred by the server per second. Its results have accurately predicted the real-world Java performance and scalability of our VolanoChat product line for more than two years.
Furthermore, VolanoMark seems to hit Java platforms where it hurts the most, not only creating a large number of active socket connections and threads but forcing the system to constantly switch among them all. The resulting scores are dominated by several factors:
Whether the Java virtual machine uses a just-in-time compiler (JIT)
Whether the Java virtual machine uses native threads
How many threads per process are supported by the operating system
How many network connections per process are supported by the operating system
How the Java virtual machine maps Java threads onto operating-system threads
VolanoMark 2.1 is available as a free download from Volano's Web site. (See the Resources section below.)
Is it fast?
Each time I run a set of VolanoMark tests against the latest batch of Java virtual machines I find some surprises, and this time is no exception. IBM now dominates VolanoMark performance, whether on Windows NT 4.0 or on its new OS/2 Warp Server for e-business. IBM's Java virtual machine for Windows NT is a remarkable 20 percent faster than the alternatives from Microsoft and Sun. On OS/2 Warp Server it even beats Tower Technology's TowerJ static compiler, showing that it is possible for normal Java virtual machines to surpass native performance, even if that's not yet happening on the same operating system.
Each time I run
a set of VolanoMark
tests I find surprises,
and this time is
no exception.
The performance of Tower Technology's latest TowerJ 2.2.7 is still superb, as should be expected from a static compiler. TowerJ takes Java class files and converts them into C source code, which it then compiles into a native executable program. TowerJ 3.0, due for release in March, can dynamically load Java class files in both their original form and in their native TowerJ-compiled form. But unlike all the other Java virtual machines shown here, TowerJ isn't free. (See Resources for the pricing structure.)
Microsoft's and Sun's Java VMs on Windows both fall right in the middle of the pack, with Novell's NetWare Java VM right behind them. Sun's JDK 1.2 [aka the Java 2 platform --editor] on Solaris executes at about half the speed of the top performers, but once you discover its network scalability scores below, you won't care!
The Blackdown Java-Linux port now has a good just-in-time compiler called TYA, which gives it roughly a 50 percent performance improvement over its score without TYA. The latest release of the FreeBSD Java VM is very stable but suffers in performance from its lack of a just-in-time compiler.
Transvirtual's Kaffe OpenVM holds a lot of promise and even convinced a panel of 21 judges that it's the Best Virtual Machine . Unfortunately, that's not a conclusion I can share based on my own tests. For more than a year, I have been unable to run VolanoMark with Kaffe on several different operating systems. I'm still hopeful, however, since Kaffe holds the best promise of providing Java support for some non-Intel Linux systems, such as those from Cobalt Networks.
Run rules
The performance tests were executed with the following commands on a local loopback connection, using the heap size options shown below where possible:
Server:
java -ms8m -mx64m COM.volano.Main
Client:
java -ms8m -mx64m COM.volano.Mark -count 100
See the COM.volano.Mark command synopsis for a complete description of all options.
The operating system was rebooted before each set of tests for a particular Java virtual machine, and the first test result was discarded. The server side was restarted before each run of the client benchmark. The final score is the average of the best two out of three subsequent results.
Results
Scores are the throughput of the server in messages per second. Bigger numbers are faster. See the " Environments " section for details on the hardware platform, operating systems, and Java virtual machine environments.
Java platform
Score
IBM JDK 1.1.7 OS/2
Tower TowerJ 2.2.7 Linux
IBM JDK 1.1.7 Windows
Microsoft SDK 3.1 Windows
Sun JDK 1.2 Windows
Novell JDK 1.1.5 NetWare
Sun JDK 1.2 Solaris
Blackdown JDK 1.1.7 Linux
JDK 1.1.7 FreeBSD
Transvirtual Kaffe 1.0 Linux
1857
alt="1817"> 1817
alt="1660"> 1660
alt="1412"> 1412
alt="1344"> 1344
alt="1218"> 1218
912
alt="448"> 448
alt="166"> 166
height="10" src="/javaworld/jw-03-1999/volanomark/black.gif" alt="0">
Figure 1. VolanoMark 2.1.2 local performance test, measuring throughput in messages per second.
Java platform
Operating system
Results
Score
IBM JDK 1.1.7 OS/2
OS/2 Warp Server for e-business
1832, 1867, 1847
1857
Tower TowerJ 2.2.7 Linux
Red Hat Linux 5.2 Intel
1820, 1801, 1814
1817
IBM JDK 1.1.7 Windows
Windows NT Workstation 4.0
1652, 1664, 1656
1660
Microsoft SDK 3.1 Windows
Windows NT Workstation 4.0
1413, 1407, 1411
1412
Sun JDK 1.2 Windows
Windows NT Workstation 4.0
1344, 1342, 1344
1344
Novell JDK 1.1.5 NetWare
NetWare 5
1216, 1216, 1220 a
1218
Sun JDK 1.2 Solaris
Solaris 7 Desktop Intel Platform Edition
915, 909, 908
912
Blackdown JDK 1.1.7 Linux
Red Hat Linux 5.2 Intel
447, 447, 449
448
JDK 1.1.7 FreeBSD
FreeBSD 2.2.8-RELEASE
166, 166, 165
166
Transvirtual Kaffe 1.0 Linux
Red Hat Linux 5.2 Intel
SocketException b
---
Table 1. VolanoMark 2.1.2 local performance test, measuring throughput in messages per second. The final score is the average of the best two out of three results. All tests ran identical copies of VolanoMark 2.1.2 on identical hardware.
Notes:
Received "java.net.SocketException: Bad file number" 36 times on the third run, but the test completed successfully.
Failed with "java.net.SocketException: Unimplemented socket option" when the server called Socket.setSoTimeout . Although the latest Kaffe build supports socket timeouts, it still fails to run VolanoMark.
Does it scale?
The fundamental problems with Java performance for Volano's products were solved back in the fall of 1997 with the release of Sun's JDK 1.1.3 on Solaris 2.6 and Microsoft's Internet Explorer 3.0 Java VM for Windows. Granted, there's no such thing as too fast, but even FreeBSD and Linux have Java support fast enough for all but the most demanding Java server applications.
Much more interesting is what happens to all that speed when we increase the number of simultaneous connections to the Java application. In my previous VolanoMark article for JavaWorld, I tested a dozen Java platforms for their performance in handling 100 to 900 concurrent connections. This time I pushed that number up to 2,100 connections. As you can see from the table below, there's still plenty of room for improvement.
Only two out of the ten Java platforms even survived the test, and only one survived without errors. Sun's JDK 1.2 on Solaris 7, still an early access release, finally shows it's possible to handle large numbers of connections to a single Java application without destroying performance (and without any errors). In fact, Sun's performance at 2,100 connections is only 23 percent below its performance at 300 connections!
Only two out of the
ten Java platforms
even survived the test,
and only


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
The Volano Report: Which Java platform is fastest, most scalable? A JavaWorld exclusive! - JavaWorld - Mar

View Tutorial:
The Volano Report: Which Java platform is fastest, most scalable? A JavaWorld exclusive! - JavaWorld - Mar

Related Tutorials:

Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.