Skip to content

Instantly share code, notes, and snippets.

View hgomez's full-sized avatar

Henri Gomez hgomez

View GitHub Profile
@hgomez
hgomez / jcerror.md
Last active August 29, 2015 14:07
Weird SSL error when using Unlimited Crypto

Weird error in SSL negociation when using Unlimited Crypto in Java 7 :

Sample Java Test program :

import java.io.BufferedReader;  
import java.io.InputStreamReader;  
  
  
import java.net.URL;  
import java.net.URLConnection; 
@hgomez
hgomez / gist:8fdd059d36b63daa19f7
Created September 15, 2014 15:51
Java 8 - LDD
ldd -v ./amd64/*.so
....
ie:
libawt.so:
linux-vdso.so.1 => (0x00007fff1a9de000)
libjvm.so => not found
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7c7a7e1000)
@hgomez
hgomez / openjdk-7-build-failure.md
Last active August 29, 2015 14:04
openjdk-7-build-failure

CentOS / RHEL 7 (64bits)

00:32:35.270     gcc -m64 -Xlinker -O1 -Wl,--hash-style=both  -Xlinker -z -Xlinker noexecstack -shared                                 \
00:32:35.271 -Xlinker --version-script=mapfile_reorder -Xlinker -soname=libjvm.so -static-libgcc -o libjvm.so abstractCompiler.o accessFlags.o ad_x86_64.o ad_x86_64_clone.o ad_x86_64_expand.o ad_x86_64_format.o ad_x86_64_gen.o ad_x86_64_misc.o ad_x86_64_peephole.o ad_x86_64_pipeline.o adaptiveSizePolicy.o addnode.o adjoiningGenerations.o adjoiningVirtualSpaces.o advancedThresholdPolicy.o ageTable.o allocTracer.o allocation.o allocationStats.o altHashing.o aprofiler.o arguments.o array.o arrayKlass.o arrayKlassKlass.o arrayOop.o asPSOldGen.o asPSYoungGen.o asParNewGeneration.o assembler.o assembler_linux_x86.o assembler_x86.o atomic.o attachListener.o attachListener_linux.o barrierSet.o basicLock.o bcEscapeAnalyzer.o biasedLocking.o binaryTreeDictionary.o bitMap.o block.o blockOffsetTable.o buildOopMap.o bytecode.o bytecodeHistogram.o b
@hgomez
hgomez / dacapobench-of-fresh-java.md
Last active September 26, 2015 02:35
dacapobench-of-fresh-java

System

  • Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz
  • 16 GB RAM DDR3-1600
  • 256 GB SSD (Vertex4)
  • Linux Mint 17

Dacapobench 9.12 - bench

Script used, dacapobench.sh

@hgomez
hgomez / jcmd-local-failure
Created July 23, 2014 10:27
jcmd local failure
jcmd 21958 JFR.start duration=60s filename=myrecording.jfr
21958:
com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:106)
at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:63)
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:213)
at sun.tools.jcmd.JCmd.executeCommandForPid(JCmd.java:140)
at sun.tools.jcmd.JCmd.main(JCmd.java:129)
@hgomez
hgomez / gist:f4ebbfd7afec0b5409e2
Created July 22, 2014 15:56
Flight Recorder error
java.lang.RuntimeException: Could not register the Mission Control MBean in the MBeanServer.
at com.jrockit.mc.flightrecorder.controlpanel.ui.FlightRecorderProvider.refresh(FlightRecorderProvider.java:109)
at com.jrockit.mc.browser.views.JVMBrowserView$1.run(JVMBrowserView.java:99)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
@hgomez
hgomez / jenkins-plugins-batch-install.md
Last active December 11, 2023 07:47
Mass install/update of Jenkins Plugins

Scripted Jenkins Plugins install

Jenkins has a very rich catalog of plugins and it's quite easy to install and update them via UI. BTW, when you want to add tons of plugin via UI, it's a fairly long and boring procedure.

Hopefully, mass installation (or update) could be easy using a simple bash script (curl/python required) :

Create a file containing plugins to be installed (or updated), ie iplugins :

@hgomez
hgomez / get-jenkins-plugins.md
Last active May 5, 2016 20:32
Get Jenkins Plugin from command line
@hgomez
hgomez / giblat-subgit-2
Created June 27, 2014 14:03
gitlab-subgit-2
100644 blob cc71ba5278cee9b2a2102c71c173b52ff41d7829 .gitattributes
100644 blob 30acab398a277ef1f842b0b06d94697fbf6548c3 .gitignore
100644 blob 5ded6a4afb3dd4914888945226cda6b041bdcc46 README.MD
040000 tree 42c6d1d57f290ee31d25e3cbae0262c1237e6241 basic-perf-webapp
040000 tree 2b2bab38607c5fcca88ad656768997cf082f9083 bears-tools
040000 tree e0c30ca12d29317ab029be52c1b6612a86561eb4 cdbootstrap
040000 tree e822e4df444cf9c1c322130df826c5ba984da25f cdcg
040000 tree a063d6ebe33eb135cbf565d0160193f449bbeb0b cdftd
040000 tree 2d3bf144069f6367f4fbd49ae01da45c02443cfa cdprofile-vagrant
040000 tree d3a646cd67a242de11dc31431b151aa011c8f261 cgjenka
@hgomez
hgomez / gitlab-subgit-1
Created June 27, 2014 13:15
gitlab-subgit-1
No newline at end of file
commit 70c293a31f8ea81c7049cac9915c6b31dc343456
Author: Gomez Henri <hgomez@mycorp.com>
Date: Wed Jan 4 10:50:15 2012 +0000
Initial import.
commit 8a2cadbbe8dcd33ad06c6535e88c23d69b4a4a04
Author: Gomez Henri <hgomez@mycorp.com>