consumption memory


 
Thread Tools Search this Thread
Operating Systems AIX consumption memory
# 1  
Old 05-07-2008
consumption memory

Hi,

I have a problem with memory on AIX 5.3. On this server, we have JDE Edwards (ERP) and Oracle Database (9.2.0.7.0).
We have 4 Gb for physical memory and 3 Gb for paging space.
When I stop all services (JDE, Oracle and all other services), the physical memory is not free (4 Gb)
svmon -G
size inuse free pin virtual
memory 1048576 1033596 14980 153224 404179
pg space 786432 184887

Memory is never freed even if process is finished

When I reboot the server and start all services without users and so without transactions, the memory is 1 Gb.

svmon -G
size inuse free pin virtual
memory 1048576 269172 779404 97321 216993
pg space 786432 1041

Do you have a similary case ?
# 2  
Old 05-07-2008
Several possiblities: It could be a memory leak. In this case the only option you have is to stop/start the application. To be honest i doubt that, because JDEdwards as well as Oracle is standard software. If they'd have memory leaks it would be a well-known fact throughout the industry.

The other possibility is a lock on the shared memory segments which isn't removed. Use "ipcrm" to delete such memory segments and look how far that takes you, then report back, please.

I hope this helps.

bakunin
# 3  
Old 05-07-2008
AIX always tries to use ALL of your real memory. Every piece of RAM that is not used by your application is used for file caching. So "all" of the memory appears to be "in use" all the time. When you exit your app the memory is not cleared but the former content is kept for possible reuse later. This is normal behaviour and expected. No reason to worry as long as no paging takes place. Having no "free" memory does not equal shortage of memory. AIX is not Windoze.

If you want to sort of flush the server's cache for a short period of time you could copy a huge file somewhere within your server (from /blah to /tmp or vice versa) and delete it immediately after copying. Then you would see "free" memory Smilie
# 4  
Old 05-07-2008
Memory tuning for Oracle

Normally running Oracle on AIX 5.3, you need to do some memory tuning so that you don't "double up" in buffering files. General rule is to reduce AIX amount of mem used to buffer IO and put this into Oracle's file buffers (in the SGA). This is because Oracle knows better what to cache, as it is its own data.

I don't recommend changin the following parameter by itself but it is (IMHO) the most important new parameter for an ERP/OLTP server (Introduced in AIX 5.3 ML1 and AIX 5.2 ML4).
vmo –p –o lru_file_repage=0

This means that program memory requests (e.g. Oracle file buffers) get priority over AIX's own file buffers. This is the behaviour you'd want.

Of course there are a whole heap of other parameters you'd want to check so please DO NOT just run this command without understanding what the other settings are.

And the previous post was right, just looking at "free memory" in AIX doesn't tell you much at all as AIX will try to use all memory all the time.

I hope you are using DIO or CIO access from Oracle if using JFS2 to hold your data (and DIO if using JFS). Also Asynch I/O.

Last edited by indulis; 05-07-2008 at 08:30 AM.. Reason: correction
# 5  
Old 05-07-2008
Thanks a lot for your quick advices.

With nmon, I have the result hereafter :
Code Resource Stats Now Warn Danger
OK -> CPU %busy 2.6% >80% >90%
OK -> Paging size %free 24.0% <20% <10%
Warning -> Paging Space RAMSmilieg 31.7% <50% <10%
DANGER -> Page Faults faults 1045.3 >16/s >160/s

Obviously, I guess this server have a "small" problem of tuning.
# 6  
Old 05-08-2008
post vmo -a and the amout of mem and cpus and vmstat -I 5 5 and vmstat -v if you need tuning assistance Smilie

Rgds
zx
# 7  
Old 05-09-2008
Hi zxmaus and thanks in advance for your help.

oslevel -r : 5300-03

- Memory
Physical memory : 16 Mb
Paging space : only 5 Mb

- Processor :
Processor Type: PowerPC_POWER5
Number Of Processors: 4
Processor Clock Speed: 1896 MHz

Command : vmo -a
cpu_scale_memp = 8 ; data_stagger_interval = 161 ; defps = 1
force_relalias_lite = 0 ;framesets = 2; htabscale = n/a
kernel_heap_psize = 4096 ; large_page_heap_size = 0 ; lgpg_regions = 0
lgpg_size = 0 ; low_ps_handling = 1 ; lru_file_repage = 1
lru_poll_interval = 10 ; lrubucket = 131072 ; maxclient% = 80
maxfree = 1088 ; maxperm = 3096895 ; maxperm% = 80
maxpin = 3304704 ; maxpin% = 80 ; mbuf_heap_psize = 4096
memory_affinity = 1 ; memory_frames = 4079616 ; memplace_data = 2
memplace_mapped_file = 2 ; memplace_shm_anonymous = 2
memplace_shm_named = 2 ; memplace_stack = 2 ; memplace_text = 2
memplace_unmapped_file = 2 ; mempools = 0 ; minfree = 960
minperm = 774223 ; minperm% = 20 ; nokilluid = 0
npskill = 10112 ; npsrpgmax = 80896 ;npsrpgmin = 60672
npsscrubmax = 80896 ; npsscrubmin = 60672 ; npswarn = 40448
num_spec_dataseg = 0 ; numpsblks = 1294336 ; page_steal_method = 0
pagecoloring = n/a ; pinnable_frames = 3319403 ;
pta_balance_threshold = n/a ; relalias_percentage = 0 ;rpgclean = 0
rpgcontrol = 2 ; scrub = 0 ;scrubclean = 0 ; soft_min_lgpgs_vmpool = 0
spec_dataseg_int = 512 ; strict_maxclient = 1 ; strict_maxperm = 0
v_pinshm = 0 ; vm_modlist_threshold = -1 ; vmm_fork_policy = 1

Command : vmstat -v
4079616 memory pages
3871119 lruable pages
21738 free pages
0 memory pools
760743 pinned pages
80.0 maxpin percentage
20.0 minperm percentage
80.0 maxperm percentage
72.5 numperm percentage
2809328 file pages
0.0 compressed percentage
0 compressed pages
72.7 numclient percentage
80.0 maxclient percentage
2817268 client pages
0 remote pageouts scheduled
4018 pending disk I/Os blocked with no pbuf
48890 paging space I/Os blocked with no psbuf
2740 filesystem I/Os blocked with no fsbuf
110 client filesystem I/Os blocked with no fsbuf
89345 external pager filesystem I/Os blocked with no fsbuf

Command : vmstat -I 5 5
kthr memory page faults cpu
-------- ----------- ------------------------ ------------ -----------
r b p avm fre fi fo pi po fr sr in sy cs us sy id wa
1 1 0 1837530 20768 41 196 8 0 0 0 1110 29968 10573 17 10 70 3
1 1 0 1833453 24285 75 213 11 0 0 0 1043 32556 13921 16 14 62 7
1 1 0 1827655 28258 22 74 85 0 0 0 740 57171 6965 21 5 68 6
2 1 0 1832959 21916 60 151 99 0 0 0 434 46722 7054 31 11 47 11
1 1 0 1832622 20253 96 230 88 0 0 0 1351 32595 11736 19 10 63 8
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Memory consumption history

I want to obtain memory consumption history on a HPUX machine. I know I can access data from the last week with sar sar -f /var/adm/sa/sa14 I do not know how to get memory usage with sar. Are there any other ways? thank you (3 Replies)
Discussion started by: black_fender
3 Replies

2. HP-UX

Find out most memory consumption process in HP UX

Dear All, I want to find out top 15 memory consumption processes in HP UX. Can anyone give me any idea about it? Kauser (2 Replies)
Discussion started by: makauser
2 Replies

3. HP-UX

memory consumption over a time period

Hi, Can some one please tell me how do I generate a report of the Memory Consumption over a time period: HP-UX B.11.31 U ia64 0440531406 unlimited-user license I normally use glance to monitor memory in run time. Note: I do not have root privileges. Thanks Danish ... (5 Replies)
Discussion started by: danish0909
5 Replies

4. UNIX for Advanced & Expert Users

how to find memory consumption by application

Hello, we are using AIX 6.1 On our AIX 6.1 server there are two instance of Oracle, a Websphear, a Java application and informatica are running. Can I find out how much memory each of these are consuming? Thanks, (1 Reply)
Discussion started by: AIX_DBA
1 Replies

5. UNIX Desktop Questions & Answers

Regarding Memory Consumption

Hi All I am new to UNIX ,can any one please help in finding MEMORY CONSUMPTION of VLC when i use it as Streaming Server. I need to log the memory consumption for atleast 10 hours. Can any one help me in finding this Please (1 Reply)
Discussion started by: ravikanth17
1 Replies

6. AIX

Memory consumption issue in AIX box

Hi, monitor memory usage on AIX machine on any day of the week from 3:00 PM ET to 5:00 PM ET - Povide min and max memory consumption. Determine if all of the available memory is visible to the operating system. If it is not, determine the amount of memory which may be allocated to the... (3 Replies)
Discussion started by: Rookie_newbie
3 Replies

7. Programming

Current and Peak Memory consumption of my program?

Hi, my C++ program does some memory consuming tasks and runs several minutes. During execution time, I want to print information on the current memory consumption and peak memory consumption of my program into a logfile. How can I retrieve this information, i.e. which functions are available... (0 Replies)
Discussion started by: DarthVader77
0 Replies

8. Solaris

real memory consumption of a process

hi pmap, prstat and ps gives the RSS which is shared memory. I need to know the consumption of real memory. how to do that? thx (4 Replies)
Discussion started by: melanie_pfefer
4 Replies

9. HP-UX

Memory Consumption Commands

I want to check the memory usuage on the HP-UX box. print_manifest : gave me the information of the system configuration and came to know that we have 8GB of ram. But on runtime I want to know what is the memory left. Iam new to HP-UX and I would appreciate if some one can assist me on... (2 Replies)
Discussion started by: siebeladmin
2 Replies

10. AIX

Memory consumption of threads

Hi, how can I find out how many memory (physical and virtual) a thread uses at the moment? I know how to find out the Thread-ID, but not how to monitor it... We use AIX 4.3.3 at th emoment. Please help, I am stuck :confused: !! (0 Replies)
Discussion started by: Fong
0 Replies
Login or Register to Ask a Question