Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7603973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:47:18+00:00 2026-05-30T23:47:18+00:00

When a job is created, I want to assign it to the less dense

  • 0

When a job is created, I want to assign it to the less dense server. How can i check servers’ “JVM / CPU / Memory” at runtime? (I have 4 server)(İt must return a value to me)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:47:20+00:00Added an answer on May 30, 2026 at 11:47 pm

    You can do this, with no external dependencies, by utilizing system properties and the Java Management API.

    These properties are more then enough to determine the VM;

    java.vm.specification.version   Java Virtual Machine specification version
    java.vm.specification.vendor    Java Virtual Machine specification vendor
    java.vm.specification.name  Java Virtual Machine specification name
    java.vm.version         Java Virtual Machine implementation version
    java.vm.vendor          Java Virtual Machine implementation vendor
    java.vm.name            Java Virtual Machine implementation name
    java.specification.version  Java Runtime Environment specification version
    java.specification.vendor   Java Runtime Environment specification vendor
    java.specification.name     Java Runtime Environment specification name
    

    And you can use the following management beans to determine CPU and memory:

    ManagementFactory.getMemoryMXBean();
    ManagementFactory.getOperatingSystemMXBean();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a very simple sharepoint timer job. All i want it to
I want my job to do some commands on other servers. I've created a
I have created the cron job with whenever (https://github.com/javan/whenever): every 1.hours do rake scrape
I have created a single-instance application and want to activate an already opened window
I have created one shell script in my lib folder. And i want to
I have created a job with the at command on Solaris 10. It's working
I have created free-style software project in Hudson. I want to clone a public
I have created a batch file that regularly gets triggered from an automated job.
I have created many interlinked tables as user "SCOTT" in oracle DB. I want
I have created a jTable on an UI, where I want to change a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.