Session isolation in Headless Chrome

386 views
Skip to first unread message

Sami Kyostila

unread,
Jun 8, 2016, 12:29:59 PM6/8/16
to headless-dev
(bcc: platform-architecture-dev@)

For efficiency reasons we want to be able to run several parallel sessions in the same headless browser instance. However these sessions should be isolated to avoid accidental cross-talk (e.g., two sessions might want to load the same URL but use different cookies).

I've put together a design doc about our current thinking around this:


All comments welcome!

- Sami

Giang Nguyen

unread,
Jun 8, 2016, 1:06:55 PM6/8/16
to Sami Kyostila, headless-dev
👍

--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/CAPuLczt_5P1C8nixzi9vtjpn2kVqVnB0cz6yroZXT9qJtfxt1g%40mail.gmail.com.

Kentaro Hara

unread,
Jun 9, 2016, 3:37:52 AM6/9/16
to Sami Kyostila, headless-dev
The option 3 looks like a reasonable way to go.

If you observe big memory regressions, you can try low-RAM mode. Low-RAM mode is slower but consumes much less memory. For example, CC tends to use a ton of memory for performance in non-low-RAM mode but CC extremely throttles the memory in low-RAM mode. At the very least, we can say:

- if you still observe big memory regressions on low-RAM mode, it means that we should give up the option 3.
- if low-RAM mode gives you acceptable memory usages, it means that there is a solution for the option 3.



--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architect...@chromium.org.
To post to this group, send email to platform-arc...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAPuLczt_5P1C8nixzi9vtjpn2kVqVnB0cz6yroZXT9qJtfxt1g%40mail.gmail.com.



--
Kentaro Hara, Tokyo, Japan
Reply all
Reply to author
Forward
0 new messages