At 12:48 PM 10/1/01 -0700, Russell Blank wrote: >I originally sent this message to the wrong mailing list. Sorry if it is a >duplicate. > >I have created a website with webware and webkit modules. It is working out >great. However, I have three problems that I need to resolve before I can >go live with my site: > >First, I have noticed during testing that all my pages are single threaded. >Even simple HTML pages that are for testing. I am running the WebKit >Threaded App Server as a service on Win 2000, so I am assuming that these >pages should be threaded. I have noticed this threading issue by the >following tests:
The servlets instances themselves are single-threaded. But the app server creates multiple servlet instances when necessary. So if the same servlet is being requested simultaneously by three different requests, the app server will create 3 servlet instances to process those requests. It then holds onto those servlets for future use. > Asking for a constant refresh from the browser on one machine and then >asking for a refresh on another. The new session will not be completed >until I let up the refresh request on the original session. I thought that >this might be due to hitting the server hard, but my pages are simple and >with other types of dynamic content servers, this test was no problem. >Other ways I have tested this issue is by making a simple post on one page >that takes a few seconds to return and immediately request a simple page in >another session, the simple request will not be completed until the first is >finished. I don't have the same problem here. This has to be a configuration issue. What version of Webware are you using? What adapter are you using (WebKit.cgi or something else)? Look in your AppServer.config file. What are the settings for numbers of threads? When you start up the appserver from the command-line, does it say "Creating 10 threads.........." at some point? >To resolve this problem, I have attempted to use the Page Directives <%@page >threadSafe="yes"%> or <%@ page isInstanceSafe="yes"%>, but always receive an >error No Page Directive set. I tried to set the defaults in >ParseEventHandler.py to yes for threading, it changed in on the Servlets by >Path in the WebKit admin to threaded, but there was no performance increase. Shouldn't be necessary. >My second issue is that users have the ability to browse and pull up python >code pages in the webkit directory under IIS 5.0. Can anyone help guide me >in the correct way to install the security for IIS5.0 to prevent >unauthorized browsing of the codlets? As I mentioned in my previous message, don't put any webware code into your InetPub directory (except for WebKit.cgi). >My final issue is that I am trying to optimize my webkit servlets and I was >browsing the webware admin pages. In the Servlet Cache by Path, I realized >that I do not fully understand the following settings: >created 1 (sometimes this is greater than 1) >instances Queue: [] lock <lock object at 00CDC738> >path C:\Inetpub\WebWare\WebKit\vcmr\select.psp >reuseable 0 (sometimes this is one) >threadsafe 0 (this is never one) >timestamp 1001553935 > >Thank you for any help that can be provided. I think these should always be reuseable=1 but threadsafe=0 unless you specify otherwise. This is usually what you want. -- - Geoff Talvola [EMAIL PROTECTED] _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel
