How do I clear RHEL3 Cache get allocation to RAM?

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How do I clear RHEL3 Cache get allocation to RAM?
# 1  
Old 03-24-2010
How do I clear RHEL3 Cache get allocation to RAM?

Hi

I am running in Issue that my total system RAM is 8GB. If I run command

Code:
free -m   I get 6.0 Gb RAM 
free -m
                 total       used       free     shared    buffers     cached
Mem:          7554       5928       1626          0        123       4798
-/+ buffers   1006       6548
Swap:         1996          0       1996

Where as TOP command shows only procesess using 10% of RAM that is 1 GB. Now I read different blogs and understood that cache is also available RAM.

Then I tried to remove cache by ../cache_drops but RHEL3 dont support this command.

Keeping this in mind I allocated 4GB more to Apache Tomcat. Then I started but Tomcat failed to get this much memory. Although this should be free RAM.

I want to know how I can get rid of this CACHE and get memory to RAM.

Br
Osama

Last edited by pludi; 03-24-2010 at 06:42 AM.. Reason: code tags, please...
# 2  
Old 03-24-2010
The caches are a temporary saving place for files read, since it's faster to access than disk I/O. The system will free it as needed, but if you want to drop the caches now (for whatever reason) run
Code:
echo 3 > /proc/sys/vm/drop_caches

as root. It's only a temporary solution, tho, since you can't disable the mechanism.

As for your Tomcat problem: Since RHEL3 is rather old, I'm guessing you're running on an 32bit platform? That would mean that while the kernel can see more that 4GB RAM, each process can address 4GB total maximum.
# 3  
Old 03-24-2010
Issue

Thanks for reply.

RHEL 3.0 dont support the drop_cache command.

For tomcat I was saying regarding OPTs memory ... If this cache memory can be allocated to any other application then why TOMCAT while running says out of Memory error. Because Server has no memory to use.

Please give me suggestions for RHEL3.0 ... kernel 2.4...
# 4  
Old 03-24-2010
There is plenty of memory free based on your free output. You look to have about 7GB free.

It all speaks to how the kernel utilizes memory. Free memory just doesn't sit there. The kernel uses it for "buffers and cache" to speed up performance. think of it as "read ahead" on a drive. The memory is dynamic so if an application need the memory, the cache is quickly cleared and memory is utilized for the application. So take your free # from the mem line and the free # from you buffers line and you have the total free memory on the system.

Now, no application on a 32 bit system can not utilize more that 4GB of RAM. It is a limit of the arch.

Also, look at your JVM heap size.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

Instructions to Clear Data Cache in Safari, Chrome, Firefox, Opera Browsers (Pictures)

Here are instructions to clear the data cache for four browsers, Safari, Chrome, Firefox, Opera. In these examples I'm using MacOS Mojave, but it should be similar for any OS. You can use these instructions to to clear and reload the cache if you have any issues with the Vue.js UserCP (current... (1 Reply)
Discussion started by: Neo
1 Replies

2. Solaris

clear cache memory

hi all, i have noticed that my server has 64 GB RAM and i have application in this server but the server has free memory only 15% and utilized 85% however it didn't eat from swap . does any parameter can be configured in kernel to make the system clear memory from cache like linux i found... (4 Replies)
Discussion started by: maxim42
4 Replies

3. Solaris

Block-based allocation and Extent-based allocation in Solaris

Hi guys! Could you tell me what's this figure about? (See the attached figure below.) This is a representation of block allocation filesystem and extent allocation filesystem in Solaris. Does this mean that in a block-based allocation, data are placed in individual blocks while in... (0 Replies)
Discussion started by: arah
0 Replies

4. Linux

File cache /Page cache Linux

Hi All, could any one point out any open source test-suites for "File cache" testing and as well as performance test suites for the same. Currently my system is up with Linux/ext4. Regards Manish (0 Replies)
Discussion started by: hmanish
0 Replies

5. Linux

getting info on Cache Size, Data Cache etc..

Hi all I saw in Microsoft web site www.SysInternals.com a tool called CoreInfo from able to print out on screen the size of the Data and Instruction caches of your processor, the Locigal to Physical Processor mapping, the number of the CPU sockets. etc.. Do you know if in Linux is available a... (2 Replies)
Discussion started by: manustone
2 Replies

6. Programming

dynamic allocation vs static allocation in c

i wrote a tiny version of tail command using a large buffer statically allocated but, in a second time, i found another version in which i use a bidimensional array dynamically allocated. here is the first version /*my tiny tail, it prints the last 5 line of a file */ #include<stdio.h>... (4 Replies)
Discussion started by: lucasclaus
4 Replies

7. Red Hat

red hat Linux 5.0 is detecting 3gb ram but physical ram is 16gb

Hi, On server 64bit Hw Arch , Linux 5.0(32bit) is installed it is showing only 3gb of ram though physical is 16gb can u give me idea why? (4 Replies)
Discussion started by: manoj.solaris
4 Replies

8. Linux

kernel panic on RHEL3

hello all, please, help! we suffered out of power today and one of our Linux boxes cannot boot properly: .. hda set_driver_speed_status error 0X04 VFS: Unable to mount root fs on 00:00 ... the only thing that i can do - is boot in the rescue mode. i've already added noinitrd to... (2 Replies)
Discussion started by: MarGur
2 Replies

9. UNIX for Dummies Questions & Answers

reduce buffer cache allocation?

Hi, Is it possible to reduce the amount of buffer cache in the memory allocation of a Unix Server? If so where can I do that? Also, does buffer cache count as tied up memory, or will it decrease as more memory is requested by other programs. (1 Reply)
Discussion started by: dehuang83
1 Replies

10. UNIX for Advanced & Expert Users

UBC cache vs. Metadata cache

hi, What is the difference between UBC cache and Metadata cache ? where can i find UBC cache Hits and Metadata cache Hits in hp-ux? Advanced thanx for the help. (2 Replies)
Discussion started by: sushaga
2 Replies
Login or Register to Ask a Question