Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Analyzing Apache memory usage

by Anonymous Monk
on Sep 22, 2020 at 09:36 UTC ( [id://11122069]=note: print w/replies, xml ) Need Help??


in reply to Analyzing Apache memory usage

The script is a little old but still works. However, on boxes with very large amounts of RAM (100G+), top doesn't give an answer in K anymore and the script breaks. I took out the if statement in the main loop that grabs the memory and replaced it with:
my $free= `free|fgrep Mem`; if($free=~/Mem\s*:\s+(\S+)\s+/i) { $totalmem = convtok($1); } else { die("Can't find memory info\n"); }
just above the foreach and that worked for our 680GB ram monster.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11122069]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found