<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Process and Memory Management in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974624#M784086</link>
    <description>&amp;gt; How do I know whether a program is a bad program ..&lt;BR /&gt; &lt;BR /&gt;A bad program is one that uses massive resources such as memory and/or disk I/O without a good reason, or the resources are consumed due to mistakes in the code. Poor programming would also include a lack of requirements, that is, the programmer does not know how much memory or disk I/O is needed.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; To start with I need to specify some benchmark for java process.&lt;BR /&gt; &lt;BR /&gt;Java is a complex language to analyze, partly because it can be used to generate dozens to hundreds of threads or subprograms (and hitting limits with kernel parameters such as NPROC, NFILE and threads). A lot depends on the quality of the Java support libraries which means that the Java installation must be patched to the latest level, Java 5.something at this point. See:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.hp.com/products1/unix/java/?jumpid=go/java" target="_blank"&gt;http://www.hp.com/products1/unix/java/?jumpid=go/java&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;A programmer can easily request 1000 megs of RAM when only 100 megs is needed. The above recommendations to identify such processes (using the ps command) can point out big resource problems.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; In my case I set values for Kernel Parameters&lt;BR /&gt; &lt;BR /&gt;As far as limits such as maxdsiz, nproc, nfile, maxuproc, etc, they can be set to very high values to allow the programs to run, then the programmers can work on improving the code for more efficient use of system resources.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; Asked the users to start thier builds but the builds fail with Out of Swap error.&lt;BR /&gt;I checked I do have swap space ..&lt;BR /&gt; &lt;BR /&gt;Well, all HP-UX systems have swap space, the question is how much. HP-UX is a virtual memory system so memory is a combination of RAM and swap. Once you run out of RAM, HP-UX will use the swap space. If you have 4Gb of RAM but all your programs need a total of 16Gb, then you'll need more than 12Gb of swap space. However, swap is extremely slow compared to RAM so your programs will run very slow when swapping starts. There is no fix for this except a lot more RAM. To avoid swapping, RAM should be large enough to keep swapping below 4-8 pages per second.&lt;BR /&gt; &lt;BR /&gt;As far as the builds that are failing, the simplest fix is to double or triple your swap area. Use the command swapinfo -tam to identify the current usage.</description>
    <pubDate>Wed, 10 May 2006 06:27:11 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2006-05-10T06:27:11Z</dc:date>
    <item>
      <title>Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974607#M784069</link>
      <description>Hi Guys&lt;BR /&gt;I have rp4440 with 11.11 installed &lt;BR /&gt;It had 64 GB of RAm.&lt;BR /&gt;&lt;BR /&gt;Actually I want learn Process management and Memory Management.&lt;BR /&gt;This server has a lot of JAVA Programms running . And the CPU and Memory Utilization is always nearing 100 % .&lt;BR /&gt;Right I check using vmstat command&lt;BR /&gt;&lt;BR /&gt;There is lot of Page in's but no page Outs and also There are lot of page faults .&lt;BR /&gt;Could please help what does this scenario means &lt;BR /&gt;&lt;BR /&gt;And how do I find out which process cosuming more CPU / Memroy .&lt;BR /&gt;Also what is page faults &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please help me .</description>
      <pubDate>Thu, 20 Apr 2006 08:23:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974607#M784069</guid>
      <dc:creator>Sagar Sirdesai</dc:creator>
      <dc:date>2006-04-20T08:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974608#M784070</link>
      <description>Hi Sagar, &lt;BR /&gt;&lt;BR /&gt;1) to get sorted list of CPU consumption per process, use top command.&lt;BR /&gt;&lt;BR /&gt;2) to monitor CPU on a singl process, consider sar command.&lt;BR /&gt;&lt;BR /&gt;3) to check memory usage, consider using:&lt;BR /&gt;export UNIX95=1&lt;BR /&gt;ps -ef -o pid,sz,vsz,comm,args&lt;BR /&gt;&lt;BR /&gt;does this answer your questions?</description>
      <pubDate>Thu, 20 Apr 2006 10:02:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974608#M784070</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2006-04-20T10:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974609#M784071</link>
      <description>also, regarding pages in/out, if your swapinfo reports no usage of device, it means that all processes are working in memory only, and not swaping out to device. This is great&lt;BR /&gt;exemple:&lt;BR /&gt;# swapinfo&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     4194304       0 4194304    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       - 3304292 -3304292&lt;BR /&gt;memory  14465736 1696364 12769372   12%&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Apr 2006 10:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974609#M784071</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2006-04-20T10:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974610#M784072</link>
      <description>Hi Antonio&lt;BR /&gt;Thanks for your help&lt;BR /&gt;Firstly &lt;BR /&gt;What is the differnce between between vsz and sz.&lt;BR /&gt;does sz -- Means total size of the process in memeory&lt;BR /&gt;vsz --- Means total size of the process.&lt;BR /&gt;&lt;BR /&gt;Also &lt;BR /&gt;What command optins should i use fro sar to single out a process &lt;BR /&gt;&lt;BR /&gt;I normally use &lt;BR /&gt;&lt;BR /&gt;ps -e -o pid,pcpu | grep "desired pid"&lt;BR /&gt;&lt;BR /&gt;When i use use swapinfo -tam command &lt;BR /&gt;I do see that my device files are used up &lt;BR /&gt;&lt;BR /&gt;So is the reason that the Pageouts are not possible&lt;BR /&gt;because there is no space to pageout .&lt;BR /&gt;&lt;BR /&gt;Also when there is a lot of pagein's does it heavily loads the CPU,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;&lt;BR /&gt;Sagar Sirdesai</description>
      <pubDate>Thu, 20 Apr 2006 22:58:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974610#M784072</guid>
      <dc:creator>Sagar Sirdesai</dc:creator>
      <dc:date>2006-04-20T22:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974611#M784073</link>
      <description>See attached document this will help you.&lt;BR /&gt;&lt;BR /&gt;Awadhesh</description>
      <pubDate>Thu, 20 Apr 2006 23:05:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974611#M784073</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2006-04-20T23:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974612#M784074</link>
      <description>Are Sagarwa,&lt;BR /&gt;&lt;BR /&gt;1. First thing to is ask users whey so many Java processes are to be run. With some start options in java (particularly initial heap size, max heap size etc.), you can control how much memory they are using and should be using.&lt;BR /&gt;ps -xef | grep [j]ava will tell you what options they are starting Java with.&lt;BR /&gt;&lt;BR /&gt;2. Now, to know what programs are using most of the memory/cpu do as follows.&lt;BR /&gt;UNIX95= ps -ef -o vsz,pid,ppid,ruser,args | sort -k1&lt;BR /&gt;UNIX95= ps -ef -opcpu,pid,ppid,ruser,args|sort -k1&lt;BR /&gt;&lt;BR /&gt;3. Page faults keep happening. Unless their number is very high, you should not be worrying about. It happens, when processes tries to access a memory page and it;s not there. It may be paged out to swap. This is page fault. Also check swap usage. swapinfo -mat. If you have this much RAM, what are your settings for following&lt;BR /&gt;dbc_max_pct, dbc_min_pct, nbufs, buffpages. Also what about swapmem_on kernel setting?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In nutshell, unless you ask users to control memory usage, you would always be hitting 100% CPU, memory.</description>
      <pubDate>Thu, 20 Apr 2006 23:14:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974612#M784074</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-04-20T23:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974613#M784075</link>
      <description>Sagar, &lt;BR /&gt;additionally to previous answers, if your server is intensively running java applications, you should run hpjconfig utility on it (if not yet done) in order to check that patches and system configuration is OK for java:&lt;BR /&gt;&lt;A href="http://www.hp.com/products1/unix/java/java2/hpjconfig/index.html" target="_blank"&gt;http://www.hp.com/products1/unix/java/java2/hpjconfig/index.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Apr 2006 01:35:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974613#M784075</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2006-04-21T01:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974614#M784076</link>
      <description>Hi All &lt;BR /&gt;Thanks all to your answers....&lt;BR /&gt;&lt;BR /&gt;Right now servers is stable . We figure out a few processes which make server task.&lt;BR /&gt;So we are not running them now.&lt;BR /&gt;&lt;BR /&gt;Awadesh : size command looks very useful .&lt;BR /&gt;Please help me how do I use more effecyively.&lt;BR /&gt;&lt;BR /&gt;RAC: here are the required kernel parameters.&lt;BR /&gt;bufpages               204800  &lt;BR /&gt;nbuf                        0  dbc_max_pct                 0  &lt;BR /&gt;dbc_min_pct                 0  &lt;BR /&gt;swapmem_on                  1  &lt;BR /&gt;&lt;BR /&gt;Please assist and advise.&lt;BR /&gt;Regards&lt;BR /&gt;Sagar</description>
      <pubDate>Thu, 27 Apr 2006 03:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974614#M784076</guid>
      <dc:creator>Sagar Sirdesai</dc:creator>
      <dc:date>2006-04-27T03:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974615#M784077</link>
      <description>Kernel parameters look fine. You have 838MB of buffer space, which good enough. As said earlier, the real trick is control users, particularly java like users. Also make sure that you are up to date on Java pacthes for good java performance.</description>
      <pubDate>Thu, 27 Apr 2006 04:05:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974615#M784077</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-04-27T04:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974616#M784078</link>
      <description>Hi RAC&lt;BR /&gt;&lt;BR /&gt;thanks for the tips&lt;BR /&gt;&lt;BR /&gt;One last help&lt;BR /&gt;Could you please help me understanding the kernel parameters .So that I can use them more appropriately .&lt;BR /&gt;&lt;BR /&gt;I am aware of swapmem_on .&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Apr 2006 04:53:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974616#M784078</guid>
      <dc:creator>Sagar Sirdesai</dc:creator>
      <dc:date>2006-04-27T04:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974617#M784079</link>
      <description>Which kernel parameters you want help with? &lt;BR /&gt;</description>
      <pubDate>Thu, 27 Apr 2006 04:58:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974617#M784079</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-04-27T04:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974618#M784080</link>
      <description>bufpages&lt;BR /&gt;nbuf &lt;BR /&gt;dbc_max_pct&lt;BR /&gt;dbc_min_pct &lt;BR /&gt;maxdsiz&lt;BR /&gt;maxdsiz_64&lt;BR /&gt;maxtsiz&lt;BR /&gt;maxtsiz_64&lt;BR /&gt;maxssiz&lt;BR /&gt;maxssiz&lt;BR /&gt;&lt;BR /&gt;Also what are data size , test size , stack size of process .&lt;BR /&gt;It will be more clear if any exaple is used to explain.&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;Sagar</description>
      <pubDate>Thu, 27 Apr 2006 05:16:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974618#M784080</guid>
      <dc:creator>Sagar Sirdesai</dc:creator>
      <dc:date>2006-04-27T05:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974619#M784081</link>
      <description>Refer following link for detailed explanation.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/TKP-90202/index.html" target="_blank"&gt;http://docs.hp.com/en/TKP-90202/index.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/939/KCParms/KCparams.OverviewAll.html" target="_blank"&gt;http://docs.hp.com/en/939/KCParms/KCparams.OverviewAll.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;bufpages - buffer pages setting. Buffer cache setting.&lt;BR /&gt;nbuf - no. of buffers. One of bufpages or nbuf needs to set. This static buffer cache setting.&lt;BR /&gt;dbc_max_pct - Used for dynamic buffer cahe max setting. Need to give max % of RAM that will be used as buffer cache.&lt;BR /&gt;dbc_min_pct - min % dynamic buffer cache. Dynamic buffer cache can expand, contract as required. With static, you set once and that memory set aside as buffer cache.&lt;BR /&gt;maxdsiz - data size for 32 bit programs.&lt;BR /&gt;maxdsiz_64 - data size for 64 bit programs.&lt;BR /&gt;maxtsiz - text segment size for 32 bit programs&lt;BR /&gt;maxtsiz_64 - text segment size for 64 bit programs &lt;BR /&gt;maxssiz - stack segment size for 32 bit programs.&lt;BR /&gt;maxssiz_64bit - stack segment size for 32 bit programs.&lt;BR /&gt;&lt;BR /&gt;Every program has three segments assigned to it-data,text and stack.</description>
      <pubDate>Thu, 27 Apr 2006 05:37:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974619#M784081</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-04-27T05:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974620#M784082</link>
      <description>In answer to your earlier questions:&lt;BR /&gt; &lt;BR /&gt;&amp;gt; does sz -- Means total size of the process in memeory&lt;BR /&gt;&amp;gt; vsz --- Means total size of the process.&lt;BR /&gt;&lt;BR /&gt;The man page for ps is helpful here. sz is the core image of the process measured in pages while vsz is the same measurement shown in Kbytes.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; What command optins should i use fro sar to single out a process&lt;BR /&gt; &lt;BR /&gt;sar has no options for a single process (per the man page). sar measures overall kernel activity.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I normally use&lt;BR /&gt;&amp;gt; ps -e -o pid,pcpu | grep "desired pid"&lt;BR /&gt;&lt;BR /&gt;Again, the man page is very useful. You can show this information without grep:&lt;BR /&gt; &lt;BR /&gt;UNIX95= ps -e -p "desired pid" -o pid,pcpu&lt;BR /&gt;&lt;BR /&gt;I noticed in your example that UNIX95 was not set on the command line. If you use oprions like -o -H -C you will get an error unless UNIX95 is set. However, it is a very bad idea to set or export UNIX95 in your shell as it affects many other commands and libraries. Be sure UNIX95 is unset in your shell and always set it temporarily on the command line. You can safely set UNIX95 for all ps commands with an alias in .profile:&lt;BR /&gt; &lt;BR /&gt;alias ps="UNIX95= ps"&lt;BR /&gt;&lt;BR /&gt;&amp;gt; When i use use swapinfo -tam command I do see that my device files are used up&lt;BR /&gt; &lt;BR /&gt;If you mean that the percentage of occupied space is close to 100%, then your RAM is far too small for the applications.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; So is the reason that the Pageouts are not possible because there is no space to pageout .&lt;BR /&gt; &lt;BR /&gt;Pageouts only occur when processes are deactivated to make room for other processes. So this is an instantaneous measurement and does not show previous pageouts. Note that extensive use of memory mapped files can also occupy swap space. If there is no space to pageout, the processes needing more RAM will fail or crash.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Also when there is a lot of pagein's does it heavily loads the CPU,&lt;BR /&gt; &lt;BR /&gt;Pagein is actually two conditions measured as one. When a process starts for the first time, the executable file is the source and the process is 'paged in' from that file. So every program start will create pageins. If a process must be returned from swap, that will also cause pageins. There is no way to separate the count into starts versus pagein from swap.&lt;BR /&gt; &lt;BR /&gt;Now pageins do not load the CPU as there is little computation beign done. But as is true for swapping of any sort, the entire system will be crippled (as far as performance) when a lot of pageouts start occuring.&lt;BR /&gt; &lt;BR /&gt;You will find Glance exceedingly helpful in looking at specific processes as well as instantly determining the busiest processes (RAM, CPU, disk I/O).</description>
      <pubDate>Thu, 27 Apr 2006 07:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974620#M784082</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-04-27T07:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974621#M784083</link>
      <description>Hi Gurus&lt;BR /&gt;I apologize for the late response.&lt;BR /&gt;Thanks every one for your response.&lt;BR /&gt;&lt;BR /&gt;One more query I have regarding required memory for a program&lt;BR /&gt;With  respect to a process Is it possible to find what values I need set for parameters maxdsiz, maxtsiz , maxssiz so that the process does not exit because of lack of memory.&lt;BR /&gt;&lt;BR /&gt;I checked the size dommand .. But was not successful ..&lt;BR /&gt;Please suggest &lt;BR /&gt;&lt;BR /&gt;Sagar</description>
      <pubDate>Sun, 07 May 2006 23:17:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974621#M784083</guid>
      <dc:creator>Sagar Sirdesai</dc:creator>
      <dc:date>2006-05-07T23:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974622#M784084</link>
      <description>The kernel parameters maxdsiz, etc are simply protection limits for bad programs. Setting the limits to very high values will eliminate ONE of the limits for memory allocation. Simply put, you can increase maxdsiz to about 1800 megs, and maxdsiz_64 to 8Gb. (Note that maxdsiz_64 must always be larger than maxdsiz). maxssiz and maxtsiz never need changing except for most systems.&lt;BR /&gt; &lt;BR /&gt;Memory management is not simple, especially if you have to run old 32bit applications. With 64Gb of RAM, you should not have to be concerned about running out of RAM, but there are several limits imposed by addressing in 32bit programs. These limits will appear to be out of memory but the reason is due to the program itself, not the OS and available RAM.&lt;BR /&gt;</description>
      <pubDate>Mon, 08 May 2006 09:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974622#M784084</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-05-08T09:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974623#M784085</link>
      <description>Hi Bill&lt;BR /&gt;&lt;BR /&gt;How do I know whether a program is a bad program .. To start with I need to specify some benchmark for java process .&lt;BR /&gt;&lt;BR /&gt;In my case I set values for Kernel Parameters&lt;BR /&gt;&lt;BR /&gt;Asked the users to start thier builds but the builds fail with Out of Swap error.&lt;BR /&gt;I checked I do have swap space ..&lt;BR /&gt;Then I increase the value of mazdsiz and so-on till the build gets successful.&lt;BR /&gt;Can I find out any how the kernel values required for a java process and then set the kernel parameters accordingly&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;Sagar</description>
      <pubDate>Wed, 10 May 2006 00:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974623#M784085</guid>
      <dc:creator>Sagar Sirdesai</dc:creator>
      <dc:date>2006-05-10T00:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974624#M784086</link>
      <description>&amp;gt; How do I know whether a program is a bad program ..&lt;BR /&gt; &lt;BR /&gt;A bad program is one that uses massive resources such as memory and/or disk I/O without a good reason, or the resources are consumed due to mistakes in the code. Poor programming would also include a lack of requirements, that is, the programmer does not know how much memory or disk I/O is needed.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; To start with I need to specify some benchmark for java process.&lt;BR /&gt; &lt;BR /&gt;Java is a complex language to analyze, partly because it can be used to generate dozens to hundreds of threads or subprograms (and hitting limits with kernel parameters such as NPROC, NFILE and threads). A lot depends on the quality of the Java support libraries which means that the Java installation must be patched to the latest level, Java 5.something at this point. See:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.hp.com/products1/unix/java/?jumpid=go/java" target="_blank"&gt;http://www.hp.com/products1/unix/java/?jumpid=go/java&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;A programmer can easily request 1000 megs of RAM when only 100 megs is needed. The above recommendations to identify such processes (using the ps command) can point out big resource problems.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; In my case I set values for Kernel Parameters&lt;BR /&gt; &lt;BR /&gt;As far as limits such as maxdsiz, nproc, nfile, maxuproc, etc, they can be set to very high values to allow the programs to run, then the programmers can work on improving the code for more efficient use of system resources.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; Asked the users to start thier builds but the builds fail with Out of Swap error.&lt;BR /&gt;I checked I do have swap space ..&lt;BR /&gt; &lt;BR /&gt;Well, all HP-UX systems have swap space, the question is how much. HP-UX is a virtual memory system so memory is a combination of RAM and swap. Once you run out of RAM, HP-UX will use the swap space. If you have 4Gb of RAM but all your programs need a total of 16Gb, then you'll need more than 12Gb of swap space. However, swap is extremely slow compared to RAM so your programs will run very slow when swapping starts. There is no fix for this except a lot more RAM. To avoid swapping, RAM should be large enough to keep swapping below 4-8 pages per second.&lt;BR /&gt; &lt;BR /&gt;As far as the builds that are failing, the simplest fix is to double or triple your swap area. Use the command swapinfo -tam to identify the current usage.</description>
      <pubDate>Wed, 10 May 2006 06:27:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974624#M784086</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-05-10T06:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Process and Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974625#M784087</link>
      <description>Hi All&lt;BR /&gt;Thanks all for your comments&lt;BR /&gt;&lt;BR /&gt;Sagar</description>
      <pubDate>Fri, 12 May 2006 06:24:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-management/m-p/4974625#M784087</guid>
      <dc:creator>Sagar Sirdesai</dc:creator>
      <dc:date>2006-05-12T06:24:37Z</dc:date>
    </item>
  </channel>
</rss>

