upgrading the JVM on a production install of railo (amazon linux)

94 views
Skip to first unread message

nathan

unread,
Jun 19, 2013, 5:10:09 AM6/19/13
to ra...@googlegroups.com
Anyone got any advice on upgrading the oracle JVM for the latest stable railo on amazon linux? - Getting security warnings from hackmycf about it not being latest. only info I can find on railo site is for version 3.

thanks

Kai Koenig

unread,
Jun 19, 2013, 5:38:33 AM6/19/13
to ra...@googlegroups.com
I've got Railo 4 successfully running with both Java 6 and Java 7 JVMs.

In regards to Amazon Linux: You need to essentially change the JVM on the Servlet Container level, e.g. in Tomcat or Jetty or whatever else you'r running Railo on.

Cheers
Kai


Anyone got any advice on upgrading the oracle JVM for the latest stable railo on amazon linux? - Getting security warnings from hackmycf about it not being latest. only info I can find on railo site is for version 3.

thanks



--
Kai Koenig - Ventego Creative Ltd
ph: +64 4 889 3626 - mob: +64 21 928 365 /  +61 435 179 091
web: http://www.ventego-creative.co.nz

Blog in Black: http://www.bloginblack.de
2DDU Podcast: http://www.2ddu.com/
Twitter: @AgentK
--

Jochem van Dieten

unread,
Jun 19, 2013, 10:16:55 AM6/19/13
to ra...@googlegroups.com
On Wed, Jun 19, 2013 at 11:10 AM, nathan wrote:
Anyone got any advice on upgrading the oracle JVM for the latest stable railo on amazon linux?

How did you install Railo? Ease of updates is the reason I never use any Java packaged with an application, I always use a package that belongs to the OS. That makes it as simple as updating the whole OS using yum.

The current script I have for Railo 4+ in AWS is:
# install Java 7 with the full JDK to get access to debug tools
yum -y install java-1.7.0-openjdk java-1.7.0-openjdk-devel
# remove Java 6
yum -y remove java-1.6.0-openjdk openjdk-6-jre-headless icedtea-6-jre-cacao openjdk-6-jre-lib icedtea-6-jre-jamvm

But if you have not created your initial install to use the Java packages from the official Amazon Linux repositories I would imagine this breaks stuff.

Jochem

nathan

unread,
Jun 19, 2013, 10:26:29 AM6/19/13
to ra...@googlegroups.com

Would installing it via yum and then changing the JAVA home on tomcat work going forward? (I know, I know I should try it and report back, but someone might be doing it this way already).

 

Noticed you are using the openjdk rather than oracle – any performance benefits?

Jochem van Dieten

unread,
Jun 20, 2013, 11:33:27 AM6/20/13
to ra...@googlegroups.com
On Wed, Jun 19, 2013 at 4:26 PM, nathan wrote:

Would installing it via yum and then changing the JAVA home on tomcat work going forward? (I know, I know I should try it and report back, but someone might be doing it this way already).


Yes.
 
 

Noticed you are using the openjdk rather than oracle – any performance benefits?


It supposedly is nearly the same codebase (remember Sun released the source under an open source license), but some people have tested Oracle to be significant (~10%) faster for Java 6 and a little (~2%) faster for Java 7.

Even if those tests where applicable to me, that is not enough to add complexity to my environment where everything is either:
- installed and updated from packages using yum / apt-get;
- our own code which is compiled and updated from Maven/Jenkin/Nexus.
Especially if you consider that RedHat has announced they have taken over the lead on OpenJDK 6 from Oracle and will continue to provide security updates, while Oracle has announced they will no longer provide updates for their JDK 6.

And I always install the development tools so I have access to jstack and jmap if I need them.

Jochem

Reply all
Reply to author
Forward
0 new messages