Skip to content

Gloomberb runs suddenly extremely laggy (100% CPU use of one CPU core) #452

Description

@ristomatti

On #422 I commented about the app freezing. It's not actually freezing completely but is just extremely laggy. I tried restoring a backup from earlier today when the app was working fine. The backup included both ~/.gloomberb and the project source before pulling new changes (at commit dbf43b5). The backed up version did not work either though.

This makes me suspect either network connectivity issues or maybe changes done in Gloomberb Cloud (or Yahoo API's). Has something changed?

With some patience I was able to export a debug log. I'm not pasting the whole log here, but there's a lot of lines line this:

[18:54:35.563] INFO  [startup] tickers loaded  {"count":1934}
[18:54:35.564] INFO  [startup] refresh plan built  {"count":17,"financials":17,"quotes":0,"priority0":5,"priority1":0,"priority2":12,"symbols":["financials:BNOR.OL","financials:IXUA","financials:ES6Y","financials:ALV","financials:3529","financials:CIBR","financials:MRVL","financials:ASML","financials:000660","financials:SXR8","financials:INTC","financials:SIE","financials:AAPL","financials:SXR8.DE","financials:IXUA.DE","financials:SEC0","financials:QCOM"]}
[18:54:35.566] WARN  [quote-resolution] Rejected incoming stale quote contribution for the current session  {"incomingProviderId":"gloomberb-cloud","incomingPrice":23.235,"lastUpdated":1780414200000,"marketState":"CLOSED","exchange":"XETRA","symbol":"ES6Y"}
[18:54:35.567] WARN  [quote-resolution] Rejected incoming stale quote contribution for the current session  {"incomingProviderId":"yahoo","incomingPrice":5.941,"lastUpdated":1779317773197,"marketState":"CLOSED","exchange":"GER","symbol":"IXUA.DE"}
[18:54:35.567] WARN  [quote-resolution] Rejected incoming stale quote contribution for the current session  {"incomingProviderId":"yahoo","incomingPrice":385.6,"lastUpdated":1779486914038,"marketState":"CLOSED","exchange":"GER","symbol":"ALV.DE"}
[18:54:35.571] WARN  [quote-resolution] Rejected stale quote contribution for the current session  {"providerId":"gloomberb-cloud","price":2333000,"marketState":"CLOSED","lastUpdated":1780034400000,"exchange":"KRX","symbol":"000660"}
[18:54:35.576] WARN  [quote-resolution] Rejected stale quote contribution for the current session  {"providerId":"yahoo","price":203.545,"marketState":"REGULAR","lastUpdated":1778605721154,"exchange":"NMS","symbol":"QCOM"}
[18:54:35.578] WARN  [quote-resolution] Rejected incoming stale quote contribution for the current session  {"incomingProviderId":"gloomberb-cloud","incomingPrice":392.765,"lastUpdated":1781038680000,"marketState":" POST ","exchange":"NASDAQ","symbol":"AVGO"}
[18:54:35.587] WARN  [quote-resolution] Rejected incoming stale quote contribution for the current session  {"incomingProviderId":"yahoo","incomingPrice":119.24,"lastUpdated":1779397735017,"marketState":"CLOSED","exchange":"EBS","symbol":"NOVN.SW"}
[18:54:35.588] WARN  [quote-resolution] Rejected incoming stale quote contribution for the current session  {"incomingProviderId":"yahoo","incomingPrice":294.305,"lastUpdated":1780419894658,"marketState":"REGULAR","exchange":"NMS","symbol":"PANW"}
[18:54:35.589] WARN  [quote-resolution] Rejected stale quote contribution for the current session  {"providerId":"gloomberb-cloud","price":27.5,"marketState":"CLOSED","lastUpdated":1780639956000,"exchange":"ASX","symbol":"SGM"}

Error level logs with a bit of surrounding context included:

[18:57:03.864] WARN  [quote-resolution] Rejected stale quote contribution for the current session  {"providerId":"gloomberb-cloud","price":27.5,"marketState":"CLOSED","lastUpdated":1780639956000,"exchange":"ASX","symbol":"SGM"}
[18:57:03.866] ERROR [main-thread] event loop blocked  {"scope":"opentui","lagMs":12010.4,"elapsedMs":12060.4,"sampleIntervalMs":50,"sampleCount":195,"maxLagMs":13118.2}
[18:57:03.891] WARN  [quote-resolution] Rejected stale quote contribution for the current session  {"providerId":"yahoo","price":203.545,"marketState":"REGULAR","lastUpdated":1778605721154,"exchange":"NMS","symbol":"QCOM"}
--
[18:57:15.941] WARN  [quote-resolution] Rejected stale quote contribution for the current session  {"providerId":"gloomberb-cloud","price":27.5,"marketState":"CLOSED","lastUpdated":1780639956000,"exchange":"ASX","symbol":"SGM"}
[18:57:15.953] ERROR [main-thread] event loop blocked  {"scope":"opentui","lagMs":12036.9,"elapsedMs":12086.9,"sampleIntervalMs":50,"sampleCount":196,"maxLagMs":13118.2}
[18:57:27.865] WARN  [quote-resolution] Rejected stale quote contribution for the current session  {"providerId":"yahoo","price":88,"marketState":" POST ","lastUpdated":1780419989499,"exchange":"GER","symbol":"IFX.DE"}
--
[18:57:38.862] WARN  [quote-resolution] Rejected stale quote contribution for the current session  {"providerId":"gloomberb-cloud","price":27.5,"marketState":"CLOSED","lastUpdated":1780639956000,"exchange":"ASX","symbol":"SGM"}
[18:57:38.864] ERROR [main-thread] event loop blocked  {"scope":"opentui","lagMs":10812.7,"elapsedMs":10862.7,"sampleIntervalMs":50,"sampleCount":200,"maxLagMs":13118.2}
[18:57:38.871] ERROR [perf] persist.config.save  {"durationMs":10932.3}
[18:57:49.485] WARN  [quote-resolution] Rejected stale quote contribution for the current session  {"providerId":"yahoo","price":88,"marketState":" POST ","lastUpdated":1780419989499,"exchange":"GER","symbol":"IFX.DE"}
--
[18:58:22.600] WARN  [cloud-api] websocket closed  {"quoteTargets":23,"channelTargets":1,"code":1006,"reason":"Connection ended","tokenSource":"session"}
[18:58:22.606] ERROR [main-thread] event loop blocked  {"scope":"opentui","lagMs":10713.2,"elapsedMs":10763.2,"sampleIntervalMs":50,"sampleCount":204,"maxLagMs":13118.2}
[18:58:33.335] ERROR [main-thread] event loop blocked  {"scope":"opentui","lagMs":10612.8,"elapsedMs":10662.8,"sampleIntervalMs":50,"sampleCount":206,"maxLagMs":13118.2}
[18:58:33.353] INFO  [cloud-api] open websocket  {"hasToken":true,"tokenSource":"session","quoteTargets":23,"channelTargets":1}
[18:58:44.155] ERROR [main-thread] event loop blocked  {"scope":"opentui","lagMs":10696.5,"elapsedMs":10746.5,"sampleIntervalMs":50,"sampleCount":208,"maxLagMs":13118.2}
[18:58:44.167] ERROR [perf] persist.config.save  {"durationMs":10831.3}
[18:58:54.992] INFO  [cloud-api] websocket open
[18:58:54.993] INFO  [cloud-api] send websocket message  {"type":"chat.subscribe","channelId":"everyone"}
[18:58:54.993] INFO  [cloud-api] send websocket message
[18:58:54.993] INFO  [cloud-api] websocket ready  {"emailVerified":true}
[18:58:54.993] ERROR [main-thread] event loop blocked  {"scope":"opentui","lagMs":10787.8,"elapsedMs":10837.8,"sampleIntervalMs":50,"sampleCount":209,"maxLagMs":13118.2}
[18:59:05.846] WARN  [quote-resolution] Rejected stale quote contribution for the current session  {"providerId":"yahoo","price":88,"marketState":" POST ","lastUpdated":1780419989499,"exchange":"GER","symbol":"IFX.DE"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions