# How to find what Function/Binding is using my (java-)Memory?

**URL:** <https://community.openhab.org/t/how-to-find-what-function-binding-is-using-my-java-memory/92975>\
**Category:** Runtime\
**Created:** [February 17, 2020, 9:47am UTC](https://community.openhab.org/t/how-to-find-what-function-binding-is-using-my-java-memory/92975 "2020-02-17T09:47:25Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![matt1](https://community.openhab.org/user_avatar/community.openhab.org/matt1/32/19930_2.png) [@matt1](https://community.openhab.org/u/matt1)\
**Post date:** [February 19, 2020, 9:54am UTC](https://community.openhab.org/t/how-to-find-what-function-binding-is-using-my-java-memory/92975/6 "2020-02-19T09:54:09Z")

</div>

High cpu is probably caused by the java garbage collection running all the time trying to free up space on the heap/stack. Free memory is not the same as free memory in the java heap.

To see it and confirm do the shell:info command in karaf console.

Example of how is here:

> [@IpCamera: New IP Camera Binding](https://community.openhab.org/t/ipcamera-new-ip-camera-binding/42771/388):
>
> @Pedals2Paddles For anyone that gets OOME (out of memory errors) with the java heap space, then this is how I solved it to allow me to drop the refresh down to 1000ms. I have had my two cameras running for \>24 hours without issues. I suspect this has to do with javas garbage collection not running often enough to deal with the large amounts of data passing through the image item if you are running your system close to the max allocated heap size. In the openhab console run this command (option…

---

_[View the full topic](https://community.openhab.org/t/how-to-find-what-function-binding-is-using-my-java-memory/92975)._
