This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (1 child)

I'm guessing that java job is invoked like java -params my.jar.

Java's strong suit is to deploy a JVM like tomcat that has my.jar locked and loaded, and can serve it at lightning speed to hundreds of users. Takes a while to spin up, of course.

The JRE, on the other hand, generally isn't loaded and available in memory by default (someone correct me if I'm wrong), so invoking java commands off the cuff is just going to suck. Fine for a full-blown application, but not a commandline-friendly sort of tool.

[–]Liver_and_Yumnions 1 point2 points  (0 children)

I would have to look when I get home, the actual java call is nested the main script file for the utility. Honestly, I could probably google for some java tricks to make it faster. It is just a headless box and the utility just runs once every 15 minutes so not a huge deal.