Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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
1  
@Tiago Cool, I think you can do this with a single instance. Good luck –  Rich Homolka Jun 7 '11 at 20:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.