Comments on: How to properly start OC4J on a production server. https://technology.amis.nl/2006/01/05/how-to-properly-start-oc4j-on-a-production-server/ Friends of Oracle and Java Thu, 21 May 2015 20:49:51 +0000 hourly 1 http://wordpress.org/?v=4.2.2 By: Dave Godbey https://technology.amis.nl/2006/01/05/how-to-properly-start-oc4j-on-a-production-server/#comment-2778 Thu, 16 Feb 2006 17:29:50 +0000 http://technology.amis.nl/blog/?p=985#comment-2778 How do you start OC4J in standalone mode on a virtual ip address?

]]>
By: Brian Duff https://technology.amis.nl/2006/01/05/how-to-properly-start-oc4j-on-a-production-server/#comment-2777 Thu, 05 Jan 2006 14:36:45 +0000 http://technology.amis.nl/blog/?p=985#comment-2777 oops should be OC4J_JVM_ARGS=-Xmx128M -server

]]>
By: Brian Duff https://technology.amis.nl/2006/01/05/how-to-properly-start-oc4j-on-a-production-server/#comment-2776 Thu, 05 Jan 2006 14:33:49 +0000 http://technology.amis.nl/blog/?p=985#comment-2776 In OC4J 10.1.3, new start / stop scripts are available in OH/bin. These pass the value of the environment variable OC4J_JVM_ARGS into java when starting oc4j. So you can, for example, set in your environment:

OC4J_JVM_ARGS=-Xmx128M -java

then start OC4J with:

bin/oc4j -start

or on Windows:

bin/oc4j.cmd -start

Thanks,
Brian

]]>
By: Jacco Landlust https://technology.amis.nl/2006/01/05/how-to-properly-start-oc4j-on-a-production-server/#comment-2774 Thu, 05 Jan 2006 14:30:39 +0000 http://technology.amis.nl/blog/?p=985#comment-2774 @Rob, why don’t you use opmnctl or dcmctl for starting, or even better: the enterprise manager website?

If you do this, the configuration for the OC4J component is parsed. In this configuration ($ORACLE_HOME/j2ee/home/oc4j_opmn.xml) a number of java options are passed to the server. The -server option is one of them. The memory option (which you want to pass too) can be added there too. If you do this, the option is passed without depending on command line options.

I think the XML file is easy enough to understand, please edit this from the enterprise website too (to avoid sync problems)

If you want to use the same option with tomcat (or any other J2EE server), you can use the environment variable called JAVA_OPTS. This is passed trough the catalina.sh script.

Now you know why this isn’t discussed in the Oracle manuals. Oracle wants you to use their management website 😉

]]>
By: Jacco Landlust https://technology.amis.nl/2006/01/05/how-to-properly-start-oc4j-on-a-production-server/#comment-2775 Thu, 05 Jan 2006 14:30:39 +0000 http://technology.amis.nl/blog/?p=985#comment-2775 @Rob, why don’t you use opmnctl or dcmctl for starting, or even better: the enterprise manager website?

If you do this, the configuration for the OC4J component is parsed. In this configuration ($ORACLE_HOME/j2ee/home/oc4j_opmn.xml) a number of java options are passed to the server. The -server option is one of them. The memory option (which you want to pass too) can be added there too. If you do this, the option is passed without depending on command line options.

I think the XML file is easy enough to understand, please edit this from the enterprise website too (to avoid sync problems)

If you want to use the same option with tomcat (or any other J2EE server), you can use the environment variable called JAVA_OPTS. This is passed trough the catalina.sh script.

Now you know why this isn’t discussed in the Oracle manuals. Oracle wants you to use their management website 😉

]]>
By: Rob van Maris https://technology.amis.nl/2006/01/05/how-to-properly-start-oc4j-on-a-production-server/#comment-2773 Thu, 05 Jan 2006 14:24:31 +0000 http://technology.amis.nl/blog/?p=985#comment-2773 I was referring to OC4J in a standalone environment, e.g. without Oracle AS. The title doesn’t mention this, but it should be clear from the documentation quote.

]]>
By: Gary Rogers https://technology.amis.nl/2006/01/05/how-to-properly-start-oc4j-on-a-production-server/#comment-2772 Thu, 05 Jan 2006 14:15:50 +0000 http://technology.amis.nl/blog/?p=985#comment-2772 Huh… I always thought it was

opmnctl startproc process-type=[OC4J NAME]

Then you adjust start parameters in the iAS console

😉

]]>