This are my quick notes to this topic when I was implementing it and it worked really well. Hope that helps:
some basic info I read to understand the point. Itis little old but basics are same. I did not implement it exactly that way but very similar:
https://plavc.wordpress.com/2012/02/08/tomcat-service-on-windows/
Tomcat downloads:
http://archive.apache.org/dist/tomcat/
- check your tomcat ver: catalina.bat version
- download tomcatX.exe, tomcatXw.exe, service.bat as per your version and save to your KE installation folder
- rename tomcatXw.exe to Knowage_CEw.exe (Knowage_CE will be your service name so you can name it else if you wish)
- stop Knowage if running
- run Knowage_CEw.exe
- configure run as, initial memory, heap as per your requirements (e.g: -Xms4096m Xmx4096m (max 2M pre x32 bit, start at 3-4G pre x64 bit)
- I also used to add to options -Dfile.encoding=UTF-8 and -XX:MaxPermSize=512m since it was necessary for my instance
- configure auto (delayed) startup for Knowage_CE
- configure auto (delayed) startup for MySQL57
- add dependency on MySQL - sc config knowage_ce depend= Afd/Tcpip/MySQL57