JRockit on Stand alone OC4J and OAS

In: ADF|Java|Webcenter|oracle

15 Jan 2009

Didn’t we all run into crash when there is no free memory in the heap on the JVM, well I faced it when i started to work on webcenter suit with oracle portlets and wsrp2, that the pre-configured OC4J didn’t start the JVM instances due to some memory issues, and this how i fixed it by replacing the JDK of my JDeveloper with the JRockit.

JRockit has been tested and proven qualified to hold a large virtual machines that may reach Terra Bytes tested on 3~5 Terra bytes.

How to work on JRockit with stand alone oc4j or OAS-Oracle Application Server-.

  1. Download JRockit Mission Control 3.0.3 from this link .
  2. Make sure to choose your platform with the option “for Java version 5.0″.
  3. Install JRockit on your machine, If windows it’ll be installed on “C:\Program Files\Java” or wherever your windows partition is with folder name jrmc-3.0.3-1.5.0.
  4. You have to install its JRE also.

[In case that the JDK is not presented with the OC4J or OAS]

  1. Go to Windows Environment Variables and in System variables, if JAVA_HOME exists edit its value with this “C:\Program Files\Java\ jrmc-3.0.3-1.5.0″, else create a new one with the specified value.
  2. And you are done, just run the OC4J and it’s now working on JRockit.

[In case that the JDK is presented with the OC4J or OAS]

  1. If OC4J has a JDK folder underneath it, then Go to “C:\Program Files\Java\ jrmc-3.0.3-1.5.0″ and copy all its content
  2. Go to OC4J_HOME\JDK and delete its content –Make sure all oc4j instances are closed and you packed up everything in case it didn’t work well- and paste what you copied above in the JDK folder –The same goes for Oracle Application Server-.

Run the OC4J instance or Application Server and it’ll now run on JRockit and you wont face any more troubles in memory running portlets or whats so ever.

Comment Form

Amr Gawish codename K

view profile

Subscribe to kBLOG

  • agawish: @Mumi I totally agree with you, and I believe that's why I made it open source to change ideas and t [...]
  • agawish: @Hadi Thanks, I believe it has been fixed by now :) [...]
  • agawish: Hi Sami, I believe there are some projects in google projects explaining those steps, I can't tell y [...]
  • Hadi: Great work, would like to point just one thing.. When you pass an empty string ("") into the clas [...]
  • Sami: Dear Agawish, I am a android user with a samsung Galaxy S 2.1. You are very technical for me a [...]

RSSTwitter news