Welcome!

Weblogic Authors: Yeshim Deniz, Elizabeth White, Michael Meiner, Michael Bushong, Avi Rosenthal

Related Topics: Weblogic

Weblogic: Article

Management and Monitoring Using the JRockit JVM

Management and Monitoring Using the JRockit JVM

The need for a server-side JVM is evident. The increase in the number of Java applications on the servers, and the exponential rise in the number of clients accessing these Java applications, brings forth the shortcomings in the traditional Java VMs, which are more tuned towards client-side processing.

The first question that comes to mind when talking about JRockit is the comparison between the JRockit JVM and the Sun JVM. Although this article does not focus on this distinction, I will present a brief history of JRockit and then discuss the management and monitoring features introduced in it.

A few of the major issues with these JVMs are their ability to handle threads, the time taken for garbage collection, and the management of I/O operations. In a typical client-side application profile, 75% of the time a client JVM is running code, 20% of the time it's managing memory (garbage collection), and the remaining 5% of the time it's dealing with threads and I/O activity. On the server side the JVM spends about 25% of its time running code, 15% of its time managing memory, 30% managing threads, and 30% performing I/O.

JRockit was introduced by Appeal Virtual Machines, based in Stockholm, Sweden, and acquired by BEA in 2002. JRockit offers alternative thread management and memory management to fit the needs of these server-side applications. It also introduces a more adaptive code optimization based on runtime monitoring information. JRockit is fully J2SE certified. A handful of core classes have been modified for better performance, but the majority of classes are unchanged from the Sun JVM.

Interpreter Versus Compiler
A key distinction between JRockit and traditional JVMs is that JRockit does not interpret code. Instead it uses a fast JIT compiler to compile all methods it encounters. The result of this is slower start-up times and a larger memory footprint, but faster execution times in the long run. During execution, a background thread is constantly looking for frequently run code. Such code is aggressively optimized and replaced during runtime. This is called adaptive optimization.

Runtime Management Console
JRockit comes with the JRockit JVM Management Console, which currently is not included with any of the commonly used JVMs. The management console comprises a management server and a standalone Swing application that is the console. You can turn on the management server by passing the following flag to the JVM on start-up:

"-XManagement"

An interesting note is that the console can be used with any JVM, not just JRockit. You can start the console by using the following command:

"java -jar <jrockit-installdirectory>/
console/ManagementConsole.jar"

Figure 1 shows how you can use the console to connect to the server.

 
Figure 1: JRockit connection

I have changed the default Medical Records application that ships with BEA Platform 8.1 to use the JRockit JVM. Figure 2 shows the command window when the BEA WebLogic Server is starting up. Note on the top that I have enabled the JRockit management server. Towards the bottom of the window you can see that I am connecting to the management server using the management console.

 
Figure 2: WebLogic startup command window

When you talk about monitoring, there is always a performance impact that you have to accept when you are monitoring information. The JRockit management console can be run on the server or a remote machine, thereby reducing the overhead on the server. However, there is still some overhead on the monitored JVM. I recommend running the management console to monitor the JVM when needed (when you see problems) and then disconnect, so that there is minimal impact on the monitored JVM. The console has a notification feature that can trigger alerts based on thresholds for various variables. A few interesting events are

  • CPU Load
  • % of Used Heap
  • Free Physical Memory
  • JVM Absolute CPU Load
  • % of Used Memory
  • Average Time Spent in GC
Figure 3 shows some of the monitoring information that you can see regarding the Medical Record application as users are connecting to it.

 
Figure 3: Monitoring information

The console also allows profiling of userspecified methods, showing the number of times a given method is invoked. This is roughly like a profiler, but the user must specify the class and method. Similarly, the console can be used to count the number of times an exception was thrown. The user must specify the exception to be counted.

Integration with the WebLogic Console
Many developers, and especially the operations departments, complain that they have to use still another console. This is not true with JRockit. The standard WebLogic console integrates with the JRockit management server. You can get the same monitoring capability that you get using the JRockit management console through the standard BEA WebLogic console. However, remember that the WebLogic console can also be used to monitor the JRockit JVM, not any other JVM. This is primarily due to the lack of available monitoring features in other JVMs.

JRockit Runtime Analyzer Tool
The JRockit JVM is instrumented to provide runtime behavior regarding the Java application. Such information was not available previously. Various tools take an outside-in, after-the-fact approach on trying to extract such information by hooking into the JVM. The inside-out approach taken by JRockit provides more accurate information with less performance impact.

The JRockit Runtime Analyzer is used by BEA engineers internally to tune and refine the JVM. Only recently has BEA opened this to the entire BEA community. You can download this tool from the BEA site and use it to analyze your own Java applications.

Summary
This article talked about the management and monitoring capabilities of the JRockit JVM. Although monitoring always has some impact on performance (and don't believe anyone who says otherwise), the ability to monitor your applications through your development life cycle and in production environments is key. Monitoring allows you to quickly identify and pinpoint problems and defects. The rich data that monitoring can provide can have a huge impact on the overall robustness of your applications.

References

  • BEA WebLogic JRockit 8.1 on Dev2Dev from BEA: http://dev2dev.bea.com/products/wljrockit81/index.jsp
  • More Stories By Kunal Mittal

    Kunal Mittal is a consultant for implementation and strategy for Web services and services-oriented architectures. He has co-authored and contributed to several books on Java, WebLogic and Web services.

    Comments (0)

    Share your thoughts on this story.

    Add your comment
    You must be signed in to add a comment. Sign-in | Register

    In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


    @ThingsExpo Stories
    SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of...
    SYS-CON Events announced today that Taica will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Taica manufacturers Alpha-GEL brand silicone components and materials, which maintain outstanding performance over a wide temperature range -40C to +200C. For more information, visit http://www.taica.co.jp/english/.
    SYS-CON Events announced today that TidalScale, a leading provider of systems and services, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale has been involved in shaping the computing landscape. They've designed, developed and deployed some of the most important and successful systems and services in the history of the computing industry - internet, Ethernet, operating s...
    SYS-CON Events announced today that MIRAI Inc. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MIRAI Inc. are IT consultants from the public sector whose mission is to solve social issues by technology and innovation and to create a meaningful future for people.
    SYS-CON Events announced today that IBM has been named “Diamond Sponsor” of SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California.
    SYS-CON Events announced today that TidalScale will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale is the leading provider of Software-Defined Servers that bring flexibility to modern data centers by right-sizing servers on the fly to fit any data set or workload. TidalScale’s award-winning inverse hypervisor technology combines multiple commodity servers (including their ass...
    Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant tha...
    Widespread fragmentation is stalling the growth of the IIoT and making it difficult for partners to work together. The number of software platforms, apps, hardware and connectivity standards is creating paralysis among businesses that are afraid of being locked into a solution. EdgeX Foundry is unifying the community around a common IoT edge framework and an ecosystem of interoperable components.
    Infoblox delivers Actionable Network Intelligence to enterprise, government, and service provider customers around the world. They are the industry leader in DNS, DHCP, and IP address management, the category known as DDI. We empower thousands of organizations to control and secure their networks from the core-enabling them to increase efficiency and visibility, improve customer service, and meet compliance requirements.
    As popularity of the smart home is growing and continues to go mainstream, technological factors play a greater role. The IoT protocol houses the interoperability battery consumption, security, and configuration of a smart home device, and it can be difficult for companies to choose the right kind for their product. For both DIY and professionally installed smart homes, developers need to consider each of these elements for their product to be successful in the market and current smart homes.
    With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend 21st Cloud Expo October 31 - November 2, 2017, at the Santa Clara Convention Center, CA, and June 12-14, 2018, at the Javits Center in New York City, NY, and learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
    Most technology leaders, contemporary and from the hardware era, are reshaping their businesses to do software. They hope to capture value from emerging technologies such as IoT, SDN, and AI. Ultimately, irrespective of the vertical, it is about deriving value from independent software applications participating in an ecosystem as one comprehensive solution. In his session at @ThingsExpo, Kausik Sridhar, founder and CTO of Pulzze Systems, will discuss how given the magnitude of today's applicati...
    Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
    SYS-CON Events announced today that mruby Forum will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. mruby is the lightweight implementation of the Ruby language. We introduce mruby and the mruby IoT framework that enhances development productivity. For more information, visit http://forum.mruby.org/.
    Digital transformation is changing the face of business. The IDC predicts that enterprises will commit to a massive new scale of digital transformation, to stake out leadership positions in the "digital transformation economy." Accordingly, attendees at the upcoming Cloud Expo | @ThingsExpo at the Santa Clara Convention Center in Santa Clara, CA, Oct 31-Nov 2, will find fresh new content in a new track called Enterprise Cloud & Digital Transformation.
    SYS-CON Events announced today that NetApp has been named “Bronze Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. NetApp is the data authority for hybrid cloud. NetApp provides a full range of hybrid cloud data services that simplify management of applications and data across cloud and on-premises environments to accelerate digital transformation. Together with their partners, NetApp emp...
    In a recent survey, Sumo Logic surveyed 1,500 customers who employ cloud services such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). According to the survey, a quarter of the respondents have already deployed Docker containers and nearly as many (23 percent) are employing the AWS Lambda serverless computing framework. It’s clear: serverless is here to stay. The adoption does come with some needed changes, within both application development and operations. Tha...
    SYS-CON Events announced today that Avere Systems, a leading provider of enterprise storage for the hybrid cloud, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Avere delivers a more modern architectural approach to storage that doesn't require the overprovisioning of storage capacity to achieve performance, overspending on expensive storage media for inactive data or the overbui...
    SYS-CON Events announced today that Avere Systems, a leading provider of hybrid cloud enablement solutions, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Avere Systems was created by file systems experts determined to reinvent storage by changing the way enterprises thought about and bought storage resources. With decades of experience behind the company’s founders, Avere got its ...
    Amazon is pursuing new markets and disrupting industries at an incredible pace. Almost every industry seems to be in its crosshairs. Companies and industries that once thought they were safe are now worried about being “Amazoned.”. The new watch word should be “Be afraid. Be very afraid.” In his session 21st Cloud Expo, Chris Kocher, a co-founder of Grey Heron, will address questions such as: What new areas is Amazon disrupting? How are they doing this? Where are they likely to go? What are th...