1 / 31

Weblogic Server System Administration – Top Ten Fundamental Concepts

Weblogic Server System Administration – Top Ten Fundamental Concepts. Shyam Kumar , AST Corporation Abhay Kumar, AST Corporation. Specialized. Recognized. Preferred . The right partner makes all the difference. Our Services. Oracle Partnership. Oracle Specialized. E-Business Suite

wyome
Download Presentation

Weblogic Server System Administration – Top Ten Fundamental Concepts

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Weblogic Server System Administration – Top Ten Fundamental Concepts Shyam Kumar, AST Corporation Abhay Kumar, AST Corporation

  2. Specialized. Recognized. Preferred. The right partner makes all the difference. Our Services Oracle Partnership Oracle Specialized • E-Business Suite • Business Intelligence • EPM-Hyperion • Fusion Middleware • Managed Services • Oracle University • Oracle Platinum Partner • Pillar Partner • SOA • Business Intelligence • Hyperion • Oracle University Approved Education Center • Oracle University Reseller • Oracle Accelerator Implementer • EBS Financial Management • EBS Supply Chain Management • EBS Human Capital Management • BI Applications • BI Foundation • Hyperion • Service-Oriented Architecture • ADF • Public Sector

  3. Weblogic Server – Introduction • #1 in worldwide Application Server Software • The Foundation for Oracle Applications and Middleware Technologies Platform • The Foundation for Cloud Applications and Application Infrastructure Consolidation • Supported features such as • Java EE Standards • Scalability/Clustering • Monitoring & Management • Enterprise Security • Enterprise Messaging • Linear Scalability • Coherence etc… • Latest Version 12.1.2

  4. Quick Poll? • How many of you are using J2EE application servers such as JBOSS, Oracle iAS, WebSphere? • How many of you have been using WebLogic Server? • How many of you are planning to use WebLogic Server?

  5. Weblogic System Administration –Top 10 Fundamentals Concepts • These are the concepts for Weblogic Server Administration based on our experience in implementing and supporting Weblogic Server platform • These are generic concepts that would apply in any Oracle Middleware/Applications Implementations • These are the Tips and Tricks

  6. #10 – WLST- Weblogic Scripting Tool • Environment Replication– Use WLST for environment replication and migration. It helps maintain consistency. • Runtime Management tool– Use the online connection mode for configuration management deployment and monitoring of Weblogic Servers. • Server Lifecycle- Manage your managed server lifecycle through WLST . It enables to start all the servers in the domain with one connection. • WLST Cache- Clear the WLST Cache directory to reduce the WLST start up time. java –Dpython.cachedir=“c:\demo\wlst_cache” weblogic.WLST • Avoid scanning of all files when WLS starts by using –skipWLSModuleScanning in the start up script.

  7. #9 –Node Manager • Use node manager so that the servers can be restarted from the weblogic admin console. • Keep the start up parameters same in Admin console and in the startWeblogic /startManagedWeblogic scripts to avoid confusion. • Node manager has the capability to restart the failed servers automatically. • Enroll the new machine using nmEnroll() • Configuration of node manager is mandatory when whole server migration is required

  8. #9 –Node Manager

  9. #8 – Resource Management • Mbean Mgmt/SNMP • JDBC - Connection pool waiters • JDBC - Active Connections Current Count • JVM - Heap Size • JVM - Garbage Collection • JMS – ConnectionsCurrentCount • JMS – MessagesCurrentCount • Threads – PendingRequestCurrentCount • Threads - QueueLength • Monitoring file system space, CPU and Memory

  10. #8 – Resource ManagementJDBC Monitoring

  11. #8 – Resource ManagementJVM Monitoring

  12. #8 – Resource ManagementJMS Monitoring

  13. #8 – Resource ManagementThread Monitoring

  14. #7 – Installation of JVM, WLS, etc. Use standard paths between environments • Folder Case Sensitivity - DO NOT use Upper and Lower Case • Be consistent between the paths • Use Environment variables consistently – JAVA_HOME, DOMAIN_HOME, etc. • Check for port conflicts before installing and configuring domain • Use JRockitas JVM and tune your JVM as per you Application requirements

  15. #6 – Thread Dumps for Troubleshoot& Debug WLS Why Take Thread Dumps? • To understand what is actively executed in the system when under load • When system is sluggish or slow or hangs • Java Virtual Process running but Server or App itself not responding • Pages take forever to load • Response time increases • Application and or Server behavior erratic • Just to observe hot spots (frequently executed code) under load • For Performance tuning & for Dependency analysis • To capture snapshot of running state in server

  16. #6 – Thread Dumps for Troubleshoot& Debug WLS • Methods to obtain thread dumps for analysis: • Use WLS Admin Console - Login to AdminConsole—>Server —> Monitoring —> Threads • WLST – create .py script • Weblogic.admin(WLS 8.1 and under) java Weblogic.Admin-url t3://localhost:7001 -username Weblogic -password Weblogic1 THREAD_DUMP • Jrockit JVM jrcmd PID print_threads • Oracle/Sun Java JVM kill -3 PID • Windows – control + break in wls startup cmd script – startWeblogic.cmd, startmanagedWeblogic.cmd • Process Explorer

  17. #6 – Thread Dumps for Troubleshoot& Debug WLS • Always take 4 or 5 thread dumps within a 20-25 sec period • Locking States

  18. #6 – Thread Dumps from Weblogic Console

  19. #5 – Log File Management • Consistent log locations across environments • Shared file system/folder • Leverage log rotation properly and efficiently • Tools to view logs – WLS Admin Console , EM Console, file system access and 3rd party tools (sawmill for example)

  20. #5 – Log File Settings –WLS Console

  21. #5 – Log File Settings –Logging.xml

  22. #5 – Log File Settings – EM Console Changes made below are reflected in logging.xml

  23. #4 – Back-Up/Restore Server Files • Perform a full offline backup shutdown all processes- WLS- Node Managers- Listeners- EM and emAgent- OHS- WebCache • Perform file system backups using OS tools such as tar: tar -zcvpf backup1.tar ... • Test backup by performing recovery on another computer • Configure automatic backup of WLS configuration it will create config-booted.xml and config-original.xml

  24. #3 – Temporary Files andCache Management • Weblogic creates the temporary files in various “temp” folders – “<XYZ>/bea/user_projects/domains/<yourdomain</servers/<yourserver>/tmp” • These Cache would often create issues so it would be recommended to delete all files/folders from “tmp” folders and “Restart” the server.

  25. #2 – Weblogic Diagnostic Framework (WLDF) – Watch & Notification • Weblogic Diagnostics Framework (WLDF) consists of a number of components that work together to collect, archive, and access diagnostic information about a WLS Server instance & the applications it hosts. • Watches and Notifications - The Watch and Notification component of the Weblogic Diagnostics Framework (WLDF) provides the means for monitoring server and application states and then sending notifications based on criteria set in the watches

  26. #2 – Weblogic Diagnostic Framework (WLDF) – Watch & Notification • A Watch identifies a situation that you want to trap for monitoring or diagnostic purposes & can be configured to analyze log records, data and events. A watch is specified as a watch rule, which includes: • A watch rule expression • An alarm setting • One or more notification handlers • A notification is an action that is taken when a watch rule expression evaluates to true. WLDF supports the following types of notifications: • Java Management Extensions (JMX) • Java Message Service (JMS) • Simple Mail Transfer Protocol (SMTP), for example, e-mail • Simple Network Management Protocol (SNMP) • Diagnostic Images

  27. #2 – Weblogic Diagnostic Framework (WLDF) – Dashboard • Monitoring Dashboard provides views and tools for graphically presenting diagnostic data about servers & applications

  28. #1 – Managing Servers using Grid Control Weblogic Server Management Pack (Grid) support features includes • Manage multiple farms and Weblogic Domains centrally • Monitor middleware availability and performance out-of-box; track such data historically, and receive notifications of potential problems • Obtain real-time, in-depth JVM diagnostics without instrumentation overhead • Trace transactions across containers

  29. Weblogic Reference Documents • http://docs.oracle.com/cd/E23943_01/wls.htm • http://docs.oracle.com/middleware/1212/wls/NOTES/index.html • http://www.oracle.com/technetwork/middleware/weblogic/documentation/index.html

  30. QUESTIONS/COMMENTS

  31. THANK YOU Shyam Kumar – skumar@astcorporation.com Abhay Kumar – akumar@astcorporation.com

More Related