Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 605280 Details for
Bug 849272
Memory leak in Apache httpd server.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
bash script used to monitor swap use and restart httpd server
swapmon (text/plain), 1.18 KB, created by
Harold Pritchett
on 2012-08-17 23:13:29 UTC
(
hide
)
Description:
bash script used to monitor swap use and restart httpd server
Filename:
MIME Type:
Creator:
Harold Pritchett
Created:
2012-08-17 23:13:29 UTC
Size:
1.18 KB
patch
obsolete
>#!/bin/bash > ># ># this script should be manually started after each reboot of the system ># with the command "nohup swapmon &" ># > >SUBJECT="CalServ excessave page file use" >EMAIL="hal,dpegen,harold_cell" >EMAILMESSAGE="/tmp/emailmessage.txt" >declare -i maxswap=4144766 # 50% of the available swap space >declare -i used > >while [ /bin/true ]; do > >LOGFILE="/tmp/swapmon."$(/bin/date +%y%m%d) >used=$(/usr/bin/tail -1 /proc/swaps | /bin/cut -f 3) > > /bin/echo $(/bin/date +%y%m%d\ %H%M%S) $used >> $LOGFILE ># /bin/echo $(/bin/date +%y%m%d\ %H%M%S) $used > >if test $used -lt $maxswap > then > /bin/true # do nothing > else > echo "The swapmon program running on CalServe has detected a problem"> $EMAILMESSAGE > echo "" >>$EMAILMESSAGE > echo "The currently reported swap size (" $used ")" >>$EMAILMESSAGE > echo "is greater than the allowed used size (" $maxswap ")" >>$EMAILMESSAGE > echo "" >>$EMAILMESSAGE > echo "The Apache HTTPD server was restarted at " $(/bin/date) >>$EMAILMESSAGE > echo "The Apache HTTPD server was restarted at " $(/bin/date) >>$LOGFILE > /bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE > rm $EMAILMESSAGE > echo no > /etc/init.d/httpd restart >fi > >sleep 300 > >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 849272
:
605278
|
605279
| 605280 |
605281