How to get processor load using Javascript or Java

How can I get the processor load on the client machine.

I created a Java web application and where I need to get the processor load on the client machine.

Can this be done using Javascript or Java?

+3
source share
7 answers

Regardless of whether you use Java or Javascript, you cannot use CPU utilization on the client computer. This will be a huge security risk. The only way to do this is to install the plug-in. However, this would not help too much, since reading the processor load was platform-specific.

+1
source

, JavaScript . :

kgiannakakis, , setInterval().

Mindmeister.com ( ).

+1

@Daniel , ( ) .

@kgiannakakis , .

. ? .

, , - / - - - . " ", s/w . ( A1/A2).

+1

java OperatingSystemMXBean, , , , Java 1.6.

OperatingSystemMXBean operatingSystemInfo = 
    (com.sun.management.OperatingSystemMXBean)ManagementFactory.getOperatingSystemMXBean();

, .

0

, XML DOM JavaScript BSP .

article .

0

I once considered creating a Web Start application that a user can run to “scan” their system equipment. Fortunately, the target systems were Windows drawers, so I used the Jacob package (Google or search on this site for information) to execute a WMI request for things like serial numbers, etc.

I created a proof of concept for the Swing client application, but never reached the web launch part.

0
source

Source: https://habr.com/ru/post/1730979/


All Articles