- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory full problem
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
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
07-03-2003 03:33 AM
07-03-2003 03:33 AM
memory full problem
Many processes fail for not enough memory.
Running swapinfo i find memory used up to 100% and swap full up to 98%.
This is not normal it's happened only twice in a year, so i would know which is the cause of this problem.
Which command can i use to understand the possible cause of this problem?
top command and swapinfo are not enough to understand.
Thank you
Stefano
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 03:37 AM
07-03-2003 03:37 AM
Re: memory full problem
glance -m # this will show memory usage
glance -w # swap space
You can also look at memory usage by process, when in glance do "M" & enter PID.
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 03:38 AM
07-03-2003 03:38 AM
Re: memory full problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 03:43 AM
07-03-2003 03:43 AM
Re: memory full problem
Does the problem go away by itself or after reboot? is this a possible memory leak?
ps -eafl
Look in the SZ column to see which processes are tying up memory.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 03:51 AM
07-03-2003 03:51 AM
Re: memory full problem
So could you explain me what is a memory leak and how can i manage it?
Thank you
Stefano
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 03:55 AM
07-03-2003 03:55 AM
Re: memory full problem
If this is a memory leak in some of your (or
system ) applications - would require an ammount of work to be done.
Anyway,
1)swapinfo -mt (or glance) for swap
2)vmstat (or glance) for paging activities
Glance can be obtained to evaluational period (60 days I think)
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2003 08:00 AM
07-05-2003 08:00 AM
Re: memory full problem
A memory leak usually drains your resources quite slowly. Is this the case, or is it more of an 'explosive' problem ? The latter might indicate user action: are there any 'special' jobs run by any user (or even cron) around these times ?
Do install that glance trial, it will indeed prove very useful. You will know which process is the problem in a glance !
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2003 08:07 AM
07-05-2003 08:07 AM
Re: memory full problem
Glance will help a lot to see who is take
the memory and how much.
Also in top you could see this.
vmstat good if you not have glance.
swapinfo will show the information about the swap.
And another thing is if you will see that
is your program eat the memory you could
use purify from rational to compile
your code and find where is the leaks.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2003 01:52 PM
07-05-2003 01:52 PM
Re: memory full problem
UNIX95= ps -e -o "vsz,ruser,args" | sort -rn
You may want to print this list for future reference. Now if a program(or several program) begin to grow in size (and this is not expected) then the program(s) have a memory leak and the programmer must fix the errors. There is nothing you can do in the operating system to fix a bad program.
Now you may have a number of users that login to your system and then do not log out properly. This will leave shells and processes running until the next reboot. This is a user education problem. You can fix it for a while by adding more RAM and swap space but that just prevents the problem users from making the system run out of memory.
NOTE: using a lot of swap means your system is probably running quite slow. You may need to double or triple the amount of RAM you have in order to improve performance.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2003 10:32 PM
07-06-2003 10:32 PM
Re: memory full problem
you asked what is a memory leak...
When a programmes writes its code, there are functions to allocate and deallocate memory.
You relaim memory, use it for data, and then release it to the operating system, for the other programs.
A leak is when:
- the programmer did not properly deallocate memory
or
- the function for de-allocating memory didn't work properly.
Which one is hard to tell.
Usually the function for allocating/deallocating memory are written well, but you should check the patched looking tohe word leak, some will appear.
I don't see if you specified your O.S., but in ITRC, under the patch section, choose your O.S. and check if you have all the right patches
In the first case, you must check if your product had a flaw, in the sense i explained.
Usually these are published in the website of the product, you should check there too.
In addition to other suggestion, i will look at this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5daa3a7b3682d611abdb0090277a778c,00.html
Many many good ansers, suggestion, tips and scripts.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2003 11:26 PM
07-06-2003 11:26 PM
Re: memory full problem
Higher values of the kernel parameters will increase the amount of locked memory and decrease the amount of available memory.
Parameters like buffer cache(dbc_max_pct),the default value is 50% of memory.
Assume you have 2GB memory,by default 1Gb is taken for buffer cache if you have enabled the dynamic buffer cache.
In this case you can bring that to around 300MB.
ALso some parameters with higher values like the semaphore values will bring down the amount of available memory for the user processes
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 12:36 AM
07-07-2003 12:36 AM
Re: memory full problem
I suggest you write a simple script which logs the output of the commands mentioned above. You can schedule it in crontab and let it run once in every 5 minutes. By making a trend-analysis (when does my memory dissapear? and how fast? by which process? at which time?) you can analyze the problem much easier. If
Regards,
Dagmar