8GB memory usage of browser - freezing

Kibana version: 5.1.2

Elasticsearch version: 5.1.2

Server OS version: Ubuntu AWS

Browser version:FFox 50.1

Browser OS version: MAC OS SIERRA 10.12

Steps to reproduce:
This visual:
{
"title": "flows_Bkup2",
"type": "area",
"params": {
"shareYAxis": true,
"addTooltip": true,
"addLegend": true,
"legendPosition": "right",
"smoothLines": false,
"scale": "linear",
"interpolate": "linear",
"mode": "stacked",
"times": ,
"addTimeMarker": false,
"defaultYExtents": false,
"setYExtents": false,
"yAxis": {}
},
"aggs": [
{
"id": "1",
"enabled": true,
"type": "sum",
"schema": "metric",
"params": {
"field": "FLOWS"
}
},
{
"id": "2",
"enabled": true,
"type": "terms",
"schema": "segment",
"params": {
"field": "@timestamp",
"size": 35000,
"order": "asc",
"orderBy": "_term"
}
}
],
"listeners": {}
}

Depending on high value for field "size"
screen shot 2017-01-26 at 12 59 03

Errors in browser console (if relevant):
Freezes, slow. Minimum takes 10 secs to load for every click
PC uses 8GB Mem

Hi @wolframklug,

It looks like you have a very large number of x-axis buckets, which could be causing the memory issue you are seeing. I suspect your x-axis @timestamp interval is set to quite a high granularity. Could you try to make the interval use a lower granularity and see if that helps? So, for instance, if your interval is currently set to "Second", try changing it to "Minute" or "Hour".

Hope that helps,

Shaunak

Hi Shaunak,
I appreciate that we even get replies on this forum. GREAT!
How can I set the granularity of the timestamp?

[cid:3D659FD1-C140-4F76-93FF-4777E8C49FD1@fritz.box]

In the visualization editor form on the left hand side of the page, there is a "buckets" section. Under that you have an "X-Axis" section. From your first screenshot it looked like you had it configured to use a "Date Histogram" aggregation on the "@timestamp" field. When you are configuring this aggregation, there is another form field called "Interval". That is where you can control the granularity of @timestamp, like so:

Turning it into a date histogram was a good suggestions.
THX

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.