[EMAIL PROTECTED] wrote:

>   I am developing a network performance benchmarking program with java. I
> have resently intalled jdk1.1.7 in my redhat5.1but i am getting very slow
> prefrormance. i.e. a for loop from 0 to 3x10^7 takes about 10 secs while
> when using vcafe in windows95 itneeds about 1 sec on the same machine. I am
> doing something wrong ? What cani do to maximize the performace of my linux
> when running java?

jdk 1.1.7 on linux does not include a JIT compiler. Either get tya:
ftp://gonzalez.cyberus.ca/pub/Linux/java/  , or get jdk 1.2 (which has a JIT
built in). This will make your for loop much faster ;-)

Also, make sure you are using the latest version of GlibC 2.0, as this fixes
several problems in Java. The version that ships with Redhat 5.1 is rather old.
Depending on what sort of java code you are running, you may also see
performance increases from using native threads rather than green threads.

regards

  [ bryce ]



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to