Railo 4.1: Template compilation and javaagent path

Railo 4.1: Template compilation and javaagent path

The latest Railo 4.1 bring “Smarter Template Compilation” (read the blog post!). In order to get it running you need to set the -javagent variable for your JVM or else you will see this message in the Administrator:

There is no Java Agent defined in this environment. The Java Agent is needed to improve memory (PermGen Space) consumption for templates. To enable the Java Agent follow this instructions: Add the “-javaagent” JVM argument and set it to point to the railo-inst.jar in this environment that would be: -javaagent:/railo-inst.jar.

The issue with my installation was that in my instance the “/” defaults to the main path and not the Tomcat one. Furthermore, I have Railo installed in a multi-deployment setup so I actually only have one Railo for all web applications. So, the obvious answer was to use the absolute path which in my case is “/Library/apache-tomcat-7.0.32/railo/WEB-INF/lib/railo-inst.jar”.

But even with the absolute path, Railo was unable to find the jar. In the end it all boiled down to pass the absolute, absolute (if that makes sense) path to the argument. In my case (on MacOS X) this is “/Volumes/Macintosh HD/Library/apache-tomcat-7.0.32/railo/WEB-INF/lib/railo-inst.jar”.

Hope this helps someone out there.

Trusted by over 2,000 organizations with millions of emails

Helpmonks helps us answer customer emails at lighting speed
We couldn't do our job without Helpmonks!
Helpmonks, the best thing since sliced bread
Excellent option for collaborating email amongst your team
A good platform that is here to grow and help you grow
Helpmonks is a great tool that our company utilizes and depends on
Great shared inbox for the team
Fantastic email support service for any business
Easy to navigate and catalog data for specific users
Solid Helpdesk software w/ responsive customer support
A really good solution to manage customer support mailbox
Good support, useful features

One more thing...

Helpmonks gives you the ability tocollaborate as a groupin your shared mailbox, features aTeam To-Do App, powerfulCustomer Relationship Management (CRM)capabilities, a completeLive-Chat tool, a mighty Email Marketing Platform that includes sending ofemail campaignsandemail automation, collision detection, email tracking, reminders, mentions, custom fields, custom applications, customer satisfaction ratings, Single-Sign-On (SSO) & SAML authentication, Trello, Zapier, Slack, an API, and much more.

Check outthe complete feature listor sign up for afree 30-day shared inbox trial now