Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Unable to access AIX5.2 server due to more virtual memory usage ?

Posted on 2009-05-11
Last Modified: 2013-11-17
Due to 90% swap space usage We are unable to access the server ? while try access server through telnet or ssh  it is getting exited like below.
$ telnet xxxxxxxxxx
Connected to xxxxxxx.
Escape character is '^]'.
Local flow control off
Connection closed by foreign host.

if I try to access the server through console we are end up with following error
gh space
        Could not fork: Not enough space
                                        Could not fork: Not enough space
                                                                        Could not fork: Not enough space
                                                                                                        Could not fork: Not e

Question by:rammaghenthar
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24356831
How critical is this server? Can you restart it ? Can you enter in maintenance mode and expand the volume? It seems to me that it is not only a problem with swap and it seems your /sys volume is also topped.
LVL 68

Expert Comment

ID: 24359749
First solution to try:
  • reboot (don't start any applications)
  • increase swap using 'smitty chps' or 'chps -s [# partitions] [paging space name]'
If a normal reboot doesn't bring the system back to a normal state:
  • shutdown
  • boot in maintenance mode
  • increase swap as described above
If swap utilization continues to grow:
  • examine your system for 'runaway' processes:
    • use 'topas, press 'P'. move cursor to 'PAGE SPACE'
  • consider upgrading to 5.3 in order to get rid of possible bugs
KeremE: What is a /sys volume?

LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24359769
Opps sorry :) I meant /usr
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Expert Comment

ID: 24367308
probably is a PS problem but, suppose that the problem is not in PS neither in /usr, but probably in root fs (/) or /var.

If you can, try to login in console, with another user rather than root, and perform a df:
see %Used and from this give an su (not "su -" ).
Change dir to / and remove log file and sure a core file.


LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24368288
I agree with dolomiti. Though it is obvious that it is a filesize problem which is very common with aix.  It might be any critical directory. But if it is preventing the user from loging probably one of /var, / or /usr.

Your only alternative is try to boot in maintenance mode and do a
df -k
Then expand the volueme in quistion. If the problem is with /var you might like to trim down some logs and keep your /var logs under conftrol with built in log removal rules or an external applications like logrotate.

LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24368294
Since this spave issue prevents you from loging maintenance mod will allow you boot since it wont need yo use your /var.

LVL 68

Expert Comment

ID: 24368335
Who's next to throw the dice?

Author Comment

ID: 24371692
        I am unable to access server. In our setup HMC GUI mode is not working.
How reboot server and go to maintenace mode through HMC command line?
Can I increase paging spce when server is in maintenance  mode ? will smitty chps run in maintenance mode ?
LVL 68

Accepted Solution

woolmilkporc earned 500 total points
ID: 24372341
are you even unable to start the GUI from the original HMC terminal? If so, regardless of your actual problem, I'd strongly suggest to fix that issue!
Anyway -
As first steps you should simply reboot the partition and then try to access it using a virtual terminal.
1) reboot - Log in to the HMC as hscroot and issue
chsysstate -r lpar -m managed_system -o shutdown --immed --restart -n lparname
The values for managed-system and lparname are to be supplied by you.
2) open a virtual terminal to the lpar - there are two ways. Either issue at the HMC
mkvterm -m managed_system -n lparname
With vtmenu you will be presented selection panels from which to choose the managed system and the lpar.
Once the terminal has opened, try to log in as root and see what you can achieve.
Ater exiting from the lpar, try to escape the VT session by typing ~~ or .~
Attention - in some cases escaping will not work and your ssh session to the HMC will become unusable. Simply close your session to the HMC and open a new one.
Please post the results of the above. If there was no success, we must go to maintenance mode. Do you have an optical drive which you can attach to the lpar and appropriate AIX installation media? If not, we'll have to use NIM.
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24372438
Who's next to throw the dice?

I don't know about throwing a dice but I can tell an arrogant person on sight :)
LVL 62

Expert Comment

ID: 24374424
You have to get single session to server - like from console.
Then renice your shell
Then smitty wlm, and cage runaway processes.output of uptime, vmstat 5 5 and oslevel -r would be handy

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question