You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #18: FITS contains a script, fits-ngserver.sh that starts a Nailgun server, which would save us having to spin up the JVM for every call to FITS. We'd probably get a good performance boost.
me@here:~ $ fits-ngserver.sh $NAILGUN_JAR &
[1] 9820
me@here:~ $ You may now run FITS by typing: ng edu.harvard.hul.ois.fits.Fits [options]
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
NGServer started on all interfaces, port 2113.
me@here:~ $ time ng-nailgun edu.harvard.hul.ois.fits.Fits -i Desktop/pul-logo-tall-md-trans_0.png -o /tmp/sample.xml
real 0m1.854s // <------------------------------
user 0m0.000s
sys 0m0.000s
NGSession 1: 127.0.0.1: edu.harvard.hul.ois.fits.Fits exited with status 0
me@here:~ $ time ng-nailgun edu.harvard.hul.ois.fits.Fits -i Desktop/pul-logo-tall-md-trans_0.png -o /tmp/sample.xml
real 0m0.464s // <------------------------------
user 0m0.000s
sys 0m0.000s
NGSession 2: 127.0.0.1: edu.harvard.hul.ois.fits.Fits exited with status 0
The text was updated successfully, but these errors were encountered:
Another alternative might be to run FITS as a service (https://github.com/harvard-lts/FITSservlet). I have been experimenting with it from the command line using CURL and it appears to be much more performant than fit.sh for a limited test run of TIFFs, RAW images, and JPEGs.
This is what I've done to get it working with a configurable option that calls local FITS if the file size is over a certain threshold (currently 500MB). It isn't perfect but shows that it shouldn't be too much work to implement.
Related to #18: FITS contains a script,
fits-ngserver.sh
that starts a Nailgun server, which would save us having to spin up the JVM for every call to FITS. We'd probably get a good performance boost.The text was updated successfully, but these errors were encountered: