i have a PHP application that invokes a command line to execute some specific operations.
The command line calls a 'java -jar somefile.jar arg1 arg2'
The problem is that this is slow, since it has to startup the jar every time it get's invoked.
Is there any way keep the java machine code in cache or is there any way to optimize the whole process?
Thanks, joel
Update: The JAR was developed by our team.
To use as a service, i'll have to install some java server (tomcat or alike), right?
And how about a java php bridge? Can that be any faster?