I haven't got good answers for your other two questions, but what I use
for determining servlet execution times is the built-in logging of
Under <appworkdir>/Config are the following items:
[adc@... Configs]$ grep Activity *.config
Application.config: 'LogActivity': 1,
Application.config: 'ActivityLogFilename': 'Logs/Activity.csv',
['request.remoteAddress', 'request.method', 'request.uri',
'response.size', 'servlet.name', 'request.timeStamp',
The Activity.csv file contains probably exactly what you're looking for
in the transaction.duration column. We take the servlet.name and
transaction.duration and average it over a long period to determine what
pages should get our optimization attention next.
I hope this helps.
David Hancock | dhancock@... | 410-266-4384=20
[mailto:webware-discuss-admin@...] On Behalf Of Faried
Sent: Monday, December 27, 2004 3:43 PM
Subject: [Webware-discuss] a couple of questions -- apache2, referencing
objects in memory, page load time
I'm using webware 0.8.1 with apache2, with the mod_webkit2 adaptor.=20
Is it safe to run apache2 in multithreaded mode (the worker mpm
instead of prefork)? I run FreeBSD 5.3.x, and that finally has a
stable (?) implementation of kernel threads. I'd like to take
advantage of that, if possible.
How can I tell how long it takes to render pages? I have a SitePage
parent class for all my pages (derived from WebKit.Page); should I
store the current time in its awake() and print the difference between
it and the current time in sleep() to the console?
Lastly, I'd like to cache some objects in memory. When my users do a
lookup for a product, I call a method that returns an object which
contains everything I need to display the product info. How can I
keep a handle on that object and refer to it later when I next get a
query for that product? Do I create a dict instance variable in my
SitePage class, and have my user-facing pages check
self.cachedProduct('Ajax Hammer') or something? I can't find any
examples for this, and I could really use a feature like this to speed
up my site.
I'm sure lots of people have asked these questions, but I can't easily
find them using the sf.net search interface.
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.=20
Webware-discuss mailing list