Sobes.tech

Java

[Name] fragte: Erzähl mir von ELK, Prometheus und dem Monitoring-Stack — was ist das, was hast du benutzt, worin bist du am besten?

213

[Name] fragte: Wie plant man die Anzahl der Partitionen für eine neue Anwendung mit einer Last von 3000 Nachrichten pro Minute?

157

[имя] fragte: Wie man einen Heap-Dump eines Java-Prozesses in Kubernetes erstellt? Beschreibe die Schritte in der Bash-Konsole.

149

[Name] fragte: Es gibt eine große Tabelle mit Ereignissen/Logs in der Produktion, die gelöscht werden muss. Wie würdest du sie genau löschen?

148

Klasse Aufgabe { private static int Zähler = 0; public static void main(String[] args) throws Exception { var thread1 = new Thread(() -> erhöhen()); var thread2 = new Thread(() -> erhöhen()); thread1.start(); thread2.start(); thread1.join(); thread2.join(); System.out.println(Zähler); } private static void erhöhen() { for (int i = 0; i < 5000; i++) { Zähler++; } } }

148

public static void a(long item) { b(item); System.out.println(item); } public static void b(long item) { c(item); } public static void c(long item) { d(item); } public static void d(long item) { System.out.println(item); item = 20L; // тут }

148

class StackTask { public static void main(String[] args) { a(15); } public static void a(long item) { b(item); } public static void b(long item) { c(item); } public static void c(long item) { d(item); } public static void d(long item) { System.out.println(item); } }

147

[Name] fragte: Warum Klassen im Metaspace speichern, wenn sie bereits in der jar-Datei auf der Festplatte vorhanden sind?

146
/3