powered by Jive Software

Java Threads

Greetings all,

This isn’'t a SMACK question as much as a Java question.

I have written a program that listens for packets and logs them to a SQL server. The program works fine, but on my Debian server it spawns ~ 7 threads and can handle large loads. On my Slackware server I only get one thread, and under heavy load it breaks. Can anyone point me the a FAQ / Document or anything that may help? Exactly the same code on both platforms (no thread programming), both are using Blackdown java 1.4.2 and I count a “thread” by when i use “ps -aux” I see multiple entries.

Thanks in advance for any help.

Adam

Adam,

Why Blackdown? I’‘d recommend using the Sun VM, as it’'s very stable on Linux and should avoid crashes. The Linux 2.6 kernel also does better than 1.4 for Java due to a new threading model.

Regards,

Matt

Why Blackdown? I’'d recommend using the Sun VM, as

it’'s very stable on Linux and should avoid crashes.

The Linux 2.6 kernel also does better than 1.4 for

Java due to a new threading model.

Since blackdown has the same license as sun I was under the impression that Blackdown was optimized for Linux, where the Sun VM just ran under linux. I’'ll check my linux kernel versions to see if there is a difference and let you know. Thanks!

-AW-