Skip to content

Instantly share code, notes, and snippets.

@roncat
roncat / JON
Last active December 17, 2015 12:49
Habilitar o JON via jmx no JBoss6
standalone.xml
==============
Vim <jboss-eap-6>/jboss-7.1.1/standalone/configuration/standalone.xml
<subsystem xmlns="urn:jboss:domain:jmx:1.1">
<show-model value="true"/>
<remoting-connector/>
</subsystem>
@roncat
roncat / JBossEAP6
Last active November 22, 2022 11:17
Configurations
Parameters
==========
JVM_OPTS:
JBOSS_OPTS:
-Djboss.home.dir=/d2/java/jboss-eap-6.2 ($JBOSS_HOME)
-Djboss.server.base.dir=/d2/java/jboss-eap-6.2/asp264005 ($JBOSS_HOME/standalone)
-Djboss.server.default.config=standalone.xml or -c standalone.xml
Java-Profiling
==============
HEAP
-> | perm | young | old |
perm -> Dados permanentes
young -> Espaçco menor. Sofre muitas coletas do GC é mais rápido para executar. Não sofre compactação e os objetos são simplesmente copiados para as outras áreas. Isso torma a coleta eficiente. É dividida em S0, S1 e Eden; Onde o S0 e S1 são áreas temporárias de objetos; A EDEN é onde os objetos são criados pela primeira vez.
old -> Espaçco maior e poucas coletas e o GC é mais demorada.
GC (Garbage Collector) is a form of automatic memory management. The garbage collector, or just collector, attempts to reclaim garbage, or memory occupied by objects that are no longer in use by the program.
@roncat
roncat / DevOps
Last active August 29, 2015 14:07
DevOps
======
Gene Kim, autor do livro The Phoenix Project, realizou um debate com Steven Witkop, John Skovron e Elis Booker sobre
como plataforma como serviço (PaaS) se encaixa no processo de DevOps. Elis Booker ajudou a discussão com perguntas
sobre DevOps, derrubando mitos sobre nuvens privadas e como começar a utilizá-las.
Gene Kim descreveu a teoria das restrições e suas aplicação em DevOps; também indicou restrições em desenvolvimento de
software que, segundo ele, devem ser abordadas em sequência:
Provisionamento de ambientes/implantação;
@roncat
roncat / DataSource
Last active December 14, 2018 18:44
Install MySQL on DataSource on JBoss EAP 6
Example to install MySQL driver on DataSource JBoss EAP 6
=========================================================
First we will create a new module. A module in this sense is a package of classes that will be available to all our application through your JBoss node. This is a big differences compared with older JBoss version where all deployed archive where directly available to other deployed application when deployed in the deployment root folder.
You find module in $JBOSS_HOME/modules folder. To create a new module you need to do three things:
1 - Create a folder hierarchy for files.
$ mkdir -p $JBOSS_HOME/modules/com/mysql/main
2 - Copy module jar files.
@roncat
roncat / DevOps-DB
Last active August 29, 2015 14:09
MySQL
MySQL Machine
=============
- COMMANDS
mysqladmin -u root -p create prime
mysql -uroot -p -e "GRANT ALL PRIVILEGES ON prime.* TO ’prime’@’%’ IDENTIFIED BY ’prime’;"
mysql -u root -p -e "SHOW DATABASES"
mysql -u loja -p loja_schema -e "select database(), user()"
@roncat
roncat / Kubernetes
Last active August 29, 2015 14:10
Initial project - Kubernetes
Kubernetes
==========
Based on CoreOS: CoreOS is a powerful Linux distribution built to make large, scalable deployments on varied infrastructure simple to manage.
- etcd: A toll to manage these clusters, CoreOS uses a globally distributed key-value store called etcd to pass configuration data between nodes.
- fleet: A tool to schedule and manage applications across the entirety of the cluster.
Based on Docker: Docker is a containerization system that utilizes LXC, also known as Linux containers, and uses kernel namespacing and cgroups in order to isolate processes.
Kubernetes, at its basic level, is a system for managing containerized applications across a cluster of nodes.
@roncat
roncat / Docker
Last active June 28, 2016 12:34
Initil commands - Docker
Docker
======
https://docs.docker.com/v1.4/articles/systemd/
Architecture:
- /var/lib/docker: (config containers)
- /var/lib/docker/containers: (stated containers)
- /var/lib/docker/graph: (commited images)
@roncat
roncat / RHEL 7
Last active August 29, 2015 14:10
Commands
COMMANDS RHEL 7
===============
=> SYSTEMCTL
systemctl list-units --type=service | grep running
systemctl list-units --type=service | grep failed
systemctl list-units --type=service
systemctl stop postfix.service
@roncat
roncat / Nginx
Last active August 29, 2015 14:10
Nginx
=====
NGINX is more then just a high performance web server, it is loaded with features. Here are just some of the features available:
Support for multiple protocols: HTTP, HTTPS, SPDY, WebSocket, IMAP, POP3, SMTP
Caching
Compression
SSL Termination: TLSv1.1/TLSv1.2/SSL/SNI/PFS/PCI-DSS and OCSP Stapling
HTTP video streaming with MP4/FLV/HDS/HLS