<?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: OC4J (Oracle Containers 4 Java) and PRM in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179608#M619191</link>
    <description>Got feedback from HP support;  indeed as stated above, the P_stat limit of 63 chars is killing this example.&lt;BR /&gt;&lt;BR /&gt;Enhancemnet request QXCR1001017550 has been submitted.&lt;BR /&gt;&lt;BR /&gt;Explained to customer that this is a known limitation of 63 characters in the commandline that can be checked by PRM.&lt;BR /&gt;We talked about possible workarounds of using prmmove etc.</description>
    <pubDate>Tue, 09 Mar 2010 08:02:22 GMT</pubDate>
    <dc:creator>Raf_L</dc:creator>
    <dc:date>2010-03-09T08:02:22Z</dc:date>
    <item>
      <title>OC4J (Oracle Containers 4 Java) and PRM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179601#M619184</link>
      <description>Hello Team, &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Proces:&lt;BR /&gt;[s51uf32:/root]# ps -exf | grep -ie oc4j | more&lt;BR /&gt;  oraase  9342     1  0  May 26  ?        28:26 /opt/java1.5/bin/IA64N/java -server -mx256M -ms256M -XX:MaxPermSize=128M&lt;BR /&gt; -XX:AppendRatio=3 -Dstdstream.filesize=2.5 -Dstdstream.filenumber=10 -Djava.security.policy=/opt/oracle/ASPREPROD1013/j&lt;BR /&gt;2ee/OC4J_EMD/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:NewSize=128m -XX:MaxNewSize=256&lt;BR /&gt;m -Doracle.ons.oraclehome=/opt/oracle/ASPREPROD1013 -Doracle.home=/opt/oracle/ASPREPROD1013 -Doracle.ons.oracleconfighom&lt;BR /&gt;e=/opt/oracle/ASPREPROD1013 -Doracle.ons.clustername=default -Doracle.ons.instancename=ASPREPROD1013.s51uf32 -Dopmn.comp&lt;BR /&gt;atible=904 -Doracle.ons.indexid=OC4J_EMD.default_group.1 -Doracle.ons.numprocs=1 -Doracle.ons.uid=7 -Doracle.oc4j.groupn&lt;BR /&gt;ame=EMD -Doracle.oc4j.instancename=OC4J_EMD -Doracle.oc4j.islandname=default_group -Doracle.opmn.routingid=g_rt_id -DOPM&lt;BR /&gt;N=true -jar oc4j.jar -config /opt/oracle/ASPREPROD1013/j2ee/OC4J_EMD/config/server.xml -properties -out /opt/oracle/ASPR&lt;BR /&gt;EPROD1013/opmn/logs/oc4j.out -err /opt/oracle/ASPREPROD1013/opmn/logs/oc4j.err -ports default-web-site:ajp:1&lt;BR /&gt;&lt;BR /&gt;Task: I'm trying to put this proces in a PRM group.&lt;BR /&gt;&lt;BR /&gt;PRM Manual:&lt;BR /&gt;Launching a Java program under PRM&lt;BR /&gt;To always run a Java program in a specific PRM group, use an&lt;BR /&gt;application record. In this record, specify the full path of the Java binary&lt;BR /&gt;as the application. Also, give the classname as an alternate name.&lt;BR /&gt;(Specifically, the alternate name you specify should match the first&lt;BR /&gt;argument to the Java binary that is not preceded by a dash ( - ) in the&lt;BR /&gt;COMMAND column of the ps -ef output.)&lt;BR /&gt;The full path of the Java binary used must appear in either the file&lt;BR /&gt;/etc/shells or the file /opt/prm/shells.&lt;BR /&gt;&lt;BR /&gt;Question: &lt;BR /&gt;In my case, there is no class loaded, i.e. there is no argument after "java" in "ps -ef" which does not start with a "-".&lt;BR /&gt;How can I tell PRM in this case that this OC4J Container as above shouyld be in PRM group A and another OC4J container in group B ?&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jun 2009 10:33:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179601#M619184</guid>
      <dc:creator>Raf_L</dc:creator>
      <dc:date>2009-06-05T10:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: OC4J (Oracle Containers 4 Java) and PRM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179602#M619185</link>
      <description>There are two easy ways to handle this.&lt;BR /&gt;1) put a "prmrun -g GROUP command" in the script file that starts this java instance.&lt;BR /&gt;&lt;BR /&gt;2) PRM has the ability to handle arbitrary argument strings. &lt;BR /&gt;APPLICATION::::GROUP[,{ALTERNATE_NAME[, ...]|'REGEXP'}]&lt;BR /&gt;&lt;BR /&gt;Find some arg in the list that differentiates this instance and use it&lt;BR /&gt;/opt/java1.5/bin/IA64N/java::::mygroup:'*instancename=OCJ4_EMD *'&lt;BR /&gt;&lt;BR /&gt;I believe that /opt/java1.5/bin/IA64N/java goes into /opt/prm/shells.</description>
      <pubDate>Tue, 11 Aug 2009 17:07:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179602#M619185</guid>
      <dc:creator>Scott Rhine</dc:creator>
      <dc:date>2009-08-11T17:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: OC4J (Oracle Containers 4 Java) and PRM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179603#M619186</link>
      <description>Hi Scott, &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;is this known to be working - because I don't succeed in gettoing it to work ?&lt;BR /&gt;&lt;BR /&gt;Question 1: is PRM using "ps -ef" to decide, or is it using "ps -efx" ?  It's only in the latter case that I'm fully able to differentiate between some containers.&lt;BR /&gt;Question 2: the manual says&lt;BR /&gt;"Specifically, the alternate name you specify should match the first&lt;BR /&gt;argument to the Java binary that is not preceded by a dash ( - ) in the&lt;BR /&gt;COMMAND column of the ps -ef output."; In our case, there is no argument like this, so it looks like your suggested REGEXP does not work&lt;BR /&gt;&lt;BR /&gt;best regards, &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Raf&lt;BR /&gt;&lt;BR /&gt;PS: yes indeed, the prmrun command during startup is the alternative I was considering.</description>
      <pubDate>Thu, 13 Aug 2009 06:11:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179603#M619186</guid>
      <dc:creator>Raf_L</dc:creator>
      <dc:date>2009-08-13T06:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: OC4J (Oracle Containers 4 Java) and PRM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179604#M619187</link>
      <description>Raf,&lt;BR /&gt;&lt;BR /&gt;Well I see an argument in your ps output there that isn't preceeded by a dash.&lt;BR /&gt;&lt;BR /&gt;-jar oc4j.jar &lt;BR /&gt;&lt;BR /&gt;I doubt the text/string/regexp intepreter in PRM is clever enough to know that oc4j.jar is an argument to the -jar option...&lt;BR /&gt;&lt;BR /&gt;So I'd try:&lt;BR /&gt;&lt;BR /&gt;/opt/java1.5/bin/IA64N/java::::mygroup:oc4j.jar&lt;BR /&gt;&lt;BR /&gt;if that's a unique enough string to identify your process by...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 13 Aug 2009 07:27:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179604#M619187</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-08-13T07:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: OC4J (Oracle Containers 4 Java) and PRM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179605#M619188</link>
      <description>Hi all, &lt;BR /&gt;&lt;BR /&gt;again to no success:&lt;BR /&gt;here is my /etc/prmconf entry:&lt;BR /&gt;&lt;BR /&gt;/opt/java1.5/bin/IA64N/java::::MYGROUP,'oc4j.jar'&lt;BR /&gt;&lt;BR /&gt;1/ it does not move any process at all to MYGROUP&lt;BR /&gt;2/ even if it would work, it would not be specific enough to filter my different containers&lt;BR /&gt;&lt;BR /&gt;As the manual states that "java" is treated as a shell interpreter, it looks hard to let PRM do something with java not-out-of-the-box.&lt;BR /&gt;I'm afraid prmrun is still the best option.&lt;BR /&gt;&lt;BR /&gt;brgds, &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Raf</description>
      <pubDate>Thu, 13 Aug 2009 10:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179605#M619188</guid>
      <dc:creator>Raf_L</dc:creator>
      <dc:date>2009-08-13T10:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: OC4J (Oracle Containers 4 Java) and PRM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179606#M619189</link>
      <description>the "-" restriction is only for the altname.  You're not using any altname.&lt;BR /&gt;If anything, there may be a length limitation to the size of the command line&lt;BR /&gt;being parsed.  I vaguely recall 256 characters at one time and this command is nearly 600. I will look into this further.</description>
      <pubDate>Thu, 13 Aug 2009 13:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179606#M619189</guid>
      <dc:creator>Scott Rhine</dc:creator>
      <dc:date>2009-08-13T13:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: OC4J (Oracle Containers 4 Java) and PRM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179607#M619190</link>
      <description>As the same code must be binary compatible with all 11.x platforms, the smallest of which has a kernel bottleneck (pstat constant PST_LEN) of 64 bytes, this must be our "command size" limit. I'm guessing that the interesting part happens after that point.&lt;BR /&gt;I will take out a PRM issue for this impracticality.</description>
      <pubDate>Thu, 13 Aug 2009 14:52:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179607#M619190</guid>
      <dc:creator>Scott Rhine</dc:creator>
      <dc:date>2009-08-13T14:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: OC4J (Oracle Containers 4 Java) and PRM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179608#M619191</link>
      <description>Got feedback from HP support;  indeed as stated above, the P_stat limit of 63 chars is killing this example.&lt;BR /&gt;&lt;BR /&gt;Enhancemnet request QXCR1001017550 has been submitted.&lt;BR /&gt;&lt;BR /&gt;Explained to customer that this is a known limitation of 63 characters in the commandline that can be checked by PRM.&lt;BR /&gt;We talked about possible workarounds of using prmmove etc.</description>
      <pubDate>Tue, 09 Mar 2010 08:02:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oc4j-oracle-containers-4-java-and-prm/m-p/5179608#M619191</guid>
      <dc:creator>Raf_L</dc:creator>
      <dc:date>2010-03-09T08:02:22Z</dc:date>
    </item>
  </channel>
</rss>

