Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README.md

  • Loading branch information...
commit 5d1df92c75afbb2b05940b8a5b6fe3209ebe74ff 1 parent 11f7126
@matsumoto-r authored
Showing with 16 additions and 17 deletions.
  1. +16 −17 README.md
View
33 README.md
@@ -1,50 +1,49 @@
# mod_resource_checker.c
+Process Resource Logging Module by rusage() By matsumoto_r Sep 2009 in Japan
- Process Resource Logging Module
- by rusage().
- By matsumoto_r Sep 2009 in Japan
-
-Date 2009/12/08
-Version 0.01-beta
+- Date 2009/12/08
+- Version 0.01-beta
+```
change log
2009/12/08 matsumoto_r coding start
+```
##How To Compile
-- [Use DSO]
+### Use DSO
```
apxs -c -D__MOD_APACHE2__ mod_resource_checker.c
cp ./.libs/mod_resource_checker.so /usr/local/apache2/modules
```
-- <add to httpd.conf>
+### add to httpd.conf
```
LoadModule resource_checker_module libexec/mod_resource_checker.so
```
##How To Use
-### [Server Config]
-
+### Server Config
+nothing
-### [Directive Config]
+### Directive Config
log file: /tmp/mod_resource_checker.log
or #define MOD_RESOURCE_CHECKER_LOG_FILE "/tmp/mod_resource_checker.log"
- Logging CPUUserTime
```
- RCheckUCPU <threashould> <type>
+RCheckUCPU <threashould> <type>
```
- Logging CPUSystemTime
```
- RCheckSCPU <threashould> <type>
+RCheckSCPU <threashould> <type>
```
- Logging UsedMemory
```
- RCheckMEM <threashould> <type>
+RCheckMEM <threashould> <type>
<threashould> digit(non-zero)
@@ -53,14 +52,14 @@ LoadModule resource_checker_module libexec/mod_resource_checker.so
CHILD
```
--- Directory Access Control -
+- Directory Access Control
```
<Directory "/var/www/html">
RCheckUCPU 0.0001 ALL
</Directory>
```
--- File Access Control -
+- File Access Control
```
<Files "ag.cgi">
RCheckUCPU 0.003 SELF
@@ -68,7 +67,7 @@ LoadModule resource_checker_module libexec/mod_resource_checker.so
</Files>
```
--- Files Regex Access Control -
+- Files Regex Access Control
```
<FilesMatch ".*\.cgi$">
RCheckUCPU 0.005 ALL
Please sign in to comment.
Something went wrong with that request. Please try again.