Memory Calculation


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Memory Calculation
# 1  
Old 03-17-2010
Java Memory Calculation

Hi,

I want an script that calculate total memory consume by all Oracle Process


Code:
 
6689 oraprod 16 0 1163m 155m 150m S 0 2.0 0:01.95 oracle 
7046 oraprod 16 0 1161m 18m 14m S 0 0.2 0:00.02 oracle 
7392 oraprod 16 0 1165m 39m 33m S 0 0.5 0:00.07 oracle 
7394 oraprod 16 0 1161m 22m 18m S 0 0.3 0:00.02 oracle 
7735 oraprod 16 0 1163m 125m 119m S 0 1.6 0:01.45 oracle 
7749 oraprod 16 0 1163m 123m 117m S 0 1.5 0:01.54 oracle 
7946 oraprod 16 0 1162m 69m 65m S 0 0.9 0:00.15 oracle


Last edited by pludi; 03-17-2010 at 09:33 AM.. Reason: code tags, please...
# 2  
Old 03-17-2010
Considering only Virtual Mem,
Code:
awk 'NR>1 { gsub (/m/,"",$5); s+=$5; } END { print s"MB"; }' file

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Physical memory calculation

Below is Physical Memory result : -bash-3.00$ prtconf | grep "Memory size" Memory size: 36854 Megabytes -bash-3.00$ vmstat 1 2 | tail -1 0 0 0 28220616 1318888 15 143 0 0 0 0 0 253 2 15 0 5215 14989 5917 7 0 93 and the script i have to calculate this in Percentage is : #!/bin/sh... (3 Replies)
Discussion started by: mjoshi010207
3 Replies

2. AIX

Regarding AIX Memory Utilization usage calculation

Hello, Am working on small program that used to calculate the memory usage of AIX servers. Am using svmon -G command to get the memory usage. For example, consider the following output. $ svmon -G size inuse free pin virtual mmode memory ... (9 Replies)
Discussion started by: maruthu
9 Replies

3. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

Hi Experts, Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing. Why memory utilization on solaris always looks high? I have statement about memory on solaris, is this true: Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies

4. Shell Programming and Scripting

Oracle Process Memory calculation

Hello, I am using Rehat Oracle Enterprise server. Every time almost 150 process running on my server. #ps -ef | grep oracle | wc -l Now i want to calculate how much memory spend by each process or all process together. (1 Reply)
Discussion started by: telnor
1 Replies

5. Solaris

restrcit physical memory with zone.max-locked-memory

Is it possible to restrict physical memory in solaris zone with zone.max-locked-memory just like we can do with rcapd ? I do not want to used rcapd (1 Reply)
Discussion started by: fugitive
1 Replies

6. Programming

How to deal with lots of data in memory in order not to run out of memory

Hi, I'm trying to learn how to manage memory when I have to deal with lots of data. Basically I'm indexing a huge file (5GB, but it can be bigger), by creating tables that holds offset <-> startOfSomeData information. Currently I'm mapping the whole file at once (yep!) but of course the... (1 Reply)
Discussion started by: emitrax
1 Replies

7. Solaris

How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9

Hi, Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:- 1. Total Physical Memory in the system(total RAM). 2. Available Physical Memory(i.e. RAM Usage) 3. Total (Logical) Memory in the system 4. Available (Logical) Memory. I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies

8. AIX

ulimits max locked memory virtual memory

Hi, Would any one be so kind to explain me : are ulimits defined for each user seperately ? When ? Specialy what is the impact of : max locked memory and virtual memory on performance of applications for a user. Many thanks. PS : this is what I can see in MAN : ulimit ] ... (5 Replies)
Discussion started by: big123456
5 Replies

9. Linux

memory calculation

hi all, sorry for silly question. but i have a doubt in calculation of memory utilization calculation. using 'free' command we calculate the memory utilization as used/total. but my friend said that its wrong and we have to include cached also as (used-cached)/memory. but these... (0 Replies)
Discussion started by: rrlog
0 Replies
Login or Register to Ask a Question