Beruflich Dokumente
Kultur Dokumente
Copyright
Copyright 2004-2012 Arcturus Technologies, Inc. All Rights Reserved.
Trademarks
Copyright 2004-2012 Arcturus Technologies, Inc. All Rights Reserved. ARCTURUS Applicare, ARCTURUS Applicare WL, ARCTURUS Applicare WL2, ARCTURUS Applicare WL3, IntelliTune, IntelliSense, IntelliCheck, ARCTURUS Applicare Advisor, ARCTURUS Applicare Detector, ARCTURUS Applicare AutoTune Wizard, Knoms, ARCTURUS Applicare Blackbox and ARCTURUS Applicare JVM Optimizer are non-registered trademarks of Arcturus Technologies, Inc. All other names and marks are property of their respective owners.
1-2
Table of Contents
1 Installation Guide ...................................................................................................................................................1-4 1.1 1.2 1.3 1.4 1.5 2 3 4 5 6 7 Installation Requirements: ............................................................................................................................. 1-4 Runtime Requirements .................................................................................................................................. 1-4 Installation Types........................................................................................................................................... 1-4 Installing Applicare ........................................................................................................................................ 1-5 Testing the Installation .................................................................................................................................. 1-6
Installing Applicare Agent on a WebLogic Server ....................................................................................................2-7 Installing Applicare Agent on a WebSphere Server ...............................................................................................3-11 Installing Applicare Agent on a Tomcat Server ......................................................................................................4-14 Installing Applicare Agent on a JBoss Server .........................................................................................................5-16 Installing Applicare Agent on a Java Server ...........................................................................................................6-18 Appendix..............................................................................................................................................................7-21 7.1 7.2 7.3 7.4 7.5 Setting up multiple WebLogic domains with the same name........................................................................ 7-21 Adding multiple WebLogic servers with the same name to Applicare Console.............................................. 7-21 Licensing...................................................................................................................................................... 7-22 Enabling IntelliTrace on Production Servers ................................................................................................. 7-22 Running Multiple Business Transaction Data Collectors ............................................................................... 7-23
1-3
Installation Guide
1-4
1-5
1-6
2. Setup your Weblogic domain in Applicare console by going to Configuration -> Domain Configuration page and clicking the new button. Specify the Admin servers IP, admin port, username and password along with the domain name and click save. If you have multiple domains with the same name please follow the steps described in the Appendix section. 3. Modify Weblogic servers startup args: a. If you are using the startup scripts to start your Weblogic servers Edit startWeblogic.cmd/sh script in the in your domains bin directory and add the following line right after the @REM START WEBLOGIC or # START WEBLOGIC line and replace the values in bold with actual values as per your environment i. On Windows Systems call <Applicare Dir>\scripts\setAgentEnv.bat ii. On Unix Systems . <Applicare Dir>/scripts/setAgentEnv.sh
2-7
b. If you are using node manager to start the server add the following arguments to the server start configuration and replace the values in bold with actual values as per your environment i. On Windows Systems Class Path:
<Applicare Dir>\applicare-aspects.jar;<WL Dir>\server\lib\weblogic_sp.jar; <WL Dir>\server\lib\weblogic.jar
Arguments:
-javaagent:<Applicare Dir>\applicare-aspects.jar=verbosity=0,logfile=false -Darcturus_home=<Applicare Dir> -Djava.library.path=<Applicare Dir>\bin;<WL DIR>\server\native\win\32
Arguments:
-javaagent:<Applicare Dir>/applicare-aspects.jar=verbosity=0,logfile=false -Darcturus_home=<Applicare Dir>
4. Make sure the JVM can increase Perm gen to at least 256MB by adding -XX:MaxPermSize=256m to startup arguments. Server might fail to start with Applicare agent if the perm gen size is too low. 5. Restart the Weblogic server for the changes to take effect 6. Login to Weblogic console and install the applicare_agent.war in <Applicare Dir>/agent/WebLogic directory and target it to your Weblogic server(s) and start the application
2-8
7. Configure the Weblogic server in Applicare console as shown below a. Click Add Server button in the default dashboard
2-9
b. Provide the IP and port the Weblogic server is listening to, select the appropriate protocol (HTTP/HTTPS) and click save. If the server appears in the auto detected server list, you can click the Add button next to server instead of entering the above details manually.
Thats it, youre all set to start exploring the features, finding root causes, and making your life easier! If youre test didnt go well, contact Arcturus Support for assistance.
2-10
2. Setup your WebSphere profile in Applicare console by going to Configuration -> Domain Configuration page and clicking the new button. Specify the Deployment Managers IP, SOAP port, username and password along with a profile name and click save. Trust Store and Keystore values are required only if Admin security is enabled on WebSphere server. 3. Modify WebSphere servers startup args: You will have to modify the Java Virtual Machine properties of the server before deploying applicare_agent and this can be done through WebSphere Administrative Console -> Servers -> Application Servers -> {Server Name} > Java and Process Management -> Process Definition -> Java Virtual Machine a. On the Java Virtual Machine Configuration page, add the following arguments and replace the values in bold with actual values as per your environment i. On Windows Systems Boot Classpath:
<Applicare Dir>\applicare-aspects.jar
3-11
b. Now you need to add the following custom properties by clicking the Custom Properties link under Additional Properties heading on the same page. Name arcturus_home java.awt.headless java.library.path profile.name server.name Value <Applicare Dir> true <Applicare Dir>/bin <Profile Name> <Server Name> Description Absolute path to your Applicare directory Replace <Applicare Dir> with absolute path to Applicare directory The profile name you used when configuring the profile in Applicare console Name of your WebSphere server
4. Make sure the JVM can increase Perm gen to at least 256MB by adding -XX:MaxPermSize=256m to Generic JVM arguments. Server might fail to start with Applicare agent if the perm gen size is too low. 5. Restart the WebSphere server for the changes to take effect 6. Login to Administrative console and install the applicare_agent.war in <Applicare Dir>/agent/WebSphere directory and target it to your WebSphere server(s) and start the application. Note: Make sure you install the application to web application context /applicare_agent at the time of deployment.
3-12
7. Configure the WebSphere server in Applicare console as shown below a. Click Add Server button in the default dashboard
b. Provide the IP and HTTP/HTTPS port the WebSphere server is listening to, select the appropriate protocol (HTTP/HTTPS) , provide the SOAP connector port of the server and click save.
Thats it, youre all set to start exploring the features, finding root causes, and making your life easier! If youre test didnt go well, contact Arcturus Support for assistance.
3-13
3. Automated Deployment. You can use the deployment scripts shipped with Applicare to perform the above manual deployment steps by executing <Applicare Dir>/scripts/deployment/run.bat(sh) scripts. run.bat(sh) tomcat <path to Tomcat dir> < a unique name to identify the server > e.g. ./run.sh tomcat /apache-tomcat-6.0.18 TCServer1
4-14
4. If you are staring Tomcat as a Windows service add the following to your services Java Options section and replace the values in bold with applicable values
-Dserver.name=<a unique name to identify the server> -javaagent:<Applicare Dir>\applicare-tomcat-aspects.jar=verbosity=0,logfile=false -Darcturus_home=<Applicare Dir> -Djava.library.path=<Applicare Dir>\bin
5. Make sure the JVM can increase Perm gen to at least 256MB by adding -XX:MaxPermSize=256m to startup arguments. Server might fail to start with Applicare agent if the perm gen size is too low. 6. Start the Tomcat server 7. Configure the server in Applicare console as shown below a. Click Add Server button in the default dashboard
b. Provide the IP and port the server is listening on and click save
Thats it, youre all set to start exploring the features, finding root causes, and making your life easier! If youre test didnt go well, contact Arcturus Support for assistance.
4-15
3. Automated Deployment. You can use the deployment scripts shipped with Applicare to perform the above manual deployment steps by executing <Applicare Dir>/scripts/deployment/run.bat(sh) scripts.
run.bat(sh) jboss <path to JBoss profile dir> < a unique name to identify the server > e.g. ./run.sh jboss /jboss-5.1.0.GA/server/default AppSvr1
5-16
4. If you are staring JBoss as a service add the following to your services JvmOptions and replace the values in bold with applicable values
-Dserver.name==<a unique name to identify the server>;-javaagent: <Applicare Dir>\applicare-tomcataspects.jar=verbosity=0,logfile=false;-Darcturus_home=<Applicare Dir>;-Djava.library.path=<Applicare Dir>\bin
5. Make sure the JVM can increase Perm gen to at least 256MB by adding -XX:MaxPermSize=256m to startup arguments. Server might fail to start with Applicare agent if the perm gen size is too low. 6. Start JBoss server 7. Configure the server in Applicare console as shown below a. Click Add Server button in the default dashboard
b. Provide the IP and port the server is listening on and click save
Thats it, youre all set to start exploring the features, finding root causes, and making your life easier! If youre test didnt go well, contact Arcturus Support for assistance.
5-17
g. On Unix Systems export SERVER_NAME=<a unique name to identify the server> export APPLICARE_PORT=<an available port # on which Applicare agent can start listening to> . <Applicare Dir>/scripts/setGenericAgentEnv.sh # append the $APP_JAVA_OPTS to your java command to start your server with Applicare startup arguments. E.g for JBoss server
"$JAVA" $APP_JAVA_OPTS $JAVA_OPTS -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" -classpath "$JBOSS_CLASSPATH" org.jboss.Main "$@"
6-18
2. If you are staring your server as a service add the following to your services JVM options and replace the values in bold with applicable values
-Dserver.name==<a unique name to identify the server>;-javaagent: <Applicare Dir>\applicareaspects.jar=verbosity=0,logfile=false;-Darcturus_home=<Applicare Dir>;-Dapplicare_port=<Port to run Applicare agent>
3. Make sure the JVM can increase Perm gen to at least 256MB by adding -XX:MaxPermSize=256m to startup arguments. Server might fail to start with Applicare agent if the perm gen size is too low. 4. Start the server 5. Configure the server in Applicare console as shown below a. Click Add Server button in the default dashboard
b. Provide the IP and port Applicare agent is listening on and click save
6-19
Thats it, youre all set to start exploring the features, finding root causes, and making your life easier! If youre test didnt go well, contact Arcturus Support for assistance.
6-20
Appendix
Usage: createDomainProps.bat Admin_Server_IP Admin_Port Username Password > domain.props e.g. createDomainProps.bat 192.168.0.1 7001 weblogic weblogic > domain.props
2. Add -Dapplicare.domain.props argument to JAVA_OPTIONS in startup script or Java arguments in server startup configuration if you are using Node manager to start the server. Set the argument value to the absolute path of the domains.props file.
e.g. -Dapplicare.domain.props=/Applicare/scripts/domains.props
7.2 Adding multiple WebLogic servers with the same name to Applicare Console
If you want to add two or more servers with the same name from different domains to Applicare console you will have to assign an alias to one or all servers to make each server name unique and recognizable in Applicare. You can assign an alias to a server by adding the Dserver.name=<Any Name> parameter to the server startup arguments (Replace <Any Name> with the name you want to assign). After adding the argument, restart the server and add it to Applicare Console. Applicare will detect the alias and use it instead of the WebLogic server name.
7-21
7.3 Licensing
Applicare installation will create an evaluation license that will allow you to use Applicare for 3 weeks and to monitor up to 3 servers. If you have a commercial license please copy it to your Applicare directory overwriting the existing AP_AdminServer.key file.
7-22
Configuration
You have to configure the servers the collector should gather data from by editing the btx.props file in btm_collector folder. e.g. If you want the collector to gather data from 3 monitored servers, specify their URL as below url_1=http://sc1.mydomain:8080 url_2=http://sc2.mydomain:8080 url_3=http://sc2.mydomain:7080
Running a collector
To start the collector, simply execute run.bat or run.sh script in the btm_collector folder after completing the configuration as described above.
7-23