Geoff, didn't you add a debugging mode that always recompiles the PSP? Could that be on?
Jay > -----Original Message----- > From: Geoffrey Talvola [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 24, 2002 12:50 PM > To: 'Lars Rustemeier'; [EMAIL PROTECTED] > Subject: RE: [Webware-discuss] performance problem? > > > Lars Rustemeier wrote: > > > > hi guys, > > > > this afternoon we've been stress testing our webkit-powered > servers by > > making lots of requests for a single .psp-page, containing a > > simple threadsafe singleton counter counting up the number of > > times the > > page been rendered. some of the times the server registred an error > > giving the following traceback. > > > > Traceback (most recent call last): > > File "./WebKit/Application.py", line 388, in dispatchRequest > > File "./WebKit/Application.py", line 534, in handleGoodURL > > File "./WebKit/Application.py", line 989, in > > createServletInTransaction > > File "./WebKit/Application.py", line 916, in getServlet > > File "./PSP/PSPServletFactory.py", line 177, in > > servletForTransaction > > File "./PSP/PSPCompiler.py", line 60, in compile > > File "./PSP/ServletWriter.py", line 79, in close > > OSError: [Errno 2] No such file or directory: > > '/home/webkit/nbwsite/Cache/PSP/_home_webkit_nbwsite_NBWContex > > t_fun_index_psp.py' > > > > does anybody know the cause of this exception. it seems the code in > > ServletWriter(79) simply tries to remove a file, and the file is > > reported by the os module to not exist. > > > > without really digging deep into this; it seems the servlet > factory is > > out of cached instances of the compiled psp-page and tries > to create a > > new one. i tried to put a try-catch around the offending line in > > ServletWriter without really knowing if that has any bad > side effects, > > and the problem seemed to go away. > > > > was i barking up the wrong tree? > > > > best regards > > > > /largo > > I just glanced at the PSP code (from CVS) and it looks like it should > _never_ have to recompile the PSP page once it has been > compiled, unless you > restart the appserver or the modification time of the PSP > file changes. > > Are you seeing these errors when the app server first starts > or later on? > Are you modifying the PSP file while the appserver is running? > > - Geoff > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss > __ ********************************************** This e-mail and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation. ********************************************** ec03/04 ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
