I prefer just to point to the jvm i want to use. In centos i use the service file which starts lucee:
[Unit]
Description=Tomcat
After=network.target
[Service]
Type=forking
User=tomcat
Group=tomcat
Environment=CATALINA_PID=/opt/tomcat/tomcat8.pid
Environment=TOMCAT_JAVA_HOME=/opt/jdk
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat
#Environment=CATALINA_OPTS=
#Environment="JAVA_OPTS=-
ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/bin/kill -15 $MAINPID
[Install]
WantedBy=multi-user.target
JAVA-OPTS i tune in /opt/tomcat/bin/setenv.sh:
#! /bin/sh
==================================================================
CATALINA_HOME=/opt/tomcat
export CATALINA_OPTS=“$CATALINA_OPTS -server”
export CATALINA_OPTS=“$CATALINA_OPTS -Xms2048m”
export CATALINA_OPTS=“$CATALINA_OPTS -Xmx2048m”
export CATALINA_OPTS=“$CATALINA_OPTS -Xss256k”
export CATALINA_OPTS=“$CATALINA_OPTS -XX:+UseG1GC”
export CATALINA_OPTS=“$CATALINA_OPTS -XX:+ParallelRefProcEnabled”
export CATALINA_OPTS=“$CATALINA_OPTS -XX:MaxGCPauseMillis=200”
export CATALINA_OPTS=“$CATALINA_OPTS -XX:InitiatingHeapOccupancyPercent=70”
export CATALINA_OPTS=“$CATALINA_OPTS -XX:G1ReservePercent=15”
export CATALINA_OPTS=“$CATALINA_OPTS -XX:ParallelGCThreads=20”
export CATALINA_OPTS=“$CATALINA_OPTS -XX:ConcGCThreads=5”
export CATALINA_OPTS=“$CATALINA_OPTS -XX:+AggressiveOpts”
export CATALINA_OPTS=“$CATALINA_OPTS -Djava.security.egd=file:/dev/./urandom”
export CATALINA_OPTS=“$CATALINA_OPTS -javaagent:/opt/tomcat/lucee/lucee-inst.jar”
export CATALINA_OPTS=“$CATALINA_OPTS -Doracle.jdbc.J2EE13Compliant=true”
Check for application specific parameters at startup
if [ -r “$CATALINA_BASE/bin/appenv.sh” ]; then
. “$CATALINA_BASE/bin/appenv.sh”
fi
echo “Using CATALINA_OPTS:”
for arg in $CATALINA_OPTS
do
echo ">> " $arg
done
echo “”
echo “Using JAVA_OPTS:”
for arg in $JAVA_OPTS
do
echo ">> " $arg
done
echo “_______________________________________________”
echo “”
Hope that helps
MichaelVon: lucee@googlegroups.com [mailto:lucee@googlegroups.com] Im Auftrag von Andrew Dixon
Gesendet: Freitag, 16. Oktober 2015 00:05
An: lucee@googlegroups.com
Betreff: Re: [Lucee] Unable to find any JVMs
Don’t think so, I don’t remember having to do that, but I’ve given up running Lucee and ACF on my local machine as Apple has this way of screwing the Apache config every time you upgrade Mac OS X, so now I run it and ACF on Linux VM’s via VirtualBox so Apple can’t mess with them.
Kind regards,
Andrew
about.mehttp://about.me/andrew_dixon - msohttp://www.mso.net - Lucee Association Memberhttp://lucee.org
On 15 October 2015 at 23:02, Nando Breiter <@Nando_Breitermailto:Nando_Breiter> wrote:
Andrew,
Does one have to point Lucee at the JRE somewhere in the configuration? I don’t remember clearly.
Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland
+41 (0)91 600 9601tel:%2B41%20(0)91%20600%209601
+41 (0)76 303 4477tel:%2B41%20(0)76%20303%204477 cell
skype: ariamedia
On Fri, Oct 16, 2015 at 12:00 AM, Andrew Dixon <@Andrew_Dixonmailto:Andrew_Dixon> wrote:
Hi,
Just download and install the JRE from Oracle:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Kind regards,
Andrew
about.mehttp://about.me/andrew_dixon - msohttp://www.mso.net - Lucee Association Memberhttp://lucee.org
On 15 October 2015 at 22:48, DMan <@DManmailto:DMan> wrote:
Fresh Express download.
Running startup.sh under Mac os x El Capitan.
results in
Unable to find any JVMs matching version “(null)”.
No Java runtime present, try --request to install.
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
tried ./startup.sh --request
same result.
The Lucee installer doesn’t have any instructions on what to download.
Any pointers appreciated.
Thanks,
D
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.commailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.commailto:lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/5acbbc44-03d3-420e-b67a-e8f729902e61%40googlegroups.comhttps://groups.google.com/d/msgid/lucee/5acbbc44-03d3-420e-b67a-e8f729902e61%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.
–
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.commailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.commailto:lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAG1WijVdmDoqXu%2Bmh2-mqb8oKxxyiiaQvbq2%3DWKm5o-2FYZ0eg%40mail.gmail.comhttps://groups.google.com/d/msgid/lucee/CAG1WijVdmDoqXu%2Bmh2-mqb8oKxxyiiaQvbq2%3DWKm5o-2FYZ0eg%40mail.gmail.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.
–
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.commailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.commailto:lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAGHrs%3D-NdVsHAtEnNJqk4YbsQVH4obbvrS_K5auJhwtxkUHzPQ%40mail.gmail.comhttps://groups.google.com/d/msgid/lucee/CAGHrs%3D-NdVsHAtEnNJqk4YbsQVH4obbvrS_K5auJhwtxkUHzPQ%40mail.gmail.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.
–
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.commailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.commailto:lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAG1WijXvX3O%2BKWbxbouJf-qOVrKsnA9%3D__epnhAE9AnpcGvK3g%40mail.gmail.comhttps://groups.google.com/d/msgid/lucee/CAG1WijXvX3O%2BKWbxbouJf-qOVrKsnA9%3D__epnhAE9AnpcGvK3g%40mail.gmail.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.