- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 100% memory utilization
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2006 02:56 AM
01-27-2006 02:56 AM
I have read all the issues posted related to memory and swap usage. They did not address my issue, so this post.
Here is my server configuration:
HP-UX 11.00 trusted
rp5430 2 CPUs
1250 MB RAM
2000 MB of swap space
Kernel parameters:
swapmemory_on =1
maxswapchunks=2048
swapchunk=2048
dbc_max=50
dbc_min=5
shmmax=1,073,741,824
This server runs Oracle DB 9i with ~530 MG SGA
This is a standby server with no users on
The vmstat returns the following:
procs memory page
faults cpu
r b w avm free re at pi po fr de sr in
sy cs us sy id
0 0 0 1546 22858 0 0 0 0
# swapinfo
The swapinfo returns the following:
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 524288 0 524288 0% 0 - 1 /dev/vg00/lvol2
reserve - 41508 -41508
memory 945664 945664 0 100%
0 0 0 485
547 83 0 0 100
A little bit history:
When I re-boot the server and bring up Oracle
the swapinfo shows the following:# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 524288 0 524288 0% 0 - 1 /dev/vg00/lvol2
reserve - 36032 -36032
memory 945664 33224 912440 4%
We re-boot the Oracle DB from cron every night. After 2 nights we are running out of memory.
Can you help?
Thanks
Babu Yalamanchi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2006 03:04 AM
01-27-2006 03:04 AM
Re: 100% memory utilization
You wrote that, "We re-boot the Oracle DB from cron every night".
Exactly what do you mean? Are you gracefully shutting down Oracle or are you doing a 'kill' of it.
If you are sending 'kill -9' then you are probably leaving shared memory segments all over and this is causing you to run out of memory.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2006 03:17 AM
01-27-2006 03:17 AM
Re: 100% memory utilization
Thx for quick response.
We 'dbshut' and 'dbstart' from cron using oracle as the owner.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2006 03:18 AM
01-27-2006 03:18 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2006 03:22 AM
01-27-2006 03:22 AM
Re: 100% memory utilization
Good. Well, I missed the fact too that you have your Unix buffer cache far too high for an Oracle environment. I'd reduce your 'dbc_max' to perhaps 5% and 'dbc_min' to about 2%.
With only 1.2GB RAM and an SGA of 0.5GB you don't have a great amount of memory. If performance is acceptable, then you're seeing about what you can expect.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2006 04:10 AM
01-27-2006 04:10 AM
Re: 100% memory utilization
I will combine ypur responses and try the
following config changes:
dbc_max=5
dbc_min=2
buffers=1992(I have this on another machine)
How do I avoid 'You also need to take care that multiple 500MB segments don't get allocated.' ? This certainly appears to be our case.
I will run this config a few times(days).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2006 04:19 AM
01-27-2006 04:19 AM
Re: 100% memory utilization
You prevent multiple 500MB shm segments by discipline. Simply don't allow it to happen. Reducing shmmax to 600MB reduces the ability of an overzealous DBA to grab all your resources but he can still make requests for multiple 600MB segments until virtual memory is exhausted. In your case, I would actually turnoff pseudoswap (swapmem_on=0) because it is really intended for use with machines that have much more memory than swapspace. It's actually safer for you to operate with swapmem=0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2006 04:29 AM
01-27-2006 04:29 AM
Re: 100% memory utilization
You need to check
dbc_min_pct
dbc_min_pct defines the minimum percentage of memory to be used by dynamic buffer cache. There can be performance problems from having dbc_max_pct different than dbc_min_pct. If dbc_max_pct and dbc_min_pct are too far apart problems can arise.
If you are running large processes you should consider using a fixed buffer cache size, and possibly setting the chatr +pd attribute (Large pages can increase the amount of RAM a program needs by rounding up to bigger pages, so don't go too far with it.) and dbc_min_pct 5 and dbc_max_pct 10 should be fine for this .
Regards,
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2006 03:26 AM
02-02-2006 03:26 AM
Re: 100% memory utilization
Thank you all for your inputs. I have set the following parameters:
dbc_max=5
dbc_min=2
bufpages=16384(redundant)
swapmen_on=1
It works and is now stable. The solution has solved my problems.
Regards
Babu Yalamanchi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2006 03:28 AM
02-02-2006 03:28 AM
Re: 100% memory utilization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:35 PM
02-03-2006 02:35 PM
Re: 100% memory utilization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2006 12:10 AM
02-06-2006 12:10 AM
Re: 100% memory utilization
Thanks for the idea. I was keeping some device swap space for Oracle 10g we're expecting soon.
regards
Babu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2006 12:13 AM
02-06-2006 12:13 AM