Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is is possible to use only one Xvfb process to serve multiple clients simultaneously?

Or, phrasing it differently: A Xvfb process maps directly to one screen, i.e., multiple clients share the same screen, or each new client gets a new, isolated, screen?

share|improve this question
up vote 1 down vote accepted

Yes, you can have multiple clients per Xfvb screen, much as your X display can have multiple clients.

Remember that Xvfb is essentially an XServer without a screen, just peeling off the actual video card writing and manipulation.

I'm curious as to why you need this? We needed to run this for Java code that couldn't run headless. It needed a frame buffer to write to even though it was dumping to a file only.

share|improve this answer
Thanks, Rich! I'm building a service that takes screenshots from webpages using QtWebkit. For that, I'll have multiple workers watching a queue and I was wondering if I'd have to have one Xvfb process for each of those workers or if I could use only one Xvfb process for all workers. – Tiago Jun 7 '11 at 17:52
@Tiago Cool, I think you can do this with a single instance. Good luck – Rich Homolka Jun 7 '11 at 20:04
@Tiago like – x29a Sep 23 '15 at 6:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .