Skip to content

Instantly share code, notes, and snippets.

View gaeljw's full-sized avatar

Gaël Jourdan-Weil gaeljw

View GitHub Profile
Full thread dump OpenJDK 64-Bit Server VM (17.0.10+7 mixed mode, sharing):
Threads class SMR info:
_java_thread_list=0x00007f7b48429dc0, length=42, elements={
0x00007f7bd4029a20, 0x00007f7bd4078ff0, 0x00007f7bd407a410, 0x00007f7bd4080d90,
0x00007f7bd4082120, 0x00007f7bd4083510, 0x00007f7bd4084f20, 0x00007f7bd4086430,
0x00007f7bd40878a0, 0x00007f7bd40b2eb0, 0x00007f7bd40b9070, 0x00007f7bd54520b0,
0x00007f7bd54ce770, 0x00007f7bd54cf5d0, 0x00007f7bd54d0660, 0x00007f7bd54d16e0,
0x00007f7bd54d2760, 0x00007f7bd54d37f0, 0x00007f7bd54d4880, 0x00007f7bd54d5850,
0x00007f7bd54d6820, 0x00007f7bd54d78d0, 0x00007f7bd54d8980, 0x00007f7bd54d9960,
0x00007f7bd54da940, 0x00007f7bd54db920, 0x00007f7bd54dc900, 0x00007f7bd54dd7d0,
@gaeljw
gaeljw / memory-limit-request-jvm.md
Created November 25, 2023 09:36 — forked from petrbouda/memory-limit-request-jvm.md
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

Keybase proof

I hereby claim:

  • I am gaeljw on github.
  • I am gaeljourdan (https://keybase.io/gaeljourdan) on keybase.
  • I have a public key ASCbEVoZA5sRv_eBumITEDvMaJ518c3WTiwXLMiaMPWNtgo

To claim this, I am signing this object:

@gaeljw
gaeljw / rpm.sh
Created September 25, 2019 16:04
# Extract RPM content
rpm2cpio myrpmfile.rpm | cpio -idmv
package utils
import scala.concurrent.{ExecutionContext, Future}
object FutureExt {
/**
* For each item in items, sequentially generate a future using futureGenerator to create a future for an item.
*
* @param items initial items
@gaeljw
gaeljw / Huffman.scala
Created May 4, 2018 15:06
Scala W4 Huffman
package patmat
import common._
/**
* Assignment 4: Huffman coding
*
*/
object Huffman {
@gaeljw
gaeljw / Anagrams.scala
Created May 4, 2018 15:05
Scala W6 Anagrams
package forcomp
import scala.collection.immutable._
object Anagrams {
/** A word is simply a `String`. */
type Word = String
/** A sentence is a `List` of words. */
# Created by https://www.gitignore.io/api/java,eclipse,maven,git
### Intellij ###
.idea/
*.iml
### Eclipse ###
@gaeljw
gaeljw / svn2git.sh
Created March 7, 2018 09:02
Commandes migration SVN vers Git
# 1 - Recuperer les auteurs dans un fichier authors.txt et associer userSVN=userGit
# Windows
svn.exe log --quiet | ? { $_ -notlike '-*' } | % { ($_ -split ' \| ')[1] } | Sort -Unique
# Linux : https://stackoverflow.com/questions/2494984/how-to-get-a-list-of-all-subversion-commit-author-usernames
# 2 - Migration
git svn init --prefix=svn/ --no-metadata --trunk=trunk --tags=tags --branches=branches <url>
git svn config --local --get user.name
git svn config --local svn.authorfile authors.txt
@gaeljw
gaeljw / git.sh
Last active November 6, 2020 16:06
Commandes Git utiles
# Archive
git archive --format zip --output nomDuZip.zip refGit # refGit = tag/branche...
# Reset author
git commit --amend --reset-author --no-edit
# Rebase onto (start exclusive, end inclusive)
git rebase --onto <where> <current-start> <current-end>