Memory usage sentinel.openai.com

Hello Dev team

The Chatkit is integrated into my website and working, however a process by sentinel.openai.com:iframe.html is consuming all the Memory and network resources when the chatkit agent is opened on the landing page , it only takes a few minutes for this process to consume 8.5 gigs of memory, I am unable to resolve as Sentinel is critical for the Chatkit agent implementation, is there a conflict between Mixpanel and Sentinel on your end? wild guess.

Snap shots can be provided, and other addtional logs for analysing if requested, Thanks a lot !! Cheers!!

1 Like

Hello Dev team,

I have been unable to solve this issue with Chatkit, your sentinel.openai.com is using excessive memory for anyone who visits the site , within a few minutes, it can reach 8 gigs in size. See latest screen shot.

Thanks

1 Like

I am having the same issue. It only happens on browser profiles where I have active extensions.

I was experiencing the same issue where the sentinel.openai.com iframe was using an excessive amount of memory when ChatKit was loaded. The solution that worked for me was to first test the site in a private or incognito window and temporarily disable all browser extensions. After doing that, the memory problem disappeared, and I was able to identify that one of the extensions was causing the issue. I also reviewed my security headers and adjusted the Cross-Origin Embedder Policy from require-corp to credentialless, which helped stabilize things further. After these changes, the memory usage returned to normal.

2 Likes

Thanks OsamaEid for tip, deployed it to staging, failed the QA testing, still plugging away at it m cheers

Update,

Decided to go the mitigation route at this time, to keep pushing forward.

  • aggressive memory leak caused by a conflict between OpenAI’s sentinel iframe (used by ChatKit) and browser extensions

The Trigger: When ChatKit loads, it spawns a hidden iframe (sentinel.openai.com) for security.

The Conflict: Browser extensions try to inject their content scripts into this iframe.

The Leak: The iframe fights this injection, creating an infinite loop of new “Detached DOM Trees” and Javascript contexts.

:crossed_swords: The Solution: Lazy Load ChatKit
To stop ChatKit (and the sentinel iframe) from loading until the user actually clicks the chat button.

(DOMContentLoaded) moved into the openChat() function.

Result, only chatkit users suffer memory leak. not passive users

Cheers! all

1 Like

@Fxagent Can you share an example OS/Browser/Extension combination that creates this issue? We haven’t been able to reproduce the conditions on our end.

1 Like

Hey guys, Our team is actively looking into this issue. Can someone please share the information Tyler is asking above, so we can reproduce.

tagging @Fxagent @Donat_Imeri @OsamaEid

For me it happens on MacBook Air M2, v. 15.6.1.
The browser I am using is Google Chrome Version 143.0.7499.193 (Official Build) (arm64).
The extension which is causing the issue is MetaMask Version 13.13.1.

Thank you for sharing the info. I will pass it on to our engineering team. We will have an update soon. Thank you for helping!

1 Like

Thank you for the reports, all! We have successfully repro’d internally and are working on a fix. We suspect this will be deployed within the next week.

1 Like

Hello Tyler,

Applogies for late reply, chrome Version 143.0.7499.193 (Official Build) (64-bit) , Windows 11 , no extentions enabled on landing page , sent Dm with more testing details for your team , thanks for looking into this Dev team, cheers

Hey everyone, Our team has deployed a fix and the behaviour should be better now. Thank you!

3 Likes

Thank you dev team unfortunately I cannot confirm at this, time , however will follow up thanks :folded_hands:

FaxAgent

Confirmed Fixed, Brower tab maintains a healthy memory limit, thanks !