Stoppt die Vorratsdatenspeicherung! Jetzt klicken & handeln!Willst du auch bei der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:

setec.blogsome.com

19.09.2008

Vorsicht: Tödliches Oracle unter Linux

Filed under: Technologie, Java Devel.

Ich krieg mich nicht mehr. Als erstes hab ich da erst mal gelästert von wegen: “Applikation stirbt weil es dem Oracle Platz wegnimmt.”

Dann hab ich allerdings das Kernel Log mal aufmerksam ganz durchgelesen und bin über ein interessantes Feature der Linux-Distribution gestoßen: Dem oom-killer:

Sep 18 18:47:01 pbv kernel: oracle invoked oom-killer: gfp_mask=0×201d2, order=0, oomkilladj=0


Sep 18 18:47:25 pbv kernel: Out of memory: Killed process 7795 (java).

Ihr seht also: Niemals sich mit den ‘Großen’ anlegen!

    Update:
Ja das wird ja immer mehr zum Knaller! Das ist sogar eine Facility die den Todeskandidaten nach einem Masterplan auswählt:

/*
 * oom_badness - calculate a numeric value for how bad this task has been
 * @p: task struct of which task we should calculate
 * @p: current uptime in seconds
 *
 * The formula used is relatively simple and documented inline in the
 * function. The main rationale is that we want to select a good task
 * to kill when we run out of memory.
 *
 * Good in this context means that:
 * 1) we lose the minimum amount of work done
 * 2) we recover a large amount of memory
 * 3) we don't kill anything innocent of eating tons of memory
 * 4) we want to kill the minimum amount of processes (one)
 * 5) we try to kill the process the user expects us to kill, this
 *    algorithm has been meticulously tuned to meet the principle
 *    of least surprise ... (be careful when you change it)
 */

Comments »

The URI to TrackBack this entry is: http://setec.blogsome.com/2008/09/19/vorsicht-todliches-oracle-unter-linux/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.


Anti-spam Schutz: Bitte gebt den obigen Text in das entsprechende ein.