Hello! You can spawn multiple instances of your application on several ports (even on several machines). See example of doing so: http://www.webtoolkit.eu/wt/blog/2010/11/24/haproxy___wt__a_good_good_match
However, even one wthttpd instance can scale up to multiple cpus (at least to multiple cores), since it uses several threads (10 by default). Because the locks are (nearly) not used in Wt applications, these threads do not disturb each other. If you have >10 cores, just increase threads number (option --threads of wthttpd). CSS loading problems are likely to be a bug of wthttp. PS. You'd better use front-end webserver (e.g., nginx) to host CSS and other static files. wthttpd is not so good on hosting static files. On Mon, Jun 4, 2012 at 6:13 AM, Mohammed Rashad <[email protected]> wrote: > Hi, > Is it possible to spawn a new instance of wthttpd application when there are > more number of users accessing it. for example the 0-5 users gets instance1 > and 5-10 gets instance2 and so on. My application is not scaling up for > cloud system. Is it because of builtin httpd server. I used monit and I > found that it uses less cpu and ram but still application hangs and is > becoming slow even with good internet connection. For example, a WDialog > appears with some text and nothing in the background (CSS loading problems) > > Is there anything which I can do to make my Wt httpd application to scale up > to use more resources if needed ? > > Can Wt httpd application make use of multiple cpus ? > > -- > Regards, > Rashad > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
