Viador, Inc one of Computer System's key ISVs is having a major performance issue with JDK 1.1.7 that's preventing the release of their java application
on Solaris. A test case (which is included) was ran on both the Ultra 5 (333 Mhz CPU, Sol 2.6, JDK 1.1.7_08 native threads), and on Windows NT 4.0 (233 Mhz CPU, JDK 1.1.7 reference), and found that the communication turn around time between Java and C is very slow on SUN compared with NT.
Attached is a small test program (source included) which I used to demonstrate
the performance differences between NT and SUN.
Test.class is a java application which will bring up Proc.exe (C executable)
during runtime. It will then loop1000 times and keep sending request to
Proc.exe. Whatever request Proc.exe gets from the STDIN, it will print a
hard coded string to the STDOUT. Test.class will capture the string printed
by Proc.exe and print it at the console.
When I ran this test on both NT and SUN with jdk117, I found that
that NT took only 21 secs to finish 1000 loops while Sun Ultra 5 took
17 mins to do the same thing. Yes! And output of truss command shows no
I/O problems.
The command to start this program is as follow:
UNIX:
java -classpath /lib/classes.zip:. Test
NT
java -classpath/jdk117/lib/classes.zip;. Test
on Solaris. A test case (which is included) was ran on both the Ultra 5 (333 Mhz CPU, Sol 2.6, JDK 1.1.7_08 native threads), and on Windows NT 4.0 (233 Mhz CPU, JDK 1.1.7 reference), and found that the communication turn around time between Java and C is very slow on SUN compared with NT.
Attached is a small test program (source included) which I used to demonstrate
the performance differences between NT and SUN.
Test.class is a java application which will bring up Proc.exe (C executable)
during runtime. It will then loop1000 times and keep sending request to
Proc.exe. Whatever request Proc.exe gets from the STDIN, it will print a
hard coded string to the STDOUT. Test.class will capture the string printed
by Proc.exe and print it at the console.
When I ran this test on both NT and SUN with jdk117, I found that
that NT took only 21 secs to finish 1000 loops while Sun Ultra 5 took
17 mins to do the same thing. Yes! And output of truss command shows no
I/O problems.
The command to start this program is as follow:
UNIX:
java -classpath /lib/classes.zip:. Test
NT
java -classpath/jdk117/lib/classes.zip;. Test
- duplicates
-
JDK-4118303 (process) java.lang.UNIXProcess always waits for 1 second.
-
- Resolved
-