Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Setting JVM Parameters for Collectors

Updated on 2025-02-17 GMT+08:00

Windows

The following procedure uses Windows 11 and rda-collector-server as an example.

  1. Navigate to the location of the startup script.

    Go to the MgC Agent installation directory (C:\Edge by default) and find .\tools\plugins\collectors\rda-collector-server\bin\start.bat. rda-collector-server can be replaced with the collector you want to configure. The supported collectors include:

    Database collector rda-collector-database

    Container collector rda-collector-kubernetes

    Platform collector rda-collector-platform

    Server collector rda-collector-server

    Storage collector rda-storage-collector

  2. Set the JVM parameters.

    1. In the MgC Agent installation directory (C:\Edge by default), edit .\tools\plugins\collectors\rda-collector-server\bin\start.bat.
    2. Add the following JVM parameters after -jar in the second statement.
      -Xms512M -Xmx1024M

      In the preceding information, -Xms512M -Xmx1024M are the JVM parameters to be configured. -Xms512M indicates that the initial heap memory allocated to the JVM is 512 MB. -Xmx1024M indicates that the maximum heap memory that can be allocated to the JVM is 1,024 MB. You can add other JVM parameters as required.

    3. Save and exit start.bat. The JVM parameters are configured for the server collector.

  3. Restart the collector.

    The JVM parameters will be applied after the collector is restarted.
    1. Go to the MgC Agent installation directory (C:\Edge by default) and run .\tools\plugins\collectors\rda-collector-server\bin\stop.bat as the administrator.
    2. Run the collector startup script start.bat in the same directory.

  4. Query the JVM parameters of the collector.

    1. Press Ctrl, Alt, and Delete and select Task Manager on the displayed page to open it. In the Task Manager dialog box, choose the Details tab.
    2. Find rda-collector-server.exe and check its PID.

    3. Open Command Prompt as the administrator, enter the following command, and press Enter:
      jinfo PID
      In the preceding command, PID indicates the PID of the MgC Agent program. You can view the effective JVM parameters in the command output.
      Figure 1 Command prompt

Linux

The following procedure uses CentOS 8 and rda-collector-server as an example.

  1. Navigate to the location of the startup script.

    Go to the MgC Agent installation directory. The default directory is /opt/cloud/Edge. Find /tools/plugins/collectors/rda-collector-server. rda-collector-server can be replaced with the collector you want to configure. The supported collectors include:

    Database collector rda-collector-database

    Container collector rda-collector-kubernetes

    Platform collector rda-collector-platform

    Server collector rda-collector-server

    Storage collector rda-storage-collector

    Big data collector bigdata-migration

  2. Set the JVM parameters.

    1. In the MgC Agent installation directory (/opt/cloud/Edge by default), edit /tools/plugins/collectors/rda-collector-server.
    2. Create the start.sh file and add the following information to the file:
      nohup java -jar -Xms256M -Xmx512M rda-collector-server.jar >/dev/null 2>&1 &

      In the preceding information, -Xms512M -Xmx1024M are the JVM parameters to be configured. -Xms512M indicates that the initial heap memory allocated to the JVM is 512 MB. -Xmx1024M indicates that the maximum heap memory that can be allocated to the JVM is 1,024 MB. You can add other JVM parameters as required.

    3. Save and exit start.bat. The JVM parameters are configured for the server collector.

  3. Restart the collector.

    The JVM parameters will be applied after the collector is restarted.
    1. Run the following command to view the PID of the collector:
      ps -ef|grep java
    2. Enter the following command and press Enter to stop the collector.
      Kill -9 PID
    3. Enter the following command to run the new startup script start.sh:
      sh start.sh

  4. Query the JVM parameters of the collector.

    Run the following command to view the JVM parameters of the collector:

    ps -ef|grep java

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback