# Topbeat: CPU/Memory usage per process

**URL:** <https://discuss.elastic.co/t/topbeat-cpu-memory-usage-per-process/43867>\
**Category:** Beats\
**Created:** [March 9, 2016, 7:21am UTC](https://discuss.elastic.co/t/topbeat-cpu-memory-usage-per-process/43867 "2016-03-09T07:21:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![krushnat\_khawale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krushnat_khawale/32/6652_2.png) [@krushnat\_khawale](https://discuss.elastic.co/u/krushnat_khawale)\
**Post date:** [March 9, 2016, 7:21am UTC](https://discuss.elastic.co/t/topbeat-cpu-memory-usage-per-process/43867/1 "2016-03-09T07:21:17Z")

</div>

**Hello Elastic { World },**

I am using **topbeat** , for high level monitoring. I've downloaded sample dashboards for topbeat  
and successfully able to load and use the amazing dashboards and widgets.

The widget that I am interested in is **CPU usage per process** and **Memory usage per process**.  
As mentioned they're working as follows,

 ![](https://us1.discourse-cdn.com/elastic/original/2X/4/46807c845415aa5fd7782bfdcf7dc9e74097a2c6.png)

The chart shows, Disk & memory usage for processes. What we want in this case is,

```
Instead of showing usage for java.exe, is it possible to show what java processes are running / using them?
In our case, we are using tomcat, eclipse and other application under java category. My question is,
   Is it possible to show Disc & memory usage per process, like for Tomcat, Eclipse etc...?
```

---

<div class="post-metadata">

**Author:** ![monica](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monica/32/3696_2.png) [@monica](https://discuss.elastic.co/u/monica)\
**Post date:** [March 18, 2016, 1:44pm UTC](https://discuss.elastic.co/t/topbeat-cpu-memory-usage-per-process/43867/2 "2016-03-18T13:44:46Z")

</div>

You can use the command line instead of the process name to differentiate between the java processes. Let me know if this helps.

---

<div class="post-metadata">

**Author:** ![krushnat\_khawale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krushnat_khawale/32/6652_2.png) [@krushnat\_khawale](https://discuss.elastic.co/u/krushnat_khawale)\
**Post date:** [March 21, 2016, 5:00am UTC](https://discuss.elastic.co/t/topbeat-cpu-memory-usage-per-process/43867/3 "2016-03-21T05:00:38Z")

</div>

Hi @monica ,

Thanks for your response! What you mean by ' **You can use the command line instead of the process name to differentiate between the java processes**'

Regards, KK

---

<div class="post-metadata">

**Author:** ![krushnat\_khawale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krushnat_khawale/32/6652_2.png) [@krushnat\_khawale](https://discuss.elastic.co/u/krushnat_khawale)\
**Post date:** [March 31, 2016, 3:42am UTC](https://discuss.elastic.co/t/topbeat-cpu-memory-usage-per-process/43867/4 "2016-03-31T03:42:27Z")

</div>

@warkolm @monica @magnusbaeck @dadoonet @steffens@andrewkroh

Here is our use case:

```
1. We need to map the processes against application.
2. We need to dashboard the applications that are running, based on memory usage, disk usage and cpu usage.
3. We need some kinda alert mechanism which let us notices said over-usage.

```

We are getting the processes, but it is listing with parent processes under which the subprocesses are started, as explained in my question above( the very first post)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 31, 2016, 9:04pm UTC](https://discuss.elastic.co/t/topbeat-cpu-memory-usage-per-process/43867/5 "2016-03-31T21:04:24Z")

</div>

> [@krushnat\_khawale](#):
>
> @warkolm @monica @magnusbaeck @dadoonet @steffens@andrewkroh

Please don't do this, it's rather rude.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [March 31, 2016, 10:05pm UTC](https://discuss.elastic.co/t/topbeat-cpu-memory-usage-per-process/43867/6 "2016-03-31T22:05:14Z")

</div>

> [@krushnat\_khawale](#):
>
> \1. We need to map the processes against application.

You can use the [`proc.cmdline`](https://www.elastic.co/guide/en/beats/topbeat/current/exported-fields-process.html#_proc_cmdline) field to map the process against the application. If you send the data through Logstash you could even apply per-application tagging based on the content of the `proc.cmdline` field.

> [@krushnat\_khawale](#):
>
> \2. We need to dashboard the applications that are running, based on memory usage, disk usage and cpu usage.

You won't be able to determine disk usage per process. Topbeat reports disk level information. Do these apps have a unique user or specific directory that you will use for attributing disk usage to a process?

> [@krushnat\_khawale](#):
>
> \3. We need some kinda alert mechanism which let us notices said over-usage.

We have [Watcher](https://www.elastic.co/products/watcher) for alerting if you have a [subscription](https://www.elastic.co/subscriptions). You can try it for 30 days.

---

<div class="post-metadata">

**Author:** ![krushnat\_khawale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krushnat_khawale/32/6652_2.png) [@krushnat\_khawale](https://discuss.elastic.co/u/krushnat_khawale)\
**Post date:** [April 7, 2016, 6:32am UTC](https://discuss.elastic.co/t/topbeat-cpu-memory-usage-per-process/43867/7 "2016-04-07T06:32:14Z")

</div>

@andrewkroh,

1. My topbeat fields list doesn't contain **proc.cmdline** field.

2. Elaborate please, **Do these apps have a unique user or specific directory that you will use for attributing disk usage to a process?**

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 9:53pm UTC](https://discuss.elastic.co/t/topbeat-cpu-memory-usage-per-process/43867/8 "2017-07-05T21:53:42Z")

</div>


