WebLogic new domain and Jconsole monitoring

Source: Internet
Author: User
Tags ldap snmp to domain jconsole

First, create a domain:

The first step is to open the Domain Configuration interface:

CD /home/software/weblogic/oracle/middleware/wlserver_10.3/common/bin[[email protected]002 Bin] $ sh config.sh

The second step, the Domain information configuration:

Specify domain node name and domain storage path

Enter the console user name and password:

Select a domain startup mode: Development mode or production mode

Select the parameter information you want to configure

Configure domain Service Information

Finish creating

Complete Domain Building

The third step is whether the test domain will start properly:

Start the domain by means of sh to test for abnormal conditions:

[Email protected] fmump_domain]$ CD /app/bofm/cgdomains/ fmump_domain[[email protected]008 fmump_domain]$sh startweblogic. sh ..JAVA Memory arguments:-xms256m-xmx512m-xx: Compilethreshold=8000-xx:P ermsize=128m-xx: MaxPermSize=256m.WLSStart Mode=Development.CLASSPATH=/home/software/weblogic/oracle/middleware/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_ patch.jar:/home/software/weblogic/oracle/middleware/patch_ocp371/profiles/default/sys_manifest_classpath/ Weblogic_patch.jar:/home/software/weblogic/jdk1.6.0_45/lib/tools.jar:/home/software/weblogic/oracle/middleware /wlserver_10.3/server/lib/weblogic_sp.jar:/home/software/weblogic/oracle/middleware/wlserver_10.3/server/lib/ weblogic.jar:/home/software/weblogic/oracle/middleware/modules/features/weblogic.server.modules_10.3.6.0.jar:/ home/software/weblogic/oracle/middleware/wlserver_10.3/server/lib/webservices.jar:/home/software/weblogic/ Oracle/middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/software/weblogic/oracle/middleware/ modules/Net. sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/home/software/weblogic/oracle/middleware/wlserver_10.3/ COMMON/DERBY/LIB/DERBYCLIENT.JAR:/HOME/SOFTWARE/WEBLOGIC/ORACLE/MIDDLEWARE/WLSERVER_10.3/SERVER/LIB/XQRL.Jar.PATH=/home/software/weblogic/oracle/middleware/wlserver_10.3/server/bin:/home/software/weblogic/oracle/middleware/ modules/org.apache.ant_1.7.1/bin:/home/software/weblogic/jdk1.6.0_45/jre/bin:/home/software/weblogic/jdk1.6.0_ 45/bin:/home/software/jdk1.6.0_45/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/ sbin:/usr/bin:/root/bin:/root/bin:/bin.**************************************************** toStartWebLogic Server, Usea username and * * Password assigned to an Admin-level user. for* * Server Administration, UseThe WebLogic Server * * Console at http:Hostname:p Ort/console ****************************************************starting WebLogic with Java Version:java version 
    "1.6.0_45"Java(TM) SE Runtime Environment (build 1.6.0_45-b06)Java HotSpot(TM) 64-bit Server VM (build 20.45-b01, mixedMode)starting WLS with line:/home/software/weblogic/jdk1.6.0_45/bin/java-client-xms256m-xmx512m-xx: Compilethreshold=8000-xx:P ermsize=128m-xx: MaxPermSize=256m-dweblogic.name=fmumpsrv-djava.security.policy=/home/software/weblogic/oracle/middleware/wlserver_10.3/ Server/lib/weblogic.policy-xverify: None-da-dplatform.home=/home/software/weblogic/oracle/middleware/wlserver_10.3-dwls.home=/home/software/weblogic/ oracle/middleware/wlserver_10.3/server-dweblogic.home=/home/software/weblogic/oracle/middleware/wlserver_10.3/ server-dweblogic.management.discover=true-dwlw.iterativedev=-dwlw.testconsole=-Dwlw.logErrorsToConsole=- Dweblogic.ext.dirs=/home/software/weblogic/oracle/middleware/patch_wls1036/profiles/default/sysext_manifest_  Classpath:/home/software/weblogic/oracle/middleware/patch_ocp371/profiles/default/sysext_manifest_classpath Weblogic.Server<2017-4-12 02:19 P.M. 32 sec cst> <Info> <Security> <BEA-090905> <disabling cryptoj JCE Provider Self-integrity Check for Better startup performance. To enable this check, specify-dweblogic.security.allowcryptojdefaultjceverification=true> <2017-4-12 02:19 P.M. 32 sec cst> <Info> <Security> <BEA-090906> <changing The default Random number Generator in R SA Cryptoj from ECDRBG to Fips186prng. To disable the change, specify-dweblogic.security.allowcryptojdefaultprng=true> <2017-4-12 02:19 P.M. 32 seconds cst> <Info> <WebLogicServer> <BEA-000377> <starting WebLogic server with Java HotSpot (TM) 64-bit server V M Version 20.45-b01 from Sun Microsystems inc.> <2017-4-12 02:19 P.M. 32 sec cst> <Info> <Management> <b ea-141107> <version:weblogic Server 10.3.6.0 Tue Nov 08:52:36 PST 1441050 > <2017-4-12 02:19 P.M. 33 sec C st> <Notice> <WebLogicServer> <BEA-000365> <server state changed to Starting> <2017-4-12 02:19 P.M. 33 sec cst> <Info> <WorkManager> <BEA-002900> <initializing self-tuninG thread pool> <2017-4-12 02:19 P.M. 33 sec cst> <Notice> <log management> <BEA-170019> <the Serv Er log file/app/bofm/cgdomains/fmump_domain/servers/fmumpsrv/logs/fmumpsrv.log is opened. All server side log events is written to this file.> <2017-4-12 02:19 P.M. 34 sec cst> <Notice> <security > <BEA-090082> <security initializing using Security realm myrealm.> <2017-4-12 02:19 P.M. 36 sec cst> &lt ; notice> <WebLogicServer> <BEA-000365> <server state changed to standby> <2017-4-12 02:19 P.M. 36 sec cst> <Notice> <WebLogicServer> <BEA-000365> <server state changed to Starting> <2017-4-12 02:19 P.M. 36 sec cst> <Notice> <log management> <BEA-170027> <the Server has established connection WI Th the Domain level Diagnostic Service successfully.> <2017-4-12 02:19 P.M. 36 seconds cst> <Notice> <weblogicser ver> <BEA-000365> <server state changed to Admin> <2017-4-12 02:19 P.M. 36 sec cst> <Notice> <WebLogicServer> <BEA-000365> <server state changed to resuming> <2017-4-12 02:19 P.M. 36 sec cst> <Notice> <Server> <BEA-002613> <channel "default[1  ] "is now listening onFe80:0:0:0:250:56ff: fe9a: 804f:7002 forProtocols Iiop, T3, LDAP, SNMP, http.> <2017-4-12 02:19 P.M. 36 sec cst> <Warning> <Server> <bea-002611 >  on127.0.0.1:7002 forProtocols Iiop, T3, LDAP, SNMP, http.> <2017-4-12 02:19 P.M. 36 sec cst> <Notice> <Server> <bea-002613& Gt <channel "Default" is now listening on192.168.8.69:7002 forProtocols Iiop, T3, LDAP, SNMP, http.> <2017-4-12 02:19 P.M. 36 sec cst> <Notice> <Server> <bea-002613& Gt <channel "Default[3]" is now listening on0:0:0:0:0:0:0:1:7002 forProtocols Iiop, T3, LDAP, SNMP, http.> <2017-4-12 02:19 P.M. 36 sec cst> <Notice> <WebLogicServer> <bea -000331> <started WebLogic Admin Server "Fmumpsrv" forDomain "Fmump_domain" running in developmentMode> <2017-4-12 02:19 P.M. 36 sec cst> <Notice> <WebLogicServer> <BEA-000365> <server State Changed to running> <2017-4-12 02:19 P.M. 36 sec cst> <Notice> <WebLogicServer> <BEA-000360> < Server started in RUNNINGMode>

To access the console:

After the detection is complete, end the domain run, and then refer to the fourth step to start the domain

Fourth step, start the domain:

[Email protected] fmump_domain]$ nohup./startweblogic.SH &[1] 9309[[Email protected]008 fmump_domain]$ Nohup: Ignores input and appends output to "Nohup.out"[[Email protected]008 fmump_domain]$ Netstat-anp|grep 7002 #检查端口信息 ( notAll processes could is identified,non-owned Process Info would notBeing shown, you would has to be the root to see it all.)TCP0 0::1:7002:::* LISTEN 9359/javaTCP 0 0 FE80::250:56ff:fe9a:80:7002:::* LISTEN 9359/javaTCP 0 0::ffff:127.0.0.1:7002:::* LISTEN 9359/javaTCP 0 0::ffff:192.168.8.69:7002:::* LISTEN 9359/java[Email protected] fmump_domain]$ps-ef|grep java|grep umpsrv #检查进程信息bofm9359 9310 14:25 pts/1 00:00:09/home/software/weblogic/jdk1.6.0_45/bin/java-client-xms256m-xmx512m-xx: Compilethreshold=8000-xx:P ermsize=128m-xx: MaxPermSize=256m-dweblogic.name=Fmumpsrv-djava.security.policy=/home/software/weblogic/oracle/middleware/wlserver_10.3/server/lib/weblogic.policy- Xverify: None-da-dplatform.home=/home/software/weblogic/oracle/middleware/wlserver_10.3-dwls.home=/home/software/weblogic/ oracle/middleware/wlserver_10.3/server-dweblogic.home=/home/software/weblogic/oracle/middleware/wlserver_10.3/ server-dweblogic.management.discover=true-dwlw.iterativedev=-dwlw.testconsole=-Dwlw.logErrorsToConsole=- Dweblogic.ext.dirs=/home/software/weblogic/oracle/middleware/patch_wls1036/profiles/default/sysext_manifest_ Classpath:/home/software/weblogic/oracle/middleware/patch_ocp371/profiles/default/sysext_manifest_classpath Weblogic.Server[[email protected]008 fmump_domain]$

To stop the domain, execute:

[Email protected] bin]$ sh stopweblogic.sh stopping Weblogic Server...Initializing WebLogic Scripting Tool(WLST) ...Welcome to WebLogic Server administration ScriptingShellTypeHelp () forHelp onavailable commandsconnecting to T3:uat02-biz-zjcg-ap-008:7002 with userid WebLogic ...successfully connected to Admin Server ' Fmumpsrv ', belongs to domain ' Fmump_domain '.Warning:an Insecure protocol was used-connect to the server. To ensure on-the-wire Security,The SSL port or Admin port should be used instead.shutting down the server fmumpsrv with force=false while connected to fmumpsrv ...WLST lost connection to the WebLogic Server so you were connected to, this may happenifThe server was shutdown or partitioned.You'll have a re-connect to the server once the server is available.disconnected from WebLogic server:fmumpsrvdisconnected from WebLogic server:exiting weblogic Scripting Tool.donestopping Derby Server...[1]+ done nohup./startweblogic.sh (wd: ~/cgdomains/fmump_domain) (WD now: ~/cgdomains/fmump_domain/bin )[[Email protected]008 bin]$

Second, configure Jsonsole monitoring

[[email protected] bin]$ pwd/app/bofm/cgdomains/fmump_domain/bin[[email protected]008 bin]$ VI startweblogic.sh

Add a little bit of content:

Java_options= "${java_options}  -dcom.sun.management.jmxremote-dcom.sun.management.jmxremote.port=17002- Dcom.sun.management.jmxremote.authenticate=false-dcom.sun.management.jmxremote.ssl=false "

Startup domain:

[Email protected] fmump_domain]$ nohup./startweblogic.SH &[1] 9496[[Email protected]008 fmump_domain]$ Nohup: Ignores input and appends output to "Nohup.out"[[Email protected]008 fmump_domain]$ Netstat-anp|grep 7002 #Check open port, 7002 is console port, 17002 is jconsole listening port( notAll processes could is identified,non-owned Process Info would notBeing shown, you would has to be the root to see it all.)TCP0 0::ffff:192.168.8.69:7002:::* LISTEN 9546/javaTCP 0 0::1:7002:::* LISTEN 9546/javaTCP 0 0 FE80::250:56ff:fe9a:80:7002:::* LISTEN 9546/javaTCP 0 0::ffff:127.0.0.1:7002:::* LISTEN 9546/javaTCP 0 0::: 17002:::* LISTEN 9546/java[Email protected] fmump_domain]$

Start Jconsole for monitoring:

Jconsole in: $JAVA _home/bin directory

JVM information monitoring is possible:

WebLogic new domain and Jconsole monitoring

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.