


You can also choose Network, or Swap Space if you like to monitor those. Select the following check-boxes under the ‘Monitored Resources’ section. Right mouse click on the Processes graph that is displayed on the task bar panel, and select ‘Preferences’.
#Ubuntu display memory usage code
I changed the code to avoid this situation (exiting the main thread with pthread_exit(NULL)) and the issue is gone - though the code itself will be reverted back to the previous state which exited the main thread.īTW "pmap -x pid" gives this (with pthread_exit() used to exit the main thread): Add Memory Usage, Load Average and Disk Usage Graphs to Ubuntu Task Bar Panel.

jstat -gccapacity insert-pid-here will present information about memory pool generation and space capabilities. Once you have the pid, you can use jstat -gc insert-pid-here to find statistics of the behavior of the garbage collected heap. It creates a thread and exits from the main thread while keeping the application/process running the other thread(s), and the "System Monitor" probably somehow relies on the main thread being alive. 18 Answers Sorted by: 197 Each Java process has a pid, which you first need to find with the jps command. You can log into your SolusVM control panel, click Manage next to your VPS and then select the. Pthread_create(&thread, NULL, ufbioListenThread, NULL) It also allows you to check resource usage of your VPS. Use the cat command / less command or grep command / egrep command as follows on your Linux box: cat /proc/meminfo. "Defunct" probably because my main() function is: The /proc/meminfo file reports statistics about memory usage on Linux.
