Jenkins
1. O procedimento de instalação pode ser encontrado em:
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions
2. Verifique se ele está funcionando :
[root@spike ~]# sudo service jenkins start
Starting Jenkins [ OK ]
Os logs de Jenkins prazo será colocado em:
/ var / log / Jenkins / jenkins.log
Encontre algo como:
INFO: Jenkins está totalmente instalado e funcionando
3 Acessando Jenkins :
A informação geral pode ser encontrada em :
https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins
No entanto, é necessário criar um túnel na porta 8080.
ssh- f root @ spike- L 8080:127.0.0.1:8080 -N
Jenkins deve estar disponível em :
http://127.0.0.1:8080/
plugins JMeter
As páginas Jenkins recomenda a utilização do plugin do Desempenho em vez de JMeter plugin.
https://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin
A maneira mais fácil de instalar é Jenkins pela interface Plugin Representante: http://127.0.0.1:8080/pluginManager/
Vá na aba " disponível" e encontrar " plug-in de desempenho" ( figura abaixo)
Vá para " download agora e instale depois restart"
Depois de terminar o donwload , reinicie o serviço Jenkins : " jenkins serviço sudo restart"
instale JMeter
Faça o download :
wget http://apache.mirror.iphh.net//jmeter/binaries/apache-jmeter-2.11.tgz
Extraia os arquivos para :/ var / lib / Jenkins
Renomear ( mv ) apache- jmeter 2.11 como jmeter
Para verificar se ele está instalado , é necessário criar um novo emprego.
New Job
Projeto de software free-style
Sob Build, selecionar Invoke Formiga
Selecione Avançado
Público-alvo: todos
Build Path : / var / lib / Jenkins / jobs / MY_PROJECT_NAME / build.xml
Propriedades: jmeter.dir = / var / lib / Jenkins / JMeter ( referência para a etapa 5.c )
Down in Post- construir ações verifique a caixa de seleção Publicar Desempenho relatório de resultado de teste
Adicionar uma nova caixa de relatório e escolha JMeter
Definir o ramo de construir a JMeter
Para arquivos de relatório Especifique ** / *. JTL
Adicione o build.xml na raiz da pasta de trabalho ( / var / lib / Jenkins / jobs / MY_PROJECT_NAME / ) . No final eu adicionei um arquivo build.xml .
Pasta de Sub- the-job ( / var / lib / Jenkins / jobs / MY_PROJECT_NAME / ), crie a seguinte estrutura de diretório (a pasta da área de trabalho e todos os sub-pasta que tem que ser em chmod 777 " chmod -R 0777 / *") .
+ Scripts
+ Workspace
+ + Resultados
+ + + + JTL
+ + + + HTML
Na pasta scripts de carregar os scripts JMeter arquivos * . JMX
terça-feira, 11 de março de 2014
[RASCUNHO] Coleção de textos sobre como modificar a função de similaridade do ElasticSearch
It is necessary to extends the classes:
org.apache.lucene.search.similarities.Similarity;
org.elasticsearch.index.similarity.AbstractSimilarityProvider;
Since the ES 0.9 it is possible to change the similarity function to each field. This document explains how:
http://elasticsearchserverbook.com/elasticsearch-0-90-similarities/
org.apache.lucene.search.similarities.Similarity;
org.elasticsearch.index.similarity.AbstractSimilarityProvider;
Since the ES 0.9 it is possible to change the similarity function to each field. This document explains how:
http://elasticsearchserverbook.com/elasticsearch-0-90-similarities/
General information:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/index-modules-similarity.html
About the tf/idf and BM25:
https://www.found.no/foundation/similarity/
http://stackoverflow.com/questions/19423423/simple-explanation-of-different-elasticsearch-similarity-algorithms
https://groups.google.com/forum/#!topic/elasticsearch/UZYa49_9AFg
Implementation of a custom function:
http://elasticsearch-users.115913.n3.nabble.com/How-to-use-ElasticSearch-Custom-Similarity-provider-classes-td4047683.html
https://github.com/awnuxkjy/es-custom-similarity-provider/tree/master/src/main/java/org/elasticsearch/index/similarity
http://elasticsearch-users.115913.n3.nabble.com/Configuring-a-Custom-Similarity-td4034063.html
https://www.found.no/foundation/similarity/
http://stackoverflow.com/questions/19423423/simple-explanation-of-different-elasticsearch-similarity-algorithms
https://groups.google.com/forum/#!topic/elasticsearch/UZYa49_9AFg
Implementation of a custom function:
http://elasticsearch-users.115913.n3.nabble.com/How-to-use-ElasticSearch-Custom-Similarity-provider-classes-td4047683.html
https://github.com/awnuxkjy/es-custom-similarity-provider/tree/master/src/main/java/org/elasticsearch/index/similarity
http://elasticsearch-users.115913.n3.nabble.com/Configuring-a-Custom-Similarity-td4034063.html
sexta-feira, 21 de fevereiro de 2014
Installing Jekins and the JMeter plugin (Performance plugin)
Jekins
1. The installation procedure can be found at:
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions
2. Check if it is working:
The general information can be found on:
https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins
However, it is necessary to create a tunnel in the port 8080.
http://127.0.0.1:8080/
JMeter plugins
The Jekins pages recommends using the Performance plugin instead of JMeter plugin.
https://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin
Usefull references
http://www.theserverlabs.com/blog/2009/04/23/performance-tests-with-jmeter-maven-and-hudson/
http://jlorenzen.blogspot.de/2008/03/automated-performance-tests-using.html
http://neyto.blogspot.de/2013/02/install-jenkins-with-jmeter-performance_2208.html
Build xml:
name="jmeter"
classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"
classpathref="ant.jmeter.classpath" >
jmeterhome="${jmeter-home}"
resultlogdir="workspace/results/jtl">
classpathref="xslt.classpath"
basedir="workspace/results/jtl"
destdir="workspace/results/html"
includes="*.jtl"
style="${jmeter-home}/extras/jmeter-results-detail-report_21.xsl">
1. The installation procedure can be found at:
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions
2. Check if it is working:
[root@spike ~]# sudo service jenkins startThe logs of Jekins run will be placed at:
Starting Jenkins [ OK ]
/var/log/jenkins/jenkins.logFind something like:
INFO: Jenkins is fully up and running3. Accessing Jekins:
The general information can be found on:
https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins
However, it is necessary to create a tunnel in the port 8080.
ssh -f root@spike -L 8080:127.0.0.1:8080 -NJekins must be available at:
http://127.0.0.1:8080/
JMeter plugins
The Jekins pages recommends using the Performance plugin instead of JMeter plugin.
https://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin
- The easiest way to install Jekins is by the Plugin Manager interface: http://127.0.0.1:8080/pluginManager/
- Go in the tab "Available" and find "Performance plugin" (figure below)
- Go in "Download now and install after restart"
- After finish the donwload, restart jekins service: "sudo service jenkins restart"
- Install JMeter
- Download it:
wget http://apache.mirror.iphh.net//jmeter/binaries/apache-jmeter-2.11.tgz - Extract the files to :/var/lib/jenkins
- Rename (mv) apache-jmeter-2.11 as jmeter
- Download it:
- To check if it is installed it is necessary to create a new job.
- New Job
- Free-style software project
- Under Build, select Invoke Ant
- Select Advanced
- Target : allPath Build : /var/lib/jenkins/jobs/MY_PROJECT_NAME/build.xmlProperties : jmeter.dir=/var/lib/jenkins/jmeter (reference to step 5.c)
- Down in Post-build Actions check the Publish Performance test result report checkbox
- Add a new report box and choose JMeter
- Set the branch to build to JMeterFor Report files specify **/*.jtl
- Add the build.xml at the root of the job folder (/var/lib/jenkins/jobs/MY_PROJECT_NAME/). At the end I added a build.xml file.
- Under the job folder (/var/lib/jenkins/jobs/MY_PROJECT_NAME/), create the following directory structure (the workspace folder and all it subfolder have to be in chmod 777 "chmod -R 0777 ./*").
+scripts
+workspace
++results
++++jtl
++++html - In the scripts folder upload the JMeter scripts files *.jmx
Usefull references
http://www.theserverlabs.com/blog/2009/04/23/performance-tests-with-jmeter-maven-and-hudson/
http://jlorenzen.blogspot.de/2008/03/automated-performance-tests-using.html
http://neyto.blogspot.de/2013/02/install-jenkins-with-jmeter-performance_2208.html
Build xml:
classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"
classpathref="ant.jmeter.classpath" >
resultlogdir="workspace/results/jtl">
basedir="workspace/results/jtl"
destdir="workspace/results/html"
includes="*.jtl"
style="${jmeter-home}/extras/jmeter-results-detail-report_21.xsl">
terça-feira, 11 de fevereiro de 2014
Como tornar-se um expert em Garbage Collector:
http://www.cubrid.org/blog/dev-platform/understanding-java-garbage-collection/
http://www.cubrid.org/blog/dev-platform/how-to-monitor-java-garbage-collection/
http://www.cubrid.org/blog/textyle/428187
Esses 3 artigos sao muito interessantes e completos.
http://www.cubrid.org/blog/dev-platform/understanding-java-garbage-collection/
http://www.cubrid.org/blog/dev-platform/how-to-monitor-java-garbage-collection/
http://www.cubrid.org/blog/textyle/428187
Esses 3 artigos sao muito interessantes e completos.
Marcadores:
aplicações Web,
Idéias e Links,
Java
segunda-feira, 9 de agosto de 2010
Exercícios POO
Exercícios
---------------------------------------
Descrição geral: Desenvolver um software para gerenciamento de uma Universidade.1. Criar as seguintes classes:
Pessoa
Estudante
Professor
Classe
2. Criar atributos, comportamentos e relacionamentos para as classes.
3. Fazer uma classe principal para receber as entradas de dados e apresentar a saída.
4. Na classe principal, adicione um comportamento para receber as notas, calcular a média e escrever na tela se o estudante está aprovado ou reprovado.
---------------------------------------
Descrição geral: Desenvolver um software para gerenciamento de contas bancárias
1. Criar as seguintes classes:
Pessoa física
Pessoa Jurídica
Conta corrente
Poupança
2. Criar atributos, comportamentos e relacionamentos para as classes.
3. Fazer uma classe principal para receber as entradas de dados e apresentar a saída.
4. Na classe principal, adicione um comportamento para impedir saques de Contas Correntes e Poupanças, abaixo do limite.
---------------------------------------
Descrição geral: Desenvolver um software para gerenciamento de uma Loja de computadores.
1. Criar as seguintes classes:
Pessoa
Comprador
Vendedor
Produto
2. Criar atributos, comportamentos e relacionamentos para as classes.
3. Fazer uma classe principal para receber as entradas de dados e apresentar a saída.
Programação Orientada a Objetos
http://www.guiadohardware.net/artigos/programacao-orientada-objetos/
Assinar:
Postagens (Atom)