Reliable Java Threading w/ Linux 2.4? 15
mikej asks: "I'm involved in an ongoing saga that attempts to get an application running a large number of Java threads (30-60 sustained, 300+ peak) reliably. My last large hurtle was the context switching delay on the 2.2 kernel, which the 2.4 series has _nicely_ fixed. Now I'm running into problems keeping the JVM alive under threadload. The Sun and IBM java mailing lists and newsgroups are full of complaints concerning threading problems on Linux, and I'm faced with the choice of moving the system to Solaris (something that I very much do not want to do). Has anyone seen a system like this in action, and is there an especially successful combination of SDK/glibc/kernel?"
Which JVM? (Score:1)
You can find some suggestiions for your problems at these two sites: jGuru Linux FAQ [jguru.com] Java on Linux by Nathan Meyers [javalinux.net]
youre using the sun jvm you dolt. (Score:1)
Re:youre using the sun jvm you dolt. (Score:1)
Re:youre using the sun jvm you dolt. (Score:1)
anyway for best results i recommend :
blackdowns JDK 1.2.2FCS on linux 2.2.17pre20 or 18 or 19preX
suns JDK 1.2.2 on solaris with 108940-07 patches
IBMs JDK 1.2.x for AIX with the patches
HPs JDK 1.1.7/8 for HP/UX on 11.0
ive had problems with all the rest...not tried linux 2.4.x though..too alpha for me. 2.2.x with ingos low latency patches beats even 2.4.x i think.
BTW, if you do want to test how heavily a JVM is multithreaded download the swingworker 2 java file from suns site and see if it produces nullpointerexceptions. if it doesnt then the JVM doesnt thread aggressively. on windows swingworker 2 works fine while it barfs on solaris 30-50% of the time. swingworker 3 fixed that bug but swingworker 2 makes a good test tool.
Re:Threading is for weenies. (Score:1)
--
We gave up... (Score:1)
Re:We gave up... (Score:3)
BUT to add to this Sun has done a lot with the new HotSpot server and threading with it is a lot better! With the Blackdown JVM i would consistently have a server (running maybe 15 threads) take down the JVM almost constantly if 'sunwjit' was used! I have seen this problem a lot less with the hotspot server which i am currently running on a slackware 7 system with linux 2.4.0!
One idea might be to setup Solaris 8 on an intel box, or get a Ultra 10 (they are pretty cheap) and see how things work there!
Also, there are many ways you could shoot yourself in the foot with that many threads ? Could GC be a problem ? Are you reusing the threads correctly ? Lots of stuff to think off that could cause problem! You might want to look at "Taming Java Threads" by Allen Holub... good read and could help you!
just my $0.02
Re:We gave up... (Score:1)
Re:youre using the sun jvm you dolt. (Score:1)
Re:the big "S" (Score:1)
Re:youre using the sun jvm you dolt. (Score:1)
Re:the big "S" (Score:1)
Solaris 8 has some GNU stuff -- bash, bzip2,
less, etc.
Ratboy666
Sorry, but (Score:2)
Re:the big "S" (Score:1)
the big "S" (Score:1)
There is direct acountablity and support for bugs.
Java is SUN, and thus runs better on SUN Software
Solaris x86 is faster in most cases than Linux
Solaris is easier to administrate than Linux (this really only is true if you use non-standard releases or multiple releases of Linux)
--
He had come like a thief in the night,