- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: MMAP-Not enough memory on multiple SSH session...
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
09-12-2007 06:24 PM
09-12-2007 06:24 PM
We encountered "MMAP-Not enough memory" issue in the syslog when we did a load test on Monday. The load test simulated concurrent SSH sessions while some key batch jobs were running. Everything works well until we try to open more than 313 SSH sessions (our target is 450). The error starts appearing and beyond that, no other SSH session can be established with the server and other processes cannot be started.
I am thinking of below solution to resolve this error:
Edit /etc/opt/ssh/sshd_config
From
#Compression yes to
Compression yes
Please advice.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 06:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 06:38 PM
09-12-2007 06:38 PM
Re: MMAP-Not enough memory on multiple SSH sessions
After OS Kernel Parameter "shmmni" increase, perform further testing.
If issue persists, increase OS Kernel Parameter value "nproc" as well.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 08:00 PM
09-12-2007 08:00 PM
Re: MMAP-Not enough memory on multiple SSH sessions
Install Latest Version of HP-UX Secure Shell (A.04.50.009/010/011):
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA
Defects Fixed in above Latest Version:
http://docs.hp.com/en/5992-1942/ch01s04.html
http://docs.hp.com/en/5992-1942/ch01s05.html
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 08:03 PM
09-12-2007 08:03 PM
Re: MMAP-Not enough memory on multiple SSH sessions
HP-UX OS Patches Requirement:
http://docs.hp.com/en/5992-1942/ch01s09.html#babjebhg
For HP-UX 11.11 OS:
PHCO_35250 s700_800 11.11 libpam_unix cumulative patch
PHCO_35743 s700_800 11.11 libc cumulative patch
PHCO_36229 s700_800 11.11 pthread library cumulative patch
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 02:28 PM
09-13-2007 02:28 PM
Re: MMAP-Not enough memory on multiple SSH sessions
Please advice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 02:39 PM
09-13-2007 02:39 PM
Re: MMAP-Not enough memory on multiple SSH sessions
you can gain back some memory by lowering the dbc_min_pct and dbc_max_pct.
at least you will have more user memory to use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 02:41 PM
09-13-2007 02:41 PM
Re: MMAP-Not enough memory on multiple SSH sessions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 03:18 PM
09-13-2007 03:18 PM
Re: MMAP-Not enough memory on multiple SSH sessions
you can lower the min value to gain back more User available memory. Change the dbc_min values to a low percentage. Run Glance and enter M for memory and look at the allocated or lockable memory on Boot. The dbc min can lower this reserve and give back to User available memory. just a thought.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 03:21 PM
09-13-2007 03:21 PM
Re: MMAP-Not enough memory on multiple SSH sessions
# dmesg
and post please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 06:58 PM
09-13-2007 06:58 PM
Re: MMAP-Not enough memory on multiple SSH sessions
For private mmaps, this could mean out of swap space. Can you do "swapinfo -tam" around the time you are getting the above error?
For mmap on a file, it could be due to you running out of shared memory or having it fragmented. Can you do "ipcs -ma"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 07:38 PM
09-13-2007 07:38 PM
Re: MMAP-Not enough memory on multiple SSH sessions
>> IF we increase the values of kernel parameters
>> We are not able to bring up the server
Should not have any issue. Something is not right here.
Post attachment:
# kmtune > kmtune.txt
# swlist -l product > swist.txt
Advise - Original & NEW OS Kernel Parameter(s) Value that you tried
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 03:07 PM
10-22-2007 03:07 PM
Re: MMAP-Not enough memory on multiple SSH sessions
Though the problem was resolved by having latest version of ssh.
However, I am scared that the problem might occur in future. The dynamic kernel parameters are at its high. Will need your expertise on whether you see anything that we should be alarmed with?
Actually, We are migrating our application from Server A to Server B. Server A is well configured and never had any issues with memory. Below are some requested outputs and comparisons from both servers:
1. dmesg command gave me below error on peg1 and cceor10
Can't read kernel memory
However, I could get the below information from /var/adm/messages file.
For Server A Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 14680064 Kbytes, lockable: 11559420 Kbytes, available: 13258888 Kbytes
For Server B:
The message files is of zero byte on cceor10.
/var/adm/messages file is empty on cceor10
-rw-r--r-- 1 root root 0 Oct 11 19:43 /var/adm/messages
I have attached output of ipcs â ma. and output of Glance
Server A
Total VM : 1.23gb Sys Mem : 971.0mb User Mem: 5.29gb Phys Mem: 14.0gb
Active VM: 97.1mb Buf Cache: 1.12gb Free Mem: 6.64gb
Server B
Total VM : 3.9gb Sys Mem : 3.4gb User Mem: 2.6gb Phys Mem: 16.0gb
Active VM: 3.8gb Buf Cache: 1.9gb Free Mem: 8.0gb
Please advice - IF any actions are needed on Server B to avoid such memory issues in future?
Many Thanks!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 03:14 PM
10-22-2007 03:14 PM
Re: MMAP-Not enough memory on multiple SSH sessions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 04:21 PM
10-22-2007 04:21 PM
Re: MMAP-Not enough memory on multiple SSH sessions
It seems the two are similar. There are lots of 16 Mb segments.
The total is very large:
$ awk_size.sh ipcs@serverA.txt
Total MB size: 1153.11
$ awk_size.sh ipcs@serverB.txt
Total MB size: 1472.58
What does swapinfo -tam have for each?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 04:27 PM
10-22-2007 04:27 PM
Re: MMAP-Not enough memory on multiple SSH sessions
Thanks for your reply.
By seeing quickly the differences - Do you see anything missing or scope of improvements on Server B? Is it good enough?
Yes Server B is 11.11 and A is just 11.
Sorry I did not understand the lines about awk_size.sh ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 04:41 PM
10-22-2007 04:41 PM
Re: MMAP-Not enough memory on multiple SSH sessions
The max* values seemed to be bigger.
>I did not understand the lines about awk_size.sh?
A script I wrote to add up the shared memory segment sizes.