#support

Increase Memory Limits to Fix Data Absence in Events Section

TLDR Muhammed is facing a problem after adding a JSON parser, where there's no data in events section. nitya-signoz suggests increasing memory limits. Issue is solved after increasing memory limits.

Powered by Struct AI
19
9mo
Solved
Join the chat
Feb 28, 2023 (9 months ago)
Muhammed
Photo of md5-c6b4211e54e9d9c5de7b081d0bcda56a
Muhammed
09:17 AM
Hi,
After adding json parser to my logs in k8s-infra log counter in logs section works but there is no data in events section, also fields are loaded correctly
Ankit
Photo of md5-dbe7088320fe1d922707613e02f3420d
Ankit
09:25 AM
cc: nitya-signoz
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
09:39 AM
Can you share the configuration?

Also if your fields are loaded but not visible in the UI there might be issues with timestamp.

Can you run the commands and share output
kubectl exec -n platform -it chi-my-release-clickhouse-cluster-0-0-0 -- sh

clickhouse client

use signoz_logs;

select timestamp,observed_timestamp from distributed_logs order by timestamp desc limit 10;
Muhammed
Photo of md5-c6b4211e54e9d9c5de7b081d0bcda56a
Muhammed
09:41 AM
┌───────────timestamp─┬──observed_timestamp─┐
│ 1677577033101391005 │ 1677577033114197754 │
│ 1677577033087210293 │ 1677577033114149167 │
│ 1677577033081940586 │ 1677577033113942963 │
│ 1677577033079232086 │ 1677577033114117714 │
│ 1677577033074985781 │ 1677577033114088974 │
│ 1677577033071399878 │ 1677577033113746096 │
│ 1677577033068867909 │ 1677577033114495821 │
│ 1677577033058288277 │ 1677577033114040042 │
│ 1677577033054256687 │ 1677577033114446222 │
│ 1677577033036741379 │ 1677577033114394174 │
└─────────────────────┴─────────────────────┘
09:41
Muhammed
09:41 AM
Image 1 for
09:41
Muhammed
09:41 AM
here you go
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
09:43 AM
interesting, can you share the API response of /logs endpoint from the network tab?
09:47
nitya-signoz
09:47 AM
Along with the request params ^
Muhammed
Photo of md5-c6b4211e54e9d9c5de7b081d0bcda56a
Muhammed
09:49 AM
There is no request with /logs only aggregate
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
09:50 AM
What version of SigNoz are you using?
09:50
nitya-signoz
09:50 AM
Palash can there be a case where /logs is not triggered on the UI ?
Muhammed
Photo of md5-c6b4211e54e9d9c5de7b081d0bcda56a
Muhammed
09:51 AM
v0.16.0
09:52
Muhammed
09:52 AM
Oh found some after a page refresh
{"status":"error","data":"Failed to fetch logs from the DB","errorType":"internal","error":"code: 241, message: Memory limit (total) exceeded: would use 3.62 GiB (attempt to allocate chunk of 5064994 bytes), maximum: 3.60 GiB. OvercommitTracker decision: Query was selected to stop by OvercommitTracker.: (while reading column attributes_string_value): While executing MergeTreeReverse"}

09:53
Muhammed
09:53 AM
here is the clickhouse resources
      resources:
        requests:
          cpu: 100m
          memory: 200Mi
        limits:
          cpu: 2000m
          memory: 4Gi
09:54
Muhammed
09:54 AM
I should increase resources?
or there are other settings?
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
09:56 AM
Yeah please increase the resources and try it out first. There are issues about this on clickhouse https://github.com/ClickHouse/ClickHouse/issues/17631 . But you can start by doubling up the resources and trying it out.
Palash
Photo of md5-914a8b39b82fd99b8ecd985427660deb
Palash
10:34 AM
> can there be a case where /logs is not triggered on the UI ?
I am not aware of such case... Muhammed can you please share the loom video for the same
Muhammed
Photo of md5-c6b4211e54e9d9c5de7b081d0bcda56a
Muhammed
10:45 AM
Fixed by increasing the memory limits
Palash
Photo of md5-914a8b39b82fd99b8ecd985427660deb
Palash
10:48 AM
oh great ... nitya-signoz can we update same in the docs

SigNoz Community

Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI

Indexed 1023 threads (61% resolved)

Join Our Community