<?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 I get memory usage for a particular process in Linux? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459111#M16094</link>
    <description>&lt;P&gt;can any one help me to get query&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jul 2018 04:41:27 GMT</pubDate>
    <dc:creator>udaymadupathi</dc:creator>
    <dc:date>2018-07-30T04:41:27Z</dc:date>
    <item>
      <title>How can I get memory usage for a particular process in Linux?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459110#M16093</link>
      <description>&lt;P&gt;How can I get memory usage for a particular process in Linux?&lt;/P&gt;

&lt;P&gt;I would like to get JVM memory at a particular time.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 16:28:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459110#M16093</guid>
      <dc:creator>udaymadupathi</dc:creator>
      <dc:date>2018-07-27T16:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get memory usage for a particular process in Linux?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459111#M16094</link>
      <description>&lt;P&gt;can any one help me to get query&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 04:41:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459111#M16094</guid>
      <dc:creator>udaymadupathi</dc:creator>
      <dc:date>2018-07-30T04:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get memory usage for a particular process in Linux?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459112#M16095</link>
      <description>&lt;P&gt;Here is the data:&lt;/P&gt;

&lt;P&gt;Requirement:&lt;/P&gt;

&lt;P&gt;would like to get memory usage bu substracting max heap -free heap memory&lt;/P&gt;

&lt;P&gt;sample data&lt;/P&gt;

&lt;P&gt;MaxThreadsConstraints: 25&lt;/P&gt;

&lt;P&gt;Total dispatcher messages scheduled for processing: 0&lt;/P&gt;

&lt;P&gt;Total number of threads processing dispatcher messages: 1&lt;/P&gt;

&lt;P&gt;Max Heap size: 4238868480&lt;/P&gt;

&lt;P&gt;Free Heap size: 768375192 oracle.fabric.common.FabricInvocationException: oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client received SOAP Fault from server : null&lt;BR /&gt;
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.__AW_throwFabricInvocationException(WebServiceExternalBindingComponent.java:673)&lt;BR /&gt;
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.throwFabricInvocationException(WebServiceExternalBindingComponent.java)&lt;BR /&gt;
at oracle.integration.platform.blocks.soap.WebServiceExternalBindin&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:38:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459112#M16095</guid>
      <dc:creator>udaymadupathi</dc:creator>
      <dc:date>2020-09-29T20:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get memory usage for a particular process in Linux?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459113#M16096</link>
      <description>&lt;P&gt;@udaymadupathi, please try the following rex to extract Max Heap Size and Free Heap Size from the sample data provided. Once you have the data &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;yourCurrentSearch&amp;gt;
| rex "Max Heap size:\s(?&amp;lt;max_heap_size&amp;gt;[^\s]+)\s+Free Heap size:\s(?&amp;lt;free_heap_size&amp;gt;[^\s]+)"
| eval used_memory_size=max_heap_size-free_heap_size
| table _time free_heap_size max_heap_size used_memory_size
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is a run anywhere search based on sample data provided:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="MaxThreadsConstraints: 25

Total dispatcher messages scheduled for processing: 0

Total number of threads processing dispatcher messages: 1

Max Heap size: 4238868480

Free Heap size: 768375192 oracle.fabric.common.FabricInvocationException: oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client received SOAP Fault from server : null
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.__AW_throwFabricInvocationException(WebServiceExternalBindingComponent.java:673)
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.throwFabricInvocationException(WebServiceExternalBindingComponent.java)
at oracle.integration.platform.blocks.soap.WebServiceExternalBindin"
| rex "Max Heap size:\s(?&amp;lt;max_heap_size&amp;gt;[^\s]+)\s+Free Heap size:\s(?&amp;lt;free_heap_size&amp;gt;[^\s]+)"
| eval used_memory_size=max_heap_size-free_heap_size
| table _time free_heap_size max_heap_size used_memory_size
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can add timechart command instead of table and calculate % utilization or utilization in some other bits unit as per your needs on top of the rex once it works as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 06:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459113#M16096</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-07-30T06:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get memory usage for a particular process in Linux?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459114#M16097</link>
      <description>&lt;P&gt;** MaxThreadsConstraints: 150&lt;BR /&gt;
 ** Total dispatcher messages scheduled for processing: 0&lt;BR /&gt;
 ** Total number of threads processing dispatcher messages: 0&lt;BR /&gt;
 ** Max Heap size: 17132158976&lt;BR /&gt;
 ** Free Heap size: 10717437440&lt;BR /&gt;
]]&lt;/P&gt;

&lt;P&gt;i have used it, but ** are still coming up&lt;/P&gt;

&lt;P&gt;\s*(?[^\s]+)\s*+Free Heap size:\s(?[^\s]+)&lt;/P&gt;

&lt;P&gt;output:&lt;/P&gt;

&lt;P&gt;Max_Heap_size   **&lt;BR /&gt;
Free_Heap_size  10717437440&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459114#M16097</guid>
      <dc:creator>udaymadupathi</dc:creator>
      <dc:date>2020-09-29T20:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get memory usage for a particular process in Linux?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459115#M16098</link>
      <description>&lt;P&gt;\s*(?[^\s]+)\s*+Free Heap size:\s(?[^\s]+)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459115#M16098</guid>
      <dc:creator>udaymadupathi</dc:creator>
      <dc:date>2020-09-29T20:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get memory usage for a particular process in Linux?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459116#M16099</link>
      <description>&lt;P&gt;input &lt;/P&gt;

&lt;P&gt;Max Heap size: 16854810624&lt;BR /&gt;
Free Heap size: 15888020544 &lt;/P&gt;

&lt;P&gt;am trying below as given&lt;/P&gt;

&lt;P&gt;Max Heap size:\s(?[^\s]+)\s*+Free Heap size:\s(?[^\s]+)&lt;/P&gt;

&lt;P&gt;output comming is &lt;/P&gt;

&lt;P&gt;not found&lt;/P&gt;

&lt;P&gt;but other one input &lt;/P&gt;

&lt;P&gt;** Max Heap size: 16854810624&lt;BR /&gt;
 ** Free Heap size: 15888020544 &lt;/P&gt;

&lt;P&gt;output coming good by using below&lt;/P&gt;

&lt;P&gt;Max Heap size:\s(?[^\s]+)\s*+Free Heap size:\s(?[^\s]+)&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 16:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459116#M16099</guid>
      <dc:creator>udaymadupathi</dc:creator>
      <dc:date>2018-07-30T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get memory usage for a particular process in Linux?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459117#M16100</link>
      <description>&lt;P&gt;fixed it thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 21:02:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-get-memory-usage-for-a-particular-process-in-Linux/m-p/459117#M16100</guid>
      <dc:creator>udaymadupathi</dc:creator>
      <dc:date>2018-07-30T21:02:19Z</dc:date>
    </item>
  </channel>
</rss>

