#Java Multi-Threading Part II
##Lesson4 : Thread Pools
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
/*
* Thread Pools => Managing Lock Threads @ same time
#Java Multi-Threading Part II
##Lesson4 : Thread Pools
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
/*
* Thread Pools => Managing Lock Threads @ same time
#Java Multi-Threading Part I
##Lesson1 : Basic Threads ###1. Extends Thread
/*
* Basic Threads
* Run Concurently(Simultaneously)
*/
{ | |
"acm": { | |
"AddTagsToCertificate": [ | |
"aws acm add-tags-to-certificate --certificate-arn arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 --tags Key=Admin,Value=Alice Key=Purpose,Value=Website " | |
], | |
"DeleteCertificate": [ | |
"aws acm delete-certificate --certificate-arn arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 " | |
], | |
"DescribeCertificate": [ | |
"aws acm describe-certificate --certificate-arn arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 " |
Native Leak example 1 | |
****************************************************************************** | |
https://technology.blog.gov.uk/2015/12/11/using-jemalloc-to-get-to-the-bottom-of-a-memory-leak/ | |
leak | |
1GB in java.util.zip.Inflater.inflateBytes -> inflate -> updatewindow. | |
solution | |
stopped the decompression of frontend assets by |
sudo python ./jstackmem.py 2495 | |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import bisect | |
import re | |
import subprocess | |
import sys |
****************************************************************************************************************************************** | |
async profiler | |
1 installation | |
https://github.com/jvm-profiling-tools/async-profiler | |
2 for memory profiling, install java debug symbols | |
https://www.javaadvent.com/2014/12/recompiling-the-java-runtime-library-with-debug-symbols.html | |
https://gist.github.com/khatwaniNikhil/694e44e7c939d96848b23afd5693b175 |
<project name="create rt_debug.jar" default="makejar" basedir="."> | |
<target name="init"> | |
<property environment="env"/> | |
<property name="project.build" location="build"/> | |
<property name="project.src" location="${project.build}/src"/> | |
<property name="project.classes" location="${project.build}/classes"/> | |
<property name="project.dist" location="${project.build}/dist"/> | |
<path id="project.classpath"> | |
<fileset dir="${env.JAVA_HOME}/jre/lib"> | |
<include name="*.jar"/> |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
OP: @leonardofed founder @ plainflow.