Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 31.044.471 Times

haufe.requestmonitoring 0.2.3

Company: Andreas Jung
Date Added: August 21, 2013  |  Visits: 311


Report Broken Link
Printer Friendly Version

Product Homepage
Download (18 downloads)

haufe.requestmonitoring implements a detailed request logging functionality on top of the publication events as introduced with Zope 2.12.<br /><br />Features<br />Fine resolution request logging<br /><br />Used as base for ztop and zanalyse, i.e. helps to determine the Zope load, detect long running requests and to analyse the causes of restarts.<br /><br />The implementation in this module registers subscribers for IPubStart and IPubSuccess/IPubFailure. For each of these events, a log entry of the form:<br /><br />timestamp status request_time type request_id request_info<br /><br />is written.<br />Fields<br /><br /> * timestamp is the current time in the format %y%m%dT%H%M%S.<br /> * status is 0 for IPubStart events, 390 for requests that will be retried and the result of IStatus applied to the response otherwise.<br /> * request_time is 0 for IPubStart events. Otherwise, it will be the request time in seconds.<br /> * type is + for IPubStart and - otherwise.<br /> * request_id is the (process) unique request id.<br /> * request_info is IInfo applied to the request.<br /><br />In addition, a log entry with request_info == restarted is written when this logging is activated. Apart from request_info and timestamp all other fields are 0. It indicates (obviously) that the server has been restarted. Following requests get request ids starting with 1.<br /><br />To activate this logging, both timelogging.zcml must be activated (on by default) and a product-config section with name timelogging must be defined containing the key filebase. It specifies the basename of the logfile; .<date> will be appended to this base. Then, ITicket, IInfo adapters must be defined (e.g. the one from info). An IStatus adapter may be defined for response.<br /><br />Example:<br /><br /><product-config timelogging><br />filebase /path/to/request-logs/instance-foo<br /></product-config><br /><br />Success request logging<br /><br />This logging writes two files <base>_good.<date> and <base>_bad.<date>. For each request, a character is writen to either the good or the bad logfile, depending on whether the request was successful or unsuccessful. This means, that only the file size matters for these logfiles.<br /><br />Usually, response codes >= 500 are considered as unsuccessful requests. You can register an ISuccessFull adapter, when you need a different classification.<br /><br />To activate this logging, both successlogging.zcml must be activated (on by default) and a product-config section with name successlogging must be defined containing the key filebase. It specifies the basename of the logfiles (represented as <base> above).<br /><br />Example:<br /><br /><product-config successlogging><br />filebase /path/to/request-logs/successful-foo<br /></product-config><br /><br />Monitoring long running requests<br /><br />haufe.requestmonitoring allows you to monitor long-running request. The following configuration within your zope.conf configuration file will install the DumpTracer and check after the period seconds for requests running longer than time seconds:<br /><br />%import haufe.requestmonitoring<br /><requestmonitor requestmonitor><br /> period 5s<br /> <monitorhandler dumper><br /> factory Haufe.RequestMonitoring.DumpTraceback.factory<br /> # 0 --> no repetition<br /> repeat -1<br /> time 10s<br /> </monitorhandler><br /></requestmonitor><br /><br />A typical dump trace looks like this (it shows you the URL and the current stacktrace):<br /><br />2009-08-11 14:29:09 INFO Zope Ready to handle requests<br />2009-08-11 14:29:09 INFO RequestMonitor started<br />2009-08-11 14:29:14 INFO RequestMonitor monitoring 1 requests<br />2009-08-11 14:29:19 INFO RequestMonitor monitoring 1 requests<br />2009-08-11 14:29:24 INFO RequestMonitor monitoring 1 requests<br />2009-08-11 14:29:24 WARNING RequestMonitor.DumpTrace Long running request<br />Request 1 "/foo" running in thread -497947728 since 14.9961140156s<br />Python call stack (innermost first)<br />Module /home/junga/sandboxes/review/parts/instance/Extensions/, line 4, in foo<br />Module Products.ExternalMethod.ExternalMethod, line 231, in __call__<br />- __traceback_info__: ((), {}, None)<br />Module ZPublisher.Publish, line 46, in call_object<br />Module ZPublisher.mapply, line 88, in mapply<br />Module ZPublisher.Publish, line 126, in publish<br />Module ZPublisher.Publish, line 225, in publish_module_standard<br />Module ZPublisher.Publish, line 424, in publish_module<br />Module Products.ZopeProfiler.ZopeProfiler, line 353, in _profilePublishModule<br />Module Products.ZopeProfiler.MonkeyPatcher, line 35, in __call__<br />Module ZServer.PubCore.ZServerPublisher, line 28, in __init__<br /><br />Installation<br /><br />In addition you must haufe.requestmonitoring to the zcml option of your buildout.cfg file or include it within the site.zcml file using:<br /><br /><include package="haufe.requestmonitoring" />

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Buildoutcfg File Hauferequestmonitoring Register Request Inf Sitezcml Url Writes Files Written Zope Featuresfine Zope Featuresfine Resolution Zope Load Detect Zopeconf Zopeconf Configuration Zopeconf Configuration File Zpublisherpublish Line
Users rating: 0/10

License: Freeware Size: 10.24 KB
Development Tools  -  Detect character encoding in an XML file 1.0
This script contains a function that analyzes an open xml file for its characters encoding by - checking for a unicode BOM or (on failure); - searching the xml declaration at the beginning of the file for the "encoding" attribute ;It attempts to...
Networking Tools  -  Send HTTP Tool 2.5.1
Powerful and free bugging/testing tool for web sites and web application. With Send HTTP Tool you able to generate and send different HTTP request to any URL and in a second view full report about the HTTP response. This is a great tool for...
634 B  
Offline Browsers  -  BackStreet Browser 3.1
BackStreet Offline Browser is a high-speed, multi-threading website download and viewing program. By making multiple simultaneous server requests, BackStreet can quickly download an entire website, or section of a site, and saves all the files in...
855 KB  
Video Editors  -  AVI TV Episode File Resizer 1.0
AVI TV Episode File Resizer script is not for multiple MOVIE files (only TV) however it can do SINGLE MOVIE files quite nicely. The project was designed to help me fit (resize the file) multiple Xvid TV episodes (entire season) on a single DVD....
11.26 KB  
Libraries  -  File::Remove 0.34
File::Remove is a Perl module to remove files and directories. SYNOPSIS use File::Remove qw(remove); # removes (without recursion) several files remove qw( *.c *.pl ); # removes (with recursion) several directories remove 1, qw(...
14.34 KB  
Libraries  -  File::Tabular 0.70
File::Tabular can search and edit flat tabular files. SYNOPSIS use File::Tabular; my $f = new File::Tabular($filename); my $row = $f->fetchrow; print $row->{field1}, $row->{field2}; $row = $f->fetchrow(where => someWord); $row =...
16.38 KB  
Network & Internet  -  File Lister 2.3
File Lister provides a Web interface for listing files and directories. FileLister is meant to be an open source alternative for listing files/directories with an easy navigateable (web-)interface..
34.82 KB  
Libraries  -  MP3::Tag::File 0.9708
MP3::Tag::File is a Perl module for reading / writing files. SYNOPSIS my $mp3 = MP3::Tag->new($filename); ($title, $artist, $no, $album, $year) = $mp3->parse_filename(); see MP3::Tag MP3::Tag::File is designed to be called from the...
174.08 KB  
Miscellaneous Communications Tools  -  SmartPTT File Transfer 1.0
SmartPTT File Transfer is the freeware application to transfer files through the radio channel based on MotoTRBO radios. SmartPTT File Transfer is specially designed for effective data transmission taking into account the limitations of the...
1.89 MB  
File Utilities  -  File Joiner (32bit, portable) 2.0.2
File Joiner is a tool which combines multiple files into one file. If you have all these files ending with .001, .002, .003, etc. and don't know what to do with them, this is the application for you. 00n (001, 002, ...) are parts of a bigger file...
Network & Internet  -  Free WiFi Hotspot 3.3.1
Free WiFi Hotspot is a super easy solution to turn your laptop or notebook into a portable Wi-Fi hotspot, wirelessly sharing your internet connections like DSL, Cable, Bluetooth, Mobile Broadband Card, Dial-Up, etc. through the built-in wireless...
1.04 MB  
Network & Internet  -  Easy Uploads 1.8
Easy uploads is a file storage media streaming application designed by Filestreamers that allows you to upload, store, and stream your files from their virtually unlimited file storage server. Easy Uploads can backup,share, and stream your files...
615.97 KB  
Network & Internet  -  IPv6 CARE 3.2b
IPv6 CARE, "IPv6 Compliant Automatic Runtime Environment", is a Linux tool able to patch ipv6-agnostic programs on-the-fly ('patch' mode). It can also generate a diagnosis about the IPv6 compliance of an application ('check' mode).
409.6 KB  
Network & Internet  -  PacketFence ZEN 3.1.0
PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) system. Boosting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, 802.1X...
1024 MB  
Network & Internet  -  django-dbstorage 1.3
A Django file storage backend for files in the database.
10.24 KB  
FTP Clients  -  sftpup 5
sftpup is used for uploading files to ftp servers and keep them consistent to a local directory. To use sftpup go follow these steps: 1. Create a directory for your work, e.g. www where all files will be stored. For example,...
153.6 KB  
FTP Clients  -  libtftp 0.2
libtftp is a portable library which contains a simple TFTP client and server. It's written in pure QT3, so it will run on every platform where QT is present. libtftp can be used easily with KDE applications for example, but also on...
586.75 KB  
FTP Clients  -  KVsftpdManager 0.3.5
kvsftpdmanager is a KDE Control Center module for vsftpd configurations.
1.6 MB  
FTP Clients  -  PHTP 2.0 beta1
PHTP is a simple, effective, and highly customizable FTP client with an HTML interface. It can be implemented on a remote server to allow files to be downloaded directly to it, as it is able to make connections with any FTP server.
125.95 KB  
FTP Clients  -  GAdmin-OpenVPN-Client 0.1.6
GAdmin-OpenVPN-Client 0.1.5 has been released. Removed unused client directives tls-client and DH key. TLS-Auth is determined by the existence of the TA.key. Moved the logging directory to /var/log/gadmin-openvpn/client.
235.52 KB