>>>>> "Volker" == Volker  <[EMAIL PROTECTED]> writes:

    Volker> 4 Fragen, die ich gerne loswerden will:

Please talk English here.

    Volker> 1)

    Volker> Ich habe Blackdown Java 2 SDK Version 1.2.2 FCS auf einer
    Volker> Cobalt Maschine mit RedHat Linux (Kernel 2.2.14C11,
    Volker> glibc-2.1.3) installiert, um einen Chatserver darunter zu
    Volker> betreiben (im GREEN-Mode mit Borlands JIT).

    Volker> Am Anfang läuft das Ganze auch ganz gut, aber nach 1-2
    Volker> Tagen macht es "Bumm" und der JAVA-Prozess ist auf einmal
    Volker> verschwunden.  Wiederholte Versuche brachten immer wieder
    Volker> das gleiche Ergebnis! Auch bei Blackdown 1.3-j2sdk ist
    Volker> dies leider so!

Do you get a stack trace when it crashes?

    Volker> Ich habe bereits die Blackdown SDK Version 1.2.2 Release
    Volker> Candidate 4 unter FreeBSD im LINUX emul mode eingesetzt
    Volker> und war sehr zufrieden: Dort trat das Problem nicht auf! 
    Volker> Hat jemand eine Idee, woran das Ganze liegen kann? Habe
    Volker> alle möglichen Kombis mit -ms etc, durch, ohne Erfolg!

Have you tried RC4 on the Linux machine?  Does it crash too?

    Volker> 2)

    Volker> Mittlerweilen setze ich "IBM Java 1.1.8" ein, die läuft
    Volker> erstaunlicherweise stabil - im Gegensatz zur Version 1.3.0
    Volker> von IBM Java, die das gleiche Phänomen aufweist wie
    Volker> Blackdown Java 2 SDK Version 1.2.2 FCS und 1.3-j2sdk!

    Volker> Allerdings kann ich bei IBM 1.1.8 nicht ganz
    Volker> nachvollziehen, warum dort z.B. 160 JRE Prozesse mit PS zu
    Volker> sehen sind, wenn etwa nur 8 Leute am Sonntag morgen
    Volker> chatten???

    Volker> Weiss jd. vielleicht dazu Rat? Kann es sein, dass hier
    Volker> JRE-Prozesse nicht beendet werden?

IBM uses a thread pool, i.e. OS threads don't die immediately after
their corresponding Java threads.  The OS threads can be reused for
new Java threads.  This scheme has some drawbacks for applications
that at one point need lots of threads at one point but a only few
threads later.

    Volker> 3)

    Volker> Unter http://www.volano.com/linux.html findet sich
    Volker> folgender Hinweis: "Earlier notes about running Java on
    Volker> Linux can be found here, including details on how to
    Volker> rebuild the Linux kernel and thread library to support a
    Volker> high number of threads. These steps are no longer required
    Volker> if you use B l a c k d o w n J2SE 1.2.2 with the Inprise
    Volker> just-in-time compiler on Red Hat Linux 6.2 (or its
    Volker> equivalent), as described below."

    Volker> Gilt das nur für den GREEN-MODE?

Yes.

    Volker> Oder warum ist in der Doku zu Blackdown J2SE 1.2.2
    Volker> folgendes zu lesen:

    Volker> <<<<<
    Volker> Words of wisdom:
    Volker> ================

    Volker> Native threads:

    Volker> * If you get OutOfMemory errors when you try create more than xxx
    Volker>   threads you'll have to increase the number of tasks supported by
    Volker>   kernel (the default is 256 per user). Change NR_TASKS in
    Volker>   /usr/src/linux/include/linux/tasks.h and recompile the kernel, or
    Volker>   upgrade to a 2.4 kernel.
    >>>>>>>> 

In 2.2.x the default values of NR_TASK and MAX_TASKS_PER_USER impose a
limit of 256 processes/threads per user (there's also a hard limit of
4092 process/threads for the whole system). In 2.4.x the this limit is
much higher and configurable through /proc/sys/kernel/threads-max.
Note that there still other limitations, e.g. stock glibcs have a 
PTHREAD_THREADS_MAX value of 1024.

    Volker> 4)

    Volker> Wann empfiehlt es sich, eine Appl. im Green-Mode zu
    Volker> betreiben? Wann besser im native mode?

Volano recommends our green threads VM because it scales to far more
connections than any native threads VM for Linux in case of their
product.  If you take a look at the "Does it scale?" results you'll
see that our green threads VM is one of the two VMs (and the only one
on Linux) that scale up to 5000 connections while native threads VMs
for Linux usually break at 440 connections.
[Sun's green threads VM breaks at 1015 connections because they use select
instead of poll].

In general it's advisable to use the new HotSpot VMs -- not because
they are native threads VMs -- they are faster than the older classic
VM + JITs.


        Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
JVM'01: http://www.usenix.org/events/jvm01/


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

Reply via email to