Summary: | www-apache/mod_diagnostics stable request | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Stewart (vericgar) (RETIRED) <vericgar> |
Component: | Current packages | Assignee: | Apache Team - Bugzilla Reports <apache-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 106421 | ||
Bug Blocks: |
Description
Michael Stewart (vericgar) (RETIRED)
![]() This builds just fine, but I wasn't able to figure out, how to actually use the module - I have never used, nor grasped concept of apache filters. Google didn't help either. Any hints? Cannot test for amd64/apache-1.3, as this package requires apache-2 Alright, after fighting with apache documentation, I finally got this stupid thing. For those who cry when seeing things like this, I've written a simple test case for future testing: 1) Find this section: # Filters allow you to process content before it is sent to the client. # # To parse .shtml files for server-side includes (SSI): # (You will also need to add "Includes" to the "Options" directive.) # #AddType text/html .shtml 2) Add this afterwards: AddOutputFilter DEFLATE;o-resource-1;o-resource-2;o-content-1;o-content-2;o-protocol-1;o-protocol-2;o-transcode-1;o-transcode-2;o-connection-1;o-connection-2;o-network-1;o-network-2 .php AddInputFilter i-resource-1;i-resource-2;i-content-1;i-content-2;i-protocol-1;i-protocol-2;i-transcode-1;i-transcode-2;i-connection-1;i-connection-2;i-network-1;i-network-2 .php 3) Restart Apache 4) Open a random php file 5) Check /var/log/apache2/error_log 6) You should something around this: [Mon Jan 16 15:20:18 2006] [notice] o-resource-1 [Mon Jan 16 15:20:18 2006] [notice] \to-resource-1 HEAP:\t4838 bytes [Mon Jan 16 15:20:18 2006] [notice] \to-resource-1 TRANSIENT:\t4099 bytes [Mon Jan 16 15:20:18 2006] [notice] o-resource-2 [Mon Jan 16 15:20:18 2006] [notice] \to-resource-2 HEAP:\t4838 bytes [Mon Jan 16 15:20:18 2006] [notice] \to-resource-2 TRANSIENT:\t4099 bytes [Mon Jan 16 15:20:18 2006] [notice] o-resource-1 [Mon Jan 16 15:20:18 2006] [notice] \to-resource-1 HEAP:\t4096 bytes [Mon Jan 16 15:20:18 2006] [notice] \to-resource-1 TRANSIENT:\t4103 bytes 7) Also make sure the input filters are working by seeing something like this: [Mon Jan 16 15:20:18 2006] [notice] i-resource-1: mode READBYTES; blocking; 8192 bytes [Mon Jan 16 15:20:18 2006] [notice] i-resource-2: mode READBYTES; blocking; 8192 bytes [Mon Jan 16 15:20:18 2006] [notice] i-content-1: mode READBYTES; blocking; 8192 bytes [Mon Jan 16 15:20:18 2006] [notice] i-content-2: mode READBYTES; blocking; 8192 bytes [Mon Jan 16 15:20:18 2006] [notice] i-protocol-1: mode READBYTES; blocking; 8192 bytes [Mon Jan 16 15:20:18 2006] [notice] i-protocol-2: mode READBYTES; blocking; 8192 bytes [Mon Jan 16 15:20:18 2006] [notice] i-transcode-1: mode READBYTES; blocking; 8192 bytes [Mon Jan 16 15:20:18 2006] [notice] i-transcode-2: mode READBYTES; blocking; 8192 bytes Note the byte values obviously aren't going to be the same, but you should see lots of noise coming from these filters. Anyways! Stable on x86. resolving, been stable for some time. |