- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory 100%
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
02-18-2005 07:40 AM
02-18-2005 07:40 AM
memory 100%
Can someone tell when this would happen?
dev 262144 67386 194758 25.71% 0 -
reserve - 194758 -194758
memory 385984 385984 0 100.00%
I am curious as to why dev is 25.71% used, memory is 100% used and still the system crashed. This information is from syslog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 07:49 AM
02-18-2005 07:49 AM
Re: memory 100%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 08:16 AM
02-18-2005 08:16 AM
Re: memory 100%
There are cases where this could crash the system.
A lot depends on how you define "crash".
If you mean it hung and nothing would run well that is because you are out of memory.
Your choices at that point are to "TOC" the box so HP can read the dump OR if you can still get in, you might run something that is cheap on memory to see who is the hog.
I like:
ps -ef | cut -c42-80 | head
which will show you the top CPU hogs. This are also a lot of times the memory hogs and you can see who to kill.
If by crash, you mean that it rebooted itself, it is possible especially if you are running under Serviceguard and the lack of memory caused a SG TOC .
Other critical programs not running could cause in rare cases, a hang as well , i.e. Spinlock Deadlock problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 12:21 PM
02-18-2005 12:21 PM
Re: memory 100%
Top's virtual memory details:
Memory: 1204948K (98112K) real, 147292K (111512K) virtual, 121124K free
A process runs with 1gb memory
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
1 ? 1297 weblogic 152 20 1264M 1101M run 36:19 0.80 0.80 java
Is this system safe with just 121mb free? The process though using 1gb is not effecting the system ... do you then think the memory leak caused the vm 100%?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 02:31 PM
02-18-2005 02:31 PM
Re: memory 100%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 03:24 PM
02-18-2005 03:24 PM
Re: memory 100%
NOTE: Always use swapinfo -tm. As mentioned, the memory line in swapinfo refers to RAM in pseudo-swap. The summary line with the -tm option will show total virtual memory. The listing in top concerning memory usage is quite difficult to understand and the man page is not much help.
Now as for a system crash, do you mean that the entire computer halted and rebooted with a system panic? Or do you mean that the application stopped running and created core file(s)?
If you want to see which progams are using the most memory, use this command:
UNIX95=1 ps -eo vsz,pid,ppid,ruser,args | sort -rn | head -20
Keep running this command every few minutes after starting your application and see if some processes grow all the time.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 01:39 AM
02-21-2005 01:39 AM
Re: memory 100%
A program created core in root file system which stopped the system. That program is not the one with the memory leak. It appears the program dumped core because it couldn't fork processes as the memory was 100%. In other words, did the memory leak exhaust the pseudoswap? And, if there were no memory leaks, is this system safe with this?
swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 6 1018 1% 0 - 1 /dev/vg00/lvol2
reserve - 1018 -1018
memory 1508 680 828 45%
total 2532 1704 828 67% - 0 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 02:01 AM
02-21-2005 02:01 AM
Re: memory 100%
umask -c 0
If this fails (gives an error), you're using an unpatched version of ksh--/usr/bin/sh works just fine. What this does is to prevent cpore files from forming at all. You can even put this into /etc/profile to prevent corefiles from being created although if you have programmers that need corefiles to fix problems, change the command to:
ulimit -Sc0
You certainly have very small memory and if you're trying to run processes that need more than 1.5Gb of RAM, then you need to add a lot more swap, perhaps another 2-4Gb. However, swapping (actually, paging) will have a very, very serious performance hit, so you may be able to run everything but it will be very slow. The only way to improve performance is to add a lot of RAM, perhaps an additional 4Gb of memory.
Your swapinfo details do not show any usage but unless you run swapinfo when the program is consuming a lot of virtual memory, it won't be a useful metric.
And to clarify, a program that is supposed to use a large amount of memory is normal but a memory leak is a mistake (the program isn't supposed to use the memory). You must obtain the memory requirements from the manufacturer or programmer to see if it is normal.
Bill Hassell, sysadmin