Cached Memory
Aug 24, 2007I have a dedicated server with 1gb ram, now I see 468.02 MB used for Cached memory, this is the first time. Why could this be? I have not changed any settings except for turning off safe mode for an account.
View 6 RepliesI have a dedicated server with 1gb ram, now I see 468.02 MB used for Cached memory, this is the first time. Why could this be? I have not changed any settings except for turning off safe mode for an account.
View 6 RepliesWe renewed our SSL certificate about two weeks before it expired, and pushed the new one to our servers.
All has worked well, but a very small percentage of users are complaining that they're seeing errors that the certificate is expired.
Is there some browser or something that would cache the old certificate client-side even past its expiry?
Using version 0.9.5 with the default settings. The cache fills up the shared memory in less than a day. I noticed the cached script is stuck at 176, what happens after this? Will it cache content to disk in the temporary folder (/tmp/eaccelerator/) when the shared memory is full?
View 0 Replies View RelatedI have bough a dedicated server with 2GB Ram, i have installed Hypervm and so surpise when my server is using most of my memory.
I type cat /proc/meminfo
[root@srv ~]# cat /proc/meminfo
MemTotal: 1784832 kB
MemFree: 47576 kB
Buffers: 62976 kB
Cached: 1454172 kB
SwapCached: 84 kB
Active: 251024 kB
Inactive: 1347412 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 1784832 kB
LowFree: 47576 kB
SwapTotal: 2097144 kB
SwapFree: 2096988 kB
Dirty: 96 kB
Writeback: 0 kB
AnonPages: 81324 kB
Mapped: 26076 kB
Slab: 62488 kB
PageTables: 8844 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 2989560 kB
Committed_AS: 416152 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 2252 kB
VmallocChunk: 34359735799 kB
Is this normal when Cached: 1454172 kB?
I recently reorganized my music site, putting my songs in their own directory (off of public_html), and now a couple of search engines are generating a boatload of 404 errors.
Can I redirect the file requests to the new location and, if so, how?
When running OWASP ZAP web security tool, I get the following flag: Secure page can be cached in browser. Cache control is not set in HTTP header nor HTML header. Sensitive content can be recovered from browser storage.
I was surprised since i had the no cache header in both html code and httpd header.
After investigating the flag, i noticed that the response was a generic 302 found error response from Apach (located in apache/src/modules/http/http_protocol.c).
I have added a patch to code when adding the cache-control & pragma html headers with no-cache - and that had solved the security flag (patch attached).
full response given:
header:
HTTP/1.1 302 Found
Date: Sat, 30 Nov 2013 10:44:40 GMT
Server: Apache
X-Frame-Options: DENY
Location: https://*****
Content-Length: 376
Content-Type: text/html; charset=iso-8859-1
body:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://******">here</a>.</p>
<hr>
<address>Apache Server at 10.209.0.81 Port 443</address>
</body></html>
In conclusion:
Issue is "Secure page can be cached in browser." (found by owasp zap) for https page response "302 Found" from Apache.
As many of you may know mod_cache does not cache directory index
files, this can be fixed with mod_rewrite but the index page of the domain (the homepage) seems to be impossible to cache it. The following rules cache the folders but not the homedir (this means that www.thedomain.com/folder is cached but www.thedomain.com is not):
DirectorySlash Off
RewriteEngine On
RewriteCond %{REQUEST_URI} ([^.*])
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.htm" -f
RewriteRule "^(.*)$" "$1/index.htm" [NC,L]
RewriteCond %{REQUEST_URI} ^([^.*])$
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.html" -f
RewriteRule "^(.*)$" "$1/index.html" [NC,L]
RewriteCond %{REQUEST_URI} ^([^.*])$
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.php" -f
RewriteRule "^(.*)$" "$1/index.php" [NC,L]
Note that DirectorySlash should be off (or mod_dir not loaded) in
order to work also with URL that end with no slash
As I said before this will work for any folder but it does not work for public homedir
directory. So when a user visit [url] it does not
work (unless you type the name of the index file: [url]
For me it is critical to make this work in someway, the index homepage
is the main page that needs to be cached in my case (and in many
others).
Do you know any solution for this? I found the first message about
this in the Internet in 2002 but I'm using last version of apache
httpd and still does not work.
If you have no idea about how to fix it, maybe you know some other easy alternative. Lighttpd + mod_cache + mod_deflate are not compatible: "mod_cache can be used in conjunction with other lighttpd plugins (except mod_deflate and mod_secdownload)"
I have a VPS. And have had an issue both when it was 1Gig and now I recently downgraded it to 768m, because I am moving some sites to a dedicated.
However, the part I am having trouble grasping is that when I look at graphs from Munin, it will typically always show 200-400MB free memory (and free -m and top agrees with munin), but Munin shows 'committed' memory that is above the total Ram on the VPS and once the 'committed' ram exceeds the VPS limit, processes start failing.
So, why is 'committed' memory exceeding the RAM on my VPS, when Munin, free -m and top all show there is free memory available?
Code:
root@server [~]# free -m
total used free shared buffers cached
Mem: 768 449 318 0 0 0
-/+ buffers/cache: 449 318
Swap: 0 0 0
Here's a graph that munin produces that shows the 'committed' memory exceeding the total memory.
[url]
I just got a new server Dual E5520 with 6GB RAM, SAS 15k rpm raid10. It's running well. However, the memory usage is just around 2.5GB, even when I have more traffic. Here is the kernel info
Quote:
# uname -a
Linux server2.[url]2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
Any idea that we can put more content into memory?
I just ordered a server from serverbeach that should have come with 2 GB but I see that this one comes with 8 GB
Unfortunately, I seem to be missing 7 GB of ram.
Installed Physical Memory: 8 GB
Total Physical Memory: 1 GB
Windows 2008 Server Web 32-bit
Now, being a 32-bit system, I should see 3-4 GB of ram right?
Any idea why only 1 GB is available for the OS?
[url]
I have a 512mb DV server with Mediatemple, which I am running 24 (ish) domains off (most of them static websites) and a teamspeak server. I would say MAX theres 10 users online at a time)
Now, I know its running out of memory because i get frequent QoS Alerts in plesk (kmemsize is apparently the memory size):
Oct 01, 2009 11:52:57 AMBlack zonekmemsize
I have attached my results (when I did top).
My questions are:
1. Should I be expecting to be out of memory running what I am?
2. Is there a way to see the problem domains (memory wise)?
3. Are there any ways I can reduce the memory? (I have followed this already:
[url]
4. Where is the memory usage coming from (I am finding it very hard to understand TOP)
I am hoping someone with experience of these things can comment on memory usage on my VPS partition. The master server on which my partition sits seems to be running at full memory usage and I'm getting lots of fork and mutex errors in apache causing apache to crash several times a day.
I'm running Invision Power Board on there with an average of 100 users in the last 15 mins during most of the day.
oomguarpages and privmpages are reported in 4KB blocks.
Hello everyone.i run LAMP on a dedicated server at theplanet.I have a small vbulletin forum.
I m planning to move to a new server.Just a quick question.for my new hardware,do i give more emphasis to ram or cpu...i will be getting 2 gb at the minimum.
SO,is LAMP dependant more on cpu resources or ram?
I previuosly have a forum hosted on a VPS with a 512 MB RAM (OpenVZ) and at that time it was only using 300MB of ram during peak time but the server was always down due to harware failures so I move to a new host this time Using Xen with a 768 RAM now it is using all the RAM available which is double the ram that it uses before. Is it really normal for a XEN vps to consume more memory than on a VPS using OpenVZ?
View 2 Replies View Relatedtoday I recieved an email from my server saying:
Drive Space Critical on server
Drive Critical: /dev/simfs (/) is 91% full
When i check the whm I see
cpsrvdfailed
exim (exim-4.68-1_cpanel_maildir)up
ftpdup
httpd (2.2.8 (Unix))up
imapup
mysql (4.1.22-standard)up
named (9.3.3rc2)up
popup
Server Load0.11 (2 cpus)
Memory Used38 %
Swap Used0.00 %
Disk /dev/simfs (/) 91 %
what i dont understand is where did it go. I dont really have much traffic and nothing was uploaded or downloaded. I dont have any automatic backups enabled. How do I get it back to the normal 40%
I do notice i have alot of cpu usage
Top Process%CPU 77.4gzip
Top Process%CPU 76.2gzip
Top Process%CPU 75.9gzip
Which is also confussing to me because I am the only user. I didnt do any backups didnt have any major traffic. And my disk space "memory used" didnt change.
How much memory would I need to run a couple of websites, with gallery,postgresql,wordpress,dotproject,spamassassin on top of usual apache, mysql, php etc?
Most of the cheap VPS starts from 196MB or 256MB. 512MB upgrades are expensive :p
How much extra memory do I need on a VPs to be safe ?
Do I need something like 20% more of what I actually use just to be safe?
I am trying to optimize my VPS setup and can't seem to get it to use all of the memory that I have. I have problems even getting it to use half of it. What kind of changes can I make so that it uses more memory while reducing load? My recent MySQL and Apache conf optimizations I have read about here and other sites have sent my loads above 1, but the memory usage is staying the same.
View 4 Replies View RelatedI've a question with XEN VPS. I rented vps with sweden provider and its 20 GB HD and 256MB memory. The setup isnt bad, done within 1 day. I check inside the vps and its XEN VPS.
I tried "top" command and wow, I am supprised !! here what I saw
Mem: 262320k total, 208708k used, 53612k free, 54680k buffers
isnt it funny ? 50MB++ left(not yet run anything, no panel running too). is it normal ?
I have other vps running inside virtuozzo, and got 192 MB inside. even its running so many process inside(about 15) that takes about 5-10MB each, its still have more left than XEN.
Mem: 196608k total, 82972k used, 113636k free, 0k buffers
100MB++ left,
I noticed that, VPS with Xen technology, are using up far more memory than others?
Lets say, I usually use about 300mb of ram in a VPS with openvz, but VPS with xen, with the same usage, is using about 820mb of ram.
Even without running anything...after a fresh install of centos 5, with only few OS processes, its using around 170mb of ram already.
Is this so with Xen? The expected ram usage with Xen? Or am I missing something?
I have this 512MB memory VPS plan from fdcservers.net and it kept running out of memory.
The memory went up and down like roller coaster every seconds although I switched off httpd. Anyone can tell me what RAM do they assign to my VPS? Here's the beancounter results: [Please find the result in the attachment] Dont know why webhostingtalk mess up the spaces between each texts.
We are running into yellow status often at our new VPS. We have been with the web host for almost 1 year and recently got moved to a new VPS. WHM often show a yellow status for Memory Used (80% or so). As per the web host, WHM shows RAM for the entire server and not just our VPS. So how can we determine how much RAM we are using so? And to determine if we are using more RAM than we should or if others on the server are the culprit?
never got this yellow status on the old VPS.
if someone here could offer their advice/expertise in this problem. I have a 256MB CPanel VPS. When Apache is restarted, memory is around 180MB which is perfect
However, before long, memory usage is at 240MB. Looking at top processes, this is the top 5 i get...
PID USER PR NI VERT RES SHR S %CPU %MEM TIME+ COMMAND
29833 nobody 15 0 27616 14m 3776 S 1 1.4 0:30.32 httpd
26432 nobody 15 0 29104 16m 3836 S 1 1.6 0:24.80 httpd
28398 nobody 15 0 26996 14m 3776 S 0 1.4 0:28.70 httpd
28645 nobody 15 0 31324 17m 3776 S 0 1.7 0:25.93 httpd
31981 nobody 15 0 32232 17m 3776 S 0 1.7 0:38.69 httpd
Anybody able to offer any advice? I see that all processes are httpd, is lighthttpd or lightspeed a solution?
The main site serves up php content (No mySQL) and a few images. It also has a LOT of image requests which are redirected by photobucket via .htaccess.
The secondary site on the server (not yet launched) is going to be an arcade site running gamescript. I have been hesitant to release this site untill these memory issues are sorted.
My VPS Service Status showing
Memory Used 70.4 %
is that normal? how I can less memory used.
----------------------------------------------
Second I just got following email from system
"The following list of files have FAILED the md5sum comparision test. This means that the file has been changed in some way. This could be a result of an OS update or application upgrade. If the change is unexpected it should be investigated:
/usr/bin/sa-learn: FAILED
/usr/bin/sa-update: FAILED
/usr/bin/spamassassin: FAILED
/usr/bin/spamc: FAILED
/usr/bin/spamd: FAILED"
any issue with server?
I have got a VPS with slhost but seems like I am hitting my memory limit when I check in VZPP.
Is there anyway I can find out which websites are causing high loads etc and get the limit back to normal?
is there a way to quickly check and see how much guaranteed ram my VPS has?
View 14 Replies View RelatedI just want to know that when I run the command free -m (/usr/bin/free -m) what exactly this output means:
Code:
total used free shared buffers cached
Mem: 3546 3395 151 0 261 2730
-/+ buffers/cache: 403 3143
I know that the values are in megabytes, but what scares me is the amount of megabytes left. Considering that I have 4gigs of space, does this mean that I only have 151 megs of RAM space left? Or is a large portion of that 4 gigs put aside for some reason (perhaps the cache).
If so, then why is this? Is the memory still practically free?
So my cPanel / WHM VPS (512MB RAM, 1024 burstable) is apparently using over 90% of its memory (according to the "service status" panel in WHM), and has been using 80% or more every time I've happened to log in over the past 2 weeks.
There ought to be literally nothing going on on the server right now (no email sent, received or relayed, nobody visiting the sites, no uploads, no downloads, no nothing). CPU load is very reasonable (0.11, 0.04, 0.0), and none of the processes appearing when I run "top" are using any memory worth mentioning.
What's the most likely explanation, and how concerned should I be about this (considering I'm anticipating a lot of traffic next week)? Would you recommend any specific further steps to investigate?
I have 512mb of memory on my new VPS.
I got it last night and i've been setting it up since. For some reason the memory usage is at 70 percent now.... how could this be? What happens when I open my site to the public and I get hammered with users? This was the whole point of getting a VPS!