<?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: How can we access process info in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-can-we-access-process-info/m-p/2588805#M79241</link>
    <description>Hi Sudheer,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you should try in your favorite linux distribution the ps command with the "-m" or "m" switch. I tried it out in redhat 7.1, but I get a "ps: error: Thread display not implemented" error message. Maybe it is implemented in your distrib though...&lt;BR /&gt;&lt;BR /&gt;if you want the thread details of a C program of your own, then you should compile it with the "-g" option, execute it under gdb &amp;amp; you will be able to get thread information with the "info threads" command.&lt;BR /&gt;&lt;BR /&gt;hope this helps</description>
    <pubDate>Wed, 03 Oct 2001 07:44:29 GMT</pubDate>
    <dc:creator>Panos Agoros</dc:creator>
    <dc:date>2001-10-03T07:44:29Z</dc:date>
    <item>
      <title>How can we access process info</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-we-access-process-info/m-p/2588804#M79240</link>
      <description>Hi,&lt;BR /&gt;    In Linux, How can we find out number of threads in a process? In SPARC, We can use /proc file commands. How can we do in LINUX?</description>
      <pubDate>Wed, 03 Oct 2001 04:09:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-we-access-process-info/m-p/2588804#M79240</guid>
      <dc:creator>Sudheer Kumar</dc:creator>
      <dc:date>2001-10-03T04:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can we access process info</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-we-access-process-info/m-p/2588805#M79241</link>
      <description>Hi Sudheer,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you should try in your favorite linux distribution the ps command with the "-m" or "m" switch. I tried it out in redhat 7.1, but I get a "ps: error: Thread display not implemented" error message. Maybe it is implemented in your distrib though...&lt;BR /&gt;&lt;BR /&gt;if you want the thread details of a C program of your own, then you should compile it with the "-g" option, execute it under gdb &amp;amp; you will be able to get thread information with the "info threads" command.&lt;BR /&gt;&lt;BR /&gt;hope this helps</description>
      <pubDate>Wed, 03 Oct 2001 07:44:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-we-access-process-info/m-p/2588805#M79241</guid>
      <dc:creator>Panos Agoros</dc:creator>
      <dc:date>2001-10-03T07:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can we access process info</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-we-access-process-info/m-p/2588806#M79242</link>
      <description>Top Command&lt;BR /&gt;&lt;BR /&gt;To allow users to increase their file descriptor limits, change the following configuration files: &lt;BR /&gt;In /etc/security/limits.conf, add the lines: &lt;BR /&gt;&lt;BR /&gt;*       soft    nofile  1024&lt;BR /&gt;*       hard    nofile  4096&lt;BR /&gt;&lt;BR /&gt;In /etc/pam.d/login, add: &lt;BR /&gt;&lt;BR /&gt;session required /lib/security/pam_limits.so&lt;BR /&gt;&lt;BR /&gt;To increase the system-wide file descriptor limit, add the following three lines to the /etc/rc.d/rc.local startup script: &lt;BR /&gt;# Increase system-wide file descriptor limit.&lt;BR /&gt;echo  8192 &amp;gt; /proc/sys/fs/file-max&lt;BR /&gt;echo 24576 &amp;gt; /proc/sys/fs/inode-max&lt;BR /&gt;&lt;BR /&gt;#######################################&lt;BR /&gt;Limitations on threads are tightly tied to both file descriptor limits, and process limits. &lt;BR /&gt;&lt;BR /&gt;Under Linux, threads are counted as processes, so any limits to the number of processes also applies to threads. In a heavily threaded app like a threaded TCP engine, or a java server, you can quickly run out of threads.&lt;BR /&gt;&lt;BR /&gt;For starters, you want to get an idea how many threads you can open. The `thread-limit` util mentioned in the Tuning Utilities section is probabaly as good as any. &lt;BR /&gt;&lt;BR /&gt;The first step to increasing the possible number of threads is to make sure you have boosted any process limits&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Oct 2001 14:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-we-access-process-info/m-p/2588806#M79242</guid>
      <dc:creator>Robert Binkley</dc:creator>
      <dc:date>2001-10-03T14:31:12Z</dc:date>
    </item>
  </channel>
</rss>

