Out Of memory error in kibana

I am not pretty much sure but I received

Discover: [out_of_memory_error] Java heap space

.... After clicking more info I received this

Error: [out_of_memory_error] Java heap space
ErrorAbstract@http://X.X.X.X/bundles/kibana.bundle.js:62826:20
StatusCodeError@http://X.X.X.X/bundles/kibana.bundle.js:62988:6
respond@http://X.X.X.X/bundles/kibana.bundle.js:64193:16
checkRespForFailure@http://X.X.X.X/bundles/kibana.bundle.js:64156:8
[24]</AngularConnector.prototype.request/<@http://X.X.X.X/bundles/kibana.bundle.js:62774:8
processQueue@http://X.X.X.X/bundles/commons.bundle.js:41837:29
scheduleProcessQueue/<@http://X.X.X.X/bundles/commons.bundle.js:41853:28
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://X.X.X.X/bundles/commons.bundle.js:43081:17
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://X.X.X.X/bundles/commons.bundle.js:42892:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://X.X.X.X/bundles/commons.bundle.js:43189:14
done@http://X.X.X.X/bundles/commons.bundle.js:37638:37
completeRequest@http://X.X.X.X/bundles/commons.bundle.js:37836:8
requestLoaded@http://X.X.X.X/bundles/commons.bundle.js:37777:1

I am not sure whether its kibana error or elastic .

It looks like Elasticsearch is out of memory, and Kibana is just reporting back the error it's receiving.