Swap Space Usage Solaris 8

Hello to all.
I had an application (a C programme) running on Solaris 2.4. Recently i upgraded to Solaris 8.
I recompiled this application (everything went smoothly). However i have a serious problem i
cannot debug further. This application runs as a daemon. As the time passes it eats all my swap space
available and never releases it. When i run out of swap space, the application crashes and has to be
restarted.
Any ideas what may be the problem ?

Sounds like a memory leak.

Similar Messages

  • Get swap space on Solaris

    Hello
    there are different opinions on how to get the swap space on Solaris.
    some say: swap -s and the space= used + available
    others say swap -l (donno how they get the swap size)
    other say 'top' command
    others say using format command (in print sub-command)
    Could you please advise on how to get the swap size on a solaris machine?
    thanks

    mpfefer wrote:
    Hello
    there are different opinions on how to get the swap space on Solaris.That's because there is no single definition of 'swap'. So if you ask for 'swap space', it's going to be interpreted differently by different people.
    some say: swap -s and the space= used + availableThis shows you the allocation of the VM space. (Most uses of 'swap' by Solaris commands equate it with total virtual memory).
    others say swap -l (donno how they get the swap size)This shows you the allocation of all active swap files.
    other say 'top' commandThat can show you both RAM usage and VM/swap usage.
    others say using format command (in print sub-command)Format can show you disk partitioning information. Disk partitioning may or may not have any bearing on how you're using swap files. You'd need at least 'swap -l' information (and possibly other commands) to make comparisons. But then again, 'swap -l' is all you'd need in that case anyway.
    Could you please advise on how to get the swap size on a solaris machine?What do you mean by 'swap size'?
    Darren

  • Swap space usage in solaris 2.6

    Hi
    I'm confused abt how the OS uses the swap space in the solaris 2.6. My system has the following configuration.
    RAM - 2560 M.
    Disk based memory for swap - 513 M (From 'top' / 'swap -l' command)
    The 'df -k' over the "/tmp" directory is showing Total around 1.8 GB space for the "swap" volume mounted over "/tmp".
    Does it mean that, only 513M of 1.8 GB is allocated for a swap slice?? BTW this is the only swap slice that our system has. So what's happening to the remaining part of 1.8 GB?? Is it getting wasted??
    When does the OS exactly starts using the disk memory?? Is it like if the OS finds that the available RAM is not sufficient for its memory operations then it starts using the disk memory??
    Any help in clearing my doubts would be highly apreciated.
    Rgds
    ravi

    Hi
    Thanks for the response. I understand the concept of anonymous memory. But what is confusing me is the "/tmp" directory. The "df -k" command over the "/tmp" directory is always showing used % as 1%. Also the "swap -s" is never matching with the output of "df -k".. ( I suppose both represent the Virtual attributes of swap space i.e. disk backed memory + portion of the RAM).
    for example following is the output of the above commands at a particular instance.
    df -k
    swap 1908728 1768 1906960 1% /tmp
    tcsb.tcs.gs1::/users/tcsuser/tmp-> swap -l
    swapfile dev swaplo blocks free
    /dev/dsk/c1t0d0s1 32,1 16 1049744 84048
    tcsb.tcs.gs1::/users/tcsuser/tmp-> swap -s
    total: 589008k bytes allocated + 98672k reserved = 687680k used, 1908920k available
    Is there anything i'm missing here??
    -ravi

  • Reporting Swap Space Usage

    I own a piece of software that reports three Solaris swap space statistics:
    Available
    Used
    Total
    It uses the swapctl API to gather the data. One user reports that this is insufficient because Solaris uses a combination of disk space (reported by swapctl) and RAM. I've spent some time researching this and think I've found that the RAM swap space statistics are available in the kstat vminfo block. Questions:
    1. Is there a Solaris API that will give me total swap space statistics (disk + RAM)?
    2. If not, am I correct that the kstat vminfo fields report just the RAM swap space statistics and that I just therefore be able to add the values from swapctl and kstat to get the total statistics I require?
    3. The vminfo block has the following swap-related properties:
         swap_resv;     /* reserved swap in pages     */
         swap_alloc; /* allocated swap in pages     */
         swap_avail; /* unreserved swap in pages */
         swap_free;     /* unallocated swap in pages */
    From what I read, I think that "reserved" + "allocated" would map to what we call "used." What is the distinction between "unreserved" and "unallocated"? If I add all four of these values together, do I get the total amount of swap space allocated in RAM?
    4. I see that these vminfo values are raw counts and that to determine the real number, you have to sample the data over an interval, subtract the values and divide by the interval to get an average. Is there any other API that gives you the values at that point in time?

    For your questioin # 1, try using the `top` command. You can cownload this
    package from www.sunfreeware.com. It has bot the Binary file and source file.

  • How can i increase the swap space in solaris 11

    On Solaris 10 I use to select how much swap space i need while installing
    On Solaris 11 it does it automatically? if it does, how can increase the swap

    You can easily create a ZFS volume, see "zfs create -V" for ideas. Then using the swap command you can add that space to your swap. You can also delete swap space with "swap -d" even though that does not delete the underlying ZFS volume.

  • Swap Space on Solaris 8

    We just installed Solaris 8 and allocated 2GB of swap space on the first slice of the disk. When I issue a df -k command, this comes out.
    swap 3.5 GB /var/run
    swap 3.5 GB /tmp
    Is this normal? Where did it get the extra 1.5 GB that it allocated for swap? How about the other 3.5 GB where did it all come from? Can somebody shed light on this? Thanks.

    That's normal. To quote from the system administration guide:
    http://docs.sun.com
    �The Solaris environment uses the concept of virtual swap space, a layer between anonymous memory
    pages and the physical storage (or disk-backed swap space) that actually back these pages. A
    system's virtual swap space is equal to the sum of all its physical (disk-backed) swap space plus a
    portion of the currently available physical memory.�
    I.e. you probably have ~ 2GB memory in the machine + the 2 GB disk
    based swap you've configured gives ~3.5GB virtual swap.
    The two mount points /tmp and /var/run are two different filesystems
    that allocate space from the same virtual swap space. They share the
    swap resource, that is, if you put things in /tmp, not only the space
    available in /tmp but also the space available for /var/run decreases.

  • Swap space on Solaris 2.7

    Hola!
    Does anyone know how much swap space is required for WLS on a Solaris
    2.7 os?
    I'm having swap space errors.
    thanks

    This is not directly related to WLS. It dends on the amount of memory you wish
    to allocate to it and the amount of memory used by other processes on your
    system.
    Guy
    Christopher Opacki <[email protected]> wrote:
    Hola!
    Does anyone know how much swap space is required for WLS on a Solaris
    2.7 os?
    I'm having swap space errors.
    thanks

  • SWAP SPACE ON SOLARIS

    Hi all,
    I want to size of the swap space on test server for installing R12 on solaris 10. I searched on metalink but found most of the notes point to database server but not to oracle applications. Any formula,suggestion,previous bad experience plz
    Regards
    Taher

    Hi Taher,
    And i had really hard time installing ADI today. I did install ADI but was not able to configure. I copied the tnsnames.ora file from $TNS_ADMIN(8.0.6 O_H) to c:\orant\network\net80 and c:\orant\network\network. But it says could not connect to database.What is the complete error message?
    What is the ADI version?
    Did you run "ADI Diagnostic Wizard"? If yes, does it show any error/warning messages?
    And there is another directory orawin95, this also contains the network,net80 folders. Should i copy tnsnames.ora to this directory as well. And should i remove sqlnet.ora from these directories as well..You will have to copy the file to both directories. Btw, what does the tnsping return?
    Plz any step by step document for installing it. I followed the UVA (University of Virginia) documents and configured it properlu. Still the same problem.There are many documents available and I believe the installation of ADI is strightforward. However, you may see these documents.
    Note: 70669.1 - ADI: Troubleshooting Connection Problems with ADI/GLDI
    Note: 131070.1 - Guide to Troubleshooting ADI Connection Problems
    Regards,
    Hussein

  • SWAP space usage??

    When I am monitoring my system using TOP, all of my java process is running well over 350M. The Size field is showing 470M and the RES field is showing 350M. But my Xms and Xmx is set to 256M. Is this mean the applications are using SWAP space?

    Not necessarily. The total memory used by the JVM process will always be more than the Java heap size, specified by ms and mx. Memory used by the JVM for internal management, memory allocated in native code and memory allocated for the permanent space are all allocated outside of the Java heap space.
    You could be using swap space if the total memory reserved by all applications and the OS in the system exceeds the physical RAM installed.
    Arunabh

  • Java and swap space in Solaris 8

    Hi,
              I've set weblogic java to run on Xmx1534m with swap space 2Gb. It seems like we always encounter out-of-space during jsp compilations. This happens whenever the system crunches on available swap space. Any ideas what to adjust for, such as system paramters.
              

    You can use compiler class instead of external compiler and compile
              in-process. I use
              public class MyCompiler {
              public static void main(String[] args) {
              ByteArrayOutputStream err = new ByteArrayOutputStream();
              sun.tools.javac.Main compiler = new sun.tools.javac.Main(err, "javac");
              if(!compiler.compile(args)) {
              throw new RuntimeException(err.toString());
              "Paul Chew" <[email protected]> wrote in message
              news:3da40212$[email protected]..
              > Hi,
              >
              > I've set weblogic java to run on Xmx1534m with swap space 2Gb. It seems
              like we always encounter out-of-space during jsp compilations. This happens
              whenever the system crunches on available swap space. Any ideas what to
              adjust for, such as system paramters.
              >
              Dimitri
              

  • SWAP space on AIX

    Hi all,
    I have prod and test on the same server on AIX 5.3 box. And application is 11i. It's not a good config but thats the way it is here. And for the last 6 months or so we are getting PGSP_KILL error in AIX log files. My server RAM is 8GB and as per Metalink docs, i first set SWAP SPACE to 0.75 times the RAM but still the same problem. Now i have set SWAP SIZE to same size of RAM(8GB). Still getting the same problem mainly when copying files to tape or taking cold backup. After this happens we get famouus FRM-92050 Failed to connect to server: xxxx.xxxx:9000. ans users can't login.
    I have gone thru many metalink docs. But plz recommend me to as what swap size should i set. Or find the offending process which is taking more resources. In errpt is shows FNDLIBR is process which is consuming lot of swap space. But i dont know what to do now.
    Regards
    Taher

    Hi Taher;
    Please check below and see its helpful for you
    Re: 12.0.4 Upgrade - Performance
    Re: Apps R12 now available
    SWAP SPACE ON SOLARIS (its your previous post)
    Regard
    Helios

  • Swaps space

    What is swaps in SAP  . I check my SAP server via st02. I seen that all  swaps filed is  red. why it is red. what the mean of red. please explane me .
    Thnaks & regards
    jagdish kumar

    Hi,
    This means that your buffers are hit badly, generally there are always swaps in an SAP system, and these keep increasing day by day if the instance is not restarted recently, an instance restart will clear the red buffer entries in ST02.
    But to reduce the swaps, increasing (or rather say optimizing) buffer memory is required.
    SAP application servers are important users of swap space. If the swap space on a computer is used up, serious system problems occur as a result. Therefore, you must monitor swap space usage.
    Go through with this link:
    [SWAP in SAP|http://help.sap.com/saphelp_nw70/helpdata/en/02/9625e3538111d1891b0000e8322f96/frameset.htm]
    Regards
    Jhony

  • Minimum Supported Configuration -Swap space

    Hi Guys,
    Just wanted to check on the swap space usage requirements for a sunray..
    It says: Disk Space: 95 MB for installation; 50-100 MB per-user swap space on http://www.sun.com/software/sunray/techspecs.jsp
    Does that mean every sunray user will need 50-100MB swap space on Sun Ray Server per user connecting through Windows Connector / VDA connector??

    Every user will need some additional amount of swap space. The 50-100MB number on that page is just an estimate, a typical average. If all of your users run memory-greedy applications in a local desktop on the Sun Ray server then you'll probably need more than that. If your users run only a few lightweight applications with no local desktop then you'll probably need less than that. If your users will be using only the Windows Connector or VDA Connector then those are lightweight compared to a full desktop plus desktop apps, so the swap requirement should be pretty small.
    If you want real-world numbers then you could ask the people on the sunray-users mailing list (see http://www.filibeto.org/mailman/listinfo/sunray-users) to share the swap numbers that they're seeing in deployments like the one you're planning.

  • What is normal swap space utilization on Solaris 10

    Hi all,
    I'm running Oracle 11.2 on Solaris 10 on a couple of HP Proliant DL 360 servers.
    Both servers have 72G of physical RAM with swap space set to 16G on both of them.
    Server A has only one database and total memory free = 30G.
    Server A
    top:  Memory: 72G phys mem, 30G free mem, 16G total swap, 16G free swap
    swap -s:   total: 27249744k bytes allocated + 13873764k reserved = 41123508k used, 1000552k available
    prstat: 
    NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU
       257 oracle     39G   38G    53% 222:11:52 5.6%
        31 root       57M   59M   0.1% 414:47:23 0.1%
         1 smmsp    1776K 7736K   0.0%   0:00:34 0.0%
         6 zabbix   4752K 4092K   0.0%   0:58:31 0.0%
         4 daemon   3864K 6456K   0.0%   0:00:35 0.0%Server B has two databases and total memory free = 9G.
    Server B
    top:  Memory: 72G phys mem, 9890M free mem, 16G total swap, 16G free swap
    swap -s:  total: 29223360k bytes allocated + 627312k reserved = 29850672k used, 16926320k available
    prstat:
    NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU
       157 oracle     28G   28G    39%  15:38:41 0.4%
        34 root       58M   65M   0.1%   2:56:57 0.0%
         6 zabbix   5580K 4816K   0.0%   0:00:31 0.0%
         1 smmsp    1776K 5724K   0.0%   0:00:00 0.0%
         5 hpsmh      17M   13M   0.0%   0:00:00 0.0%
         4 daemon   3204K 5912K   0.0%   0:00:00 0.0%We are using zfs file system on both servers (which is pretty much the standard these days on Solaris).
    Recently I got an OEM alert that my swap space on server A had crossed the 95% threshhold on one of the servers.
    But when I checked the server, I found that the average swap space utilization was 97.45.
    In fact, what actually happened was my swap utilization momentarily dropped below 95% and then returned back to its normal range above 95% which caused the alert to be triggered.
    So this made me wonder why my swap space utilization was so high on server A, or is this just normal for Solaris (v.10).
    Checking with server B, I see that my swap utilization is only at 63.6% (even though server B has much more physical memory in use by the two databases than server A).
    Main question is why is swap utilization so high on server A, which is configured the same as server B and with less physical memory actually in use.
    Next question is should I be concerned.
    When I check vmstat, I do not see any paging in or out or blocked processes.
    See below for server A
    Server A
    $ vmstat -S 5 5
    kthr      memory            page            disk          faults      cpu
    r b w   swap  free  si  so pi po fr de sr s0 s1 s2 s5   in   sy   cs us sy id
    0 0 0 1059868 30507176 0 0  0  0  0  0  2  7 -0 123 30 13742 25008 7264 5 2 93
    0 0 0 1024076 30982140 0 0  0  0  0  0  0 23  0  0 122 4433 14793 6854 6 2 92
    0 0 0 1030292 30987500 0 0  0  0  0  0  0  0  0  0 102 4055 15049 7014 8 1 91
    0 0 0 1044484 30999572 0 0  0  0  0  0  0  0  0  0 129 5905 19196 8127 6 1 93
    0 0 0 1028584 30987636 0 0  0  0  0  0  0  0  0  0 114 10611 19925 7259 6 3 90

    974632 wrote:
    Looks like we don't have 'free' on these Solaris boxes (only the man pages).
    I'm guessing that free is for linux (since it works fine on my linux boxes).
    $ whereis free
    free: /usr/man/man3c/free.3cdarn!
    Realize that SWAP is purely an OS facility; which is 100% external to Oracle.
    The OS send little used or idle processes into SWAP when RAM is scarce resource.
    The fact that SWAP is being used is not a Bad Thing, in and of itself.
    as long as vmstat shows that BI+BO > SI+SO I would ignore the Chicken Little warnings.

  • Solaris: The System does not have the required swap space

    I'm trying to install Oracle onto Solaris 9. The installation check fails with the error
    The System does not have the required swap space.
    I've read the install Guide I get the following when I do the memory checks
    bash-2.05# /usr/sbin/prtconf | grep "Memory size"
    Memory size: 1024 Megabytes
    bash-2.05# /usr/sbin/swap -s
    total: 767688k bytes allocated + 117080k reserved = 884768k used, 379040k available
    The install guide doesn't say how to increase the Swap Space. I would like to increase the Swap Space just for the duration of the installation. From the install guide I'll need a Swap Space of 1.5 times the Ram on the machine so I'll need 1.5GB Swap Space. Can someone help me out with the required syntax to increase the Swap File Size?

    Found something on the web that did the trick. Create a few files and then add to your swap.. In case it's of interest to anyone else here's what I had to do
    swap -l (lists files in swap)
    mkdir /tmp/swap/ (create dir for file to add to swap)
    mkfile tmp/swap/swap11 (create file for swap)
    swap -a tmp/swap/swap11 (add file to swap)
    swap -l (check files in swap)

Maybe you are looking for

  • Random restarts with Eclipse SLI board

    This is a copy from my post on the Vista forums havent gotten much help there. Describe the problem in detail! I just built a new system on December 22nd 2008. I do Tier 2 and 3 Helpdesk work so I can work my way around a system. I put the machine to

  • My old messages do not show on my new iphone 6.

    I am able to send new messages and they show in the log but none of my old messages show anymore. I just moved from my old faithful iPhone 4s to the iPhone 6.

  • Oracle Streams Update conflict handler not working

    Hello, I've been working on the Oracle streams and this time we've to come up with Update conflict handler. We are using Oracle 11g on Solaris10 env. So far, we have implemented bi-directional Oracle Streams Replication and it is working fine. Now, w

  • Files are now organized how? Under O/S 4!!!!!!! Alpha, Numeric, Roulette?

    Under O/S 3 Files were organized by name, in alphabetical order, or that certainly seemed to the way it was done. Now on 0/S 4 there is no rhyme or reason in the way files are organized, what the ?l l e h lol null

  • Cannot import contacts in CSV format

    hi all, When i updated my firmware on nokia e 71 i saved my messages to my pc using nokia messaging center as csv format.After upgradation when i tried to take it back the import option was disabled. I can do only export or what ?. Can anyone help me