简体   繁体   中英

How can I measure CPU and Memory in java web application run through tomcat in netbeans

How can I measure CPU and Memory in java web application run through tomcat in netbeans.

I just need something like CPU utilized is 4% and memory utilization is 40 MB.

something like process explorer in windows, where i can chose firefox for example and i can see how much percentage is used and memory?

Appreciate your support.

PS: I used Netbeans Profiler and it was very detailed that i could not understand what exactly amount of memory or CPU is utilized!

What OS do you run on ? All of them have somewhat advanced monitors that might help you.

Directly though java though, netbeans profiler seems like the way to go. Which stats do you want specificaly ?

Try this:

in the Projects Window, right click on your Web project and select "Profile"

A Profile window appears. On the left top corner of the window, click on the drop down arrow and select the "Telemetry" screen.

Click on the Profile button again and select to start the application on the web server of choice.

This is how it should look like:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM