Dave Merrill
10/24/2022, 2:11 PMfoundeo
foundeo
foundeo
foundeo
foundeo
mf = createObject("java", "java.lang.management.ManagementFactory");
runtime = mf.getRuntimeMXBean();
writeOutput(runtime.getUptime());
Adam Palcich
10/24/2022, 2:26 PM#server.coldfusion.expiration#
is meant to be when your free trial expires, but, if you have a license, it just reports when the server was last restarted.
In testing, it certainly lines up to when our servers were last restarted on MY server, but your mileage may vary.Dave Merrill
10/24/2022, 3:20 PMfoundeo
Dave Merrill
10/24/2022, 3:38 PMfoundeo
Dave Merrill
10/24/2022, 5:03 PMAdam Palcich
10/24/2022, 5:21 PMonServerStart()
function in Server.cfc
(you have to set up the path to it in the cfadmin, if i recall). I have no idea whats available in Lucee but we use it all the time in CF.