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 8085965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:18:26+00:00 2026-06-05T18:18:26+00:00

For developing an devices monitor system, I am using a InetAdress isReachable method to

  • 0

For developing an devices monitor system, I am using a InetAdress isReachable method to know if the device in a network is online or not.I am using the ScheduledExecutorService along with list of devices to ping the icmp devices concurrently.

Now if the devices number is low(say 60 devices) to be pinged by ScheduledExecutorService with a pool of 10 threads,it works fine..Means result will correctly show the device status.Here the isReachable has a time out of 5000 ms.
If the devices number gets increased say to 80, some devices shows the offline status with isReachable method even if the device is online.If I increase the time out of isReachable method to 10000 ms, the devices status can have better chance to have a correct status.

From these devices, most of the devices are Linux based system and isReachable always return the correct status for them but for Windows, the behavior is unpredictable.
I want to be sure always of correct status for the devices on a network. There can also be an alternative mechanism by starting a java process to see the exit value 0 for online devices.

For e.g “Process proc = new ProcessBuilder("ping", host).start();“

So, what experts will advice? Will the checking status for a device with a Process as stated above will be more better and reliable than isReachable call?

  • 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-06-05T18:18:28+00:00Added an answer on June 5, 2026 at 6:18 pm

    Running ping in subprocesses is unlikely to make things much better; while there will be less load on the Java process, you’re just shifting it around within one machine. (Furthermore, I’m not sure if you can actually ping multiple machines at once from one host, due to the way that ICMP ECHO — the standardized core of ping — works.) The other issue you’re likely to run into is that a machine can be responding to ping without actually being usefully reachable; I’ve seen machines where the kernel was working (making it pingable) but where there were no working user processes, and you can easily imagine the particular interesting service on the machine being down. (Also, some firewalls block ping.) It’s far better to actually detect if each of the machines is working using some kind of do-nothing connection to the real service running on that machine.

    If you’re really looking into keeping track of the status of large numbers of machines, you should look into using software designed for the task (e.g., Nagios). That’s much more a question for ServerFault than Stack Overflow…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I must developing an network monitor to monitoring several components using snmp. I save
We are developing a system for Android devices. For that we are using FC16,
We are developing wireless ad hoc communication applications on windows mobile 6 devices using
I'm developing an application that among other things, enumerates all input audio devices (using
I am developing some bandwidth utilization monitor tool using jpcap. what am i doing:-
I'm developing an app for android mobile devices. I'm using the AVD emulator and
I am developing an application for Windows 7 devices and I'm using an embedded
We are developing a vehicle tracking system in which several GPS devices keep sending
I'm developing an application for Windows Mobile Devices using Visual Studio .NET 2008 whose
I am developing an iphone/ipad app to connect with other devices through Bluetooth using

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.