MaxClients ≈ (RAM - size_all_other_processes)/(size_apache_process)
MaxClients / ThreadsPerChild < ServerLimit
Fonte
http://www.devside.net/articles/apache-performance-tuning
http://httpd.apache.org/docs/2.2/mod/worker.html
quinta-feira, 14 de março de 2013
segunda-feira, 11 de março de 2013
Monitoramento de pacotes
sudo tcpdump -w test.pcap -i eth1 tcp port 6881 or udp \( 33210 or 33220 \)
fonte: http://linux.byexamples.com/archives/283/simple-usage-of-tcpdump/
fonte: http://linux.byexamples.com/archives/283/simple-usage-of-tcpdump/
Habilitar e desabilitar icmp no windows server
Go to Start >> Administrative Tools >> Windows Firewall with advanced security >> Inbound Rules >> File and Printer Sharing (Echo Request - ICMPv4-IN) >> right click and select Enable Rule.
fonte:
fonte:
http://www.dotnetfunda.com/codes/code501-how-to-enable-or-disable-ping-in-windows-server-2008-r2-server.aspx
Consultando a versão do jboss
Dentro do diretório Lib do jboss...
$unzip -x jboss-main.jar org/jboss/version.properties -d /tmp/
$cat /tmp/org/jboss/version.properties
### =========================================================###
## ##
## Holds version properties for JBoss. ##
## ##
### =========================================================###
### $Id: version.properties 101006 2010-02-16 02:34:52Z bstansberry@jboss.com $ ###
# The version of the server
version.major=6
version.minor=0
version.revision=0
version.tag=Final
version.name=Neo
version.cvstag=JBoss_6_0_0_Final
# Build identifiers
build.number=r110228
build.id=r110228
build.date=December 28, 2010 8:08:33 AM EST
build.time=December 28, 2010 8:08:33 AM EST
build.day=December 28, 2010 8:08:33 AM EST
# Information about Java version used to compile
java.version=1.6.0_21
java.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.version=17.0-b16
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.info=mixed mode
java.specification.version=1.6
java.class.version=50.0
# Information about the OS the server was compiled on
os.name=Linux
os.arch=amd64
os.version=2.6.32-63.el6.x86_64
$unzip -x jboss-main.jar org/jboss/version.properties -d /tmp/
$cat /tmp/org/jboss/version.properties
### =========================================================###
## ##
## Holds version properties for JBoss. ##
## ##
### =========================================================###
### $Id: version.properties 101006 2010-02-16 02:34:52Z bstansberry@jboss.com $ ###
# The version of the server
version.major=6
version.minor=0
version.revision=0
version.tag=Final
version.name=Neo
version.cvstag=JBoss_6_0_0_Final
# Build identifiers
build.number=r110228
build.id=r110228
build.date=December 28, 2010 8:08:33 AM EST
build.time=December 28, 2010 8:08:33 AM EST
build.day=December 28, 2010 8:08:33 AM EST
# Information about Java version used to compile
java.version=1.6.0_21
java.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.version=17.0-b16
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.info=mixed mode
java.specification.version=1.6
java.class.version=50.0
# Information about the OS the server was compiled on
os.name=Linux
os.arch=amd64
os.version=2.6.32-63.el6.x86_64
Utilizando parametros nos bash scriprt
Os parâmetros especiais
São também variáveis reservadas que permitem para alguns efetuar tratamentos nos parâmetros .Estes parâmetros são os seguintes:
$0 Contém o nome do script tal como ele foi invocado. $*O conjunto dos parâmetros na forma de um só argumento. $@ O conjunto dos argumentos, um argumento por parâmetro $# O número de parâmetros passados para o script $? Le code volta do último comando $$ Le PID su shell que se executa o script $! Le PID do último processo lançado em último plano
Fonte ...
http://pt.kioskea.net/faq/9555-bash-os-parametros
quarta-feira, 6 de março de 2013
Instalando os comandos do Linux no Windows
http://gnuwin32.sourceforge.net/
instalando o core básico do bash
http://gnuwin32.sourceforge.net/downlinks/coreutils-bin-zip.php
http://gnuwin32.sourceforge.net/downlinks/coreutils-dep-zip.php
Instalando o diff
http://gnuwin32.sourceforge.net/packages/diffutils.htm
http://gnuwin32.sourceforge.net/packages/libintl.htm
http://gnuwin32.sourceforge.net/packages/libiconv.htm
descompacta todos os zip em uma pasta
acrescentar a pasta bin gerada ao path do windows
instalando o core básico do bash
http://gnuwin32.sourceforge.net/downlinks/coreutils-bin-zip.php
http://gnuwin32.sourceforge.net/downlinks/coreutils-dep-zip.php
Instalando o diff
http://gnuwin32.sourceforge.net/packages/diffutils.htm
http://gnuwin32.sourceforge.net/packages/libintl.htm
http://gnuwin32.sourceforge.net/packages/libiconv.htm
descompacta todos os zip em uma pasta
acrescentar a pasta bin gerada ao path do windows
Assinar:
Postagens (Atom)