Reliable Java Threading w/ Linux 2.4?
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?"
You can find some suggestiions for your problems at these two sites: jGuru Linux FAQ Java on Linux by Nathan Meyers
which has known threading issues. switch to blackdown..ive been using it for 450 threads sustained with no problems. use the FCS JDK 1.2.2 or 1.3
Real Men don't use Java...
--
"It's tough to be bilingual when you get hit in the head."
I had the same battle that you are having _before_ 2.4 and we decided that the money being spent on trying to fix the problem was better spent buying the big "S". So we did - the application runs very nicely on it as well. Do some quick math - how much are you spending trying to get it to work on Linux and how much will "S" run you - and let the dollars and sense decide for you.
Well, direct accountability for bugs means nothing to me in this case. I can't argue that Java doesn't run better on Sun's platform, but I can guarantee that I'm reluctant to be pushed around like that. That kind of behavior is why I started using linux so long ago in the first place. My benches have shown Linux being considerably faster for what we're doing, and Solaris has been a giant pain in the ass to run. I have to install about 18 different gnu packages to get any kind of useful behavior out of a solaris machine. Frustrating.
Ideology breeds Hypocrisy. Just how much is up to you.
Just to let you know...
Solaris 8 has some GNU stuff -- bash, bzip2,
less, etc.
Ratboy666
Just another "Cubible(sic) Joe" 2 17 3061
Vintage computer games and RPG books available. Email me if you're interested.
It sounds more like you just don't know how to use Solaris, and you are too lazy to learn. GNU tools are superfluos on a Solaris System. Solaris has many flaws as an OS (or at least up to 2.6, I haven't ran 7 much or 8 at all), but kernel support for multithreading works fine since at least 2.5. You hit a flaw in linux, and yet you still want to use it. Its the whole sharp tool debate. You're doing surgery, and you've got access to a scalpel, but you prefer pocket knives cause normally you whittle. Linux makes alot of sense for some applications (e.g. imo they are good development boxes, as they are fairly cheap to upgrade), but when you want processing power (which is presumable why a program would be cranking out threads at that rate, because threads for threading sake is stupid, even for java programmers), don't be afraid to get a better tool (in this case a sun box, preferably not on x86 hardware, but maybe you guys are short on cash). Solaris machines should be stable with loads into the 80's and 90's.
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,
Si hoc legere scis nimium eruditionis habes