Skip to content

Instantly share code, notes, and snippets.

View petrbouda's full-sized avatar

Petr Bouda petrbouda

View GitHub Profile
@petrbouda
petrbouda / CONTRIBUTOR_LICENSE_AGREEMENT.md
Last active January 31, 2024 07:07
CONTRIBUTOR_LICENSE_AGREEMENT

Contributor Agreement

Individual Contributor Exclusive License Agreement

(including the Traditional Patent License OPTION)

Thank you for your interest in contributing to Petr Bouda's Jeffrey Analyzer ("We" or "Us").

The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us.

@petrbouda
petrbouda / AssertAppender.java
Created March 16, 2021 07:59
Assert Logging in JUNIT Tests
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.AppenderBase;
import org.junit.jupiter.api.Assertions;
import org.slf4j.LoggerFactory;
import java.time.Duration;
import java.util.concurrent.CountDownLatch;
@petrbouda
petrbouda / HttpInvocation.java
Last active June 22, 2024 19:00
Retry Mechanism for JDK HTTP Client
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandler;
import java.time.Duration;
import java.util.concurrent.CompletableFuture;
@petrbouda
petrbouda / memory-limit-request-jvm.md
Last active October 18, 2024 07:03
Memory LIMIT and REQUEST in Containers and JVM

Memory LIMIT and REQUEST in Containers and JVM

  • Do you run a JVM inside a container on Kubernetes (or maybe OpenShift)?
  • Do you struggle with REQUEST and LIMIT parameters?
  • Do you know the impact of those parameters on your JVM?
  • Have you met OOM Killer?

Hope you will find answers to these questions in this example-based article.

How to set up JVM Heap size in a Container