38 Setting Up JVM Diagnostics as a Service

This chapter describes the procedure to set up and enable JVM Diagnostics as a Service. It covers the following:

38.1 About JVM Diagnostics as a Service

JVM Diagnostics as a Service (JVMDaaS) enables IT organizations to provide JVM Diagnostics functionality in a self service manner and monitor JVMs within a Web based portal. The JVMs being monitored can either be monitored targets in Enterprise Manager or remote targets.

For example, a development organization may want to provide JVM Diagnostics functionality to its developers and QA personnel. The system administrator can provide this service through JVMDaaS. This helps reduce the organization cost by enabling developers and QA personnel to complete development tasks faster as JVM Diagnostics is easily accessible on any instance they are working on. Since the self service approach is used, there is no increase in the workload of the system administrator.

38.2 Creating Users and Roles

Oracle Enterprise Manager supports different classes of Oracle users, depending upon the environment you are managing and the context in which you are using Oracle Enterprise Manager. User privileges provide a basic level of security in Enterprise Manager. They are designed to control user access to data and to limit the kinds of SQL statements that users can execute. When creating a user, you grant privileges to enable the user to connect to the database, to run queries and make updates, to create schema objects, and more.A role is a collection of Enterprise Manager resource privileges, or target privileges, or both, which you can grant to administrators or to other roles. These roles can be based upon geographic location (for example, a role for Canadian administrators to manage Canadian systems), line of business (for example, a role for administrators of the human resource systems or the sales systems), or any other model. By creating roles, an administrator needs only to assign the role that includes all the appropriate privileges to his team members instead of having to grant many individual privileges.

Before using JVMDaaS, the Super Administrator must create users for the following roles:

  • EM_SSA_ADMINISTRATOR: Users with this role can define quotas and constraints for the self service users and grant them access privileges. Users with this role also have provisioning and patching designer privileges that allow them to create and save deployment procedures, create and view patch plans, and support the plug-in lifecycle on the Management Agent. These privileges are required for initial setup and ongoing maintenance of the infrastructure.

  • JVMDAAS: Users with this role can access the Cloud JVM Diagnostics Self Service Portal. A user with the EM_SSA_ADMINISTRATOR role can provide additional privileges that allow users with this role to access other features in Enterprise Manager. While creating this role, ensure that:

    • The EM_SSA_USER_BASE role has been explicitly granted to this role.

    • The following resource privileges have been granted to this role:

      • View Any Service Family

      • Grant View Service Family

38.3 Setting Up JVMDaaS

Prerequisites

Users with the EM_SSA_ADMINISTRATOR and JVMDAAS role must have been created. See Creating Users and Roles.

To set up JVMDaaS, follow these steps:

  1. Log in to Enterprise Manager as a user with the EM_SSA_ADMINISTRATOR role.

  2. From the Enterprise menu, select Cloud, then select JVM Diagnostics Home.

    Figure 38-1 JVMDAAS - Home

    Surrounding text describes Figure 38-1 .
  3. Click the Quotas tab to allocate quota to one or more users with JDAAS role. See Defining and Allocating Quotas.

  4. Click the Home tab to manage and monitor the JVM Diagnostics Agents. See Monitoring JVM Diagnostics Agents and Engines.

38.4 Defining and Allocating Quotas

Quotas can be defined to specify the total number of JVMs that can be allocated to a self service user belonging to a specific role. Users with the EM_SSA_ADMINISTRATOR role can define quotas for self service users.

Prerequisites

  • You must have created a user with the EM_SSA_ADMINISTRATOR role. This user must have the EM_SSA_ADMIN and JVM Diagnostics Administrator privileges.

  • You must have created one or more users with the JVMDAAS role.

To set up quotas, follow these steps:

  1. Click the Quotas tab. This page shows the list of roles and the maximum number of JVMs allocated to each role.

    Figure 38-2 JVMDAAS - Quota

    Surrounding text describes Figure 38-2 .
  2. Click Create. In the Create Quota window that appears, specify the following:

    • Role Name: Specify the EM_SSA_USER role to which the quota is to be allocated.

    • JVMs: Specify the maximum number of JVMs or the quota that will be available to the selected role.

    • JVMD Engine: You can select either of the following:

      • JVM Diagnostics Engine: Select the JVM Diagnostics Engine that is to be registered for the JVM Diagnostics Service.

      • Custom: Specify the host and port number of the JVM Diagnostics Manager on which a load balancer has been enabled.

  3. Click OK to create the quota and return to the JVM Diagnostics Cloud Self Service Portal Setup page. The quota (JVM pool) with the specified number of JVMs is listed in the Quotas page.

You can edit or delete a quota by selecting the name of the role to which the quota has been assigned and clicking the Edit or Delete option as required.

Note:

If you modify a quota that contains active JVMs, the new quota will be applicable only to the new JVM connections. The existing JVMs will continue to use the old quota.

38.5 Monitoring JVM Diagnostics Agents and Engines

Click on the Home tab to view the JVM Diagnostics Home page. It contains the following regions:

  • Overview: This region shows the total number of JVM Pools and JVMs for which quota has been allocated. It shows the number of active and deactivated JVMs.

  • JVM States: This region shows a chart with the various states of the JVM.

  • Active JVMs: The Active JVMs region shows the number of the JVMs that are active for a specified duration.

  • JVMs and Pools: This region lists the JVMs and JVM Pools for which quota has been allocated. For each JVM Pool, the number of JVMs in the pool, the owner, and the date on which the JVM Pool was created is displayed. For each JVM, the status of the JVM (active or inactive), the owner, and the date on which it was created is displayed.

    You can Activate, Deactivate a JVM, or Remove a JVM Pool. You can click on a JVM Pool or a JVM to drill down to the corresponding home page.

  • Engines and Agents: This region shows the list of JVM Engines and JVM Agents.