find ./ -type f -name '*source-string*'

jboss

# ========================================================
# ---    : Install JDK on Ubuntu
#
apt-cache search openjdk
apt-get install openjdk-7-jdk
java -version
# java version "1.7.0_55"
# Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
# Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)
echo export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64/" >> ~/.bashrc
source ~/.bashrc 
echo $JAVA_HOME
/usr/lib/jvm/java-7-openjdk-amd64/
# ---------------------------------------------------------

# =========================================================
# ---    : JBoss Test
#
grep 'jboss.management.native.port' standalone.xml
#        <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>

netstat -tunl |grep 9999
#tcp        0      0 127.0.0.1:9999          0.0.0.0:*               LISTEN

./jboss-cli.sh --controller=localhost:9999 --connect


# ---------------------------------------------------------
# ---    : jps (1)              - Java Virtual Machine Process Status Tool
#
[email protected]:~# jps
30134 -- process information unavailable
23322 jboss-modules.jar
25417 Jps
#
jstack -l 23322 > jstack.out
# ---------------------------------------------------------

#!/bin/sh
#
# Takes the JBoss PID as an argument. 
#
# Captures cpu by light weight thread and thread dumps a specified number of
# times and INTERVAL. Thread dumps are retrieved using jstack and are placed in 
# high-cpu-tdump.out
#
# Usage: sh ./high_cpu_linux_jstack.sh <JBOSS_PID>
#
# Change Log:
# * 2011-05-02 19:00 <loleary>
# - Added date output to high-cpu.out for log correlation
# - Added -p argument to top to limit high-cpu.out to <JBOSS_PID>
#
#

# Number of times to collect data.
LOOP=6
# Interval in seconds between data points.
INTERVAL=20

for ((i=1; i <= $LOOP; i++))
do
   _now=$(date)
   echo "${_now}" >>high-cpu.out
   top -b -n 1 -H -p $1 >>high-cpu.out
   echo "${_now}" >>high-cpu-tdump.out
   jstack -l $1 >>high-cpu-tdump.out
   echo "thread dump #" $i
   if [ $i -lt $LOOP ]; then
      echo "Sleeping..."
      sleep $INTERVAL
   fi


http://www.jboss.org/jbossas/downloads.html

WEB INTERFACE: http://localhost:9990

JBOSS_HOME="/var/www/jboss"
$JBOSS_HOME/bin/standalone.sh -server-config=standalone-full.xml

# --- $JBOSS_HOMEstandalone/configuration  
# Az xml ek a telepeitesi verziok
application-roles.properties
application-users.properties
logging.properties                                                                                                  
mgmt-users.properties                                                                                               
standalone-full-ha.xml                                                                                              
standalone-full.xml                                                                                                 
standalone-ha.xml                                                                                                   
standalone.xml
                                                                                            


# --- Need to share configuration between server instances? 
# --- Now it's easy using domain mode. You can centralize your 
# --- configuration and management of many server instances deployed 
# --- across multiple hosts.
                 
$JBOSS_HOMEdomain/configuration/domain.xml
# ---- Tartalmazza az alap profilokat pl:
    <profile name="default">
    <profile name="ha">
    <profile name="full">
    <profile name="full-ha">
# ---- Itt lehet szerver groupokat is létrehozni.
        <server-groups>
        </server-group>
# ---



$JBOSS_HOME/domain/configuration/host.xml

<servers>
</server>
# --- Domain controller inditasa
$JBOSS_HOME/bin/domain.sh --host-config=host.master.xml -Djboss.bind.address.management=127.0.0.1
$JBOSS_HOME/domain/configuration/host-master.xmlSS_HOME

java:jboss/datasources/MySqlDS

jdbc:mysql://localhos:3306/jboss

www.jboss.org/jbossas/downlaods
bin/standalobe.sh




bin/

host

/var/www/jboss/

	LICENSE.txt
	README.txt
	appclient
	bin
	bundles
	copyright.txt
	docs
	domain
	jboss-modules.jar
	modules
	standalone
	 welcome-content

	 
	 
bin/domain.sh --host-config=host-master.xml -Djboss.bind.address.management=10.10.10.10


<datasource jta="false" jndi-name="java:jboss/datasources/MySqlDS" pool-name="MySqlDS" enabled="true" use-ccm="false">
   <connection-url>jdbc:mysql://localhos:3306</connection-url>
   <driver-class>com.mysql.jdbc.Driver</driver-class>
   <driver>mysql-connector-java-5.1.18-bin.jar</driver>
   <security>
       <user-name>root</user-name>
       <password>root123</password>
   </security>
   <validation>
       <validate-on-match>false</validate-on-match>
       <background-validation>false</background-validation>
   </validation>
   <statement>
       <share-prepared-statements>false</share-prepared-statements>
  </statement>
</datasource>

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.